适用于移动应用程序和电子商务网站的支付网关

dev-master 2022-04-06 11:03 UTC

This package is auto-updated.

Last update: 2024-09-26 17:24:42 UTC


README

One4Pay API 的 PHP Sdk

安装

您可以通过 composer 安装此包

composer require one4pay_payment_gateway/payment

入门

将库导入您的项目/应用程序

require_once 'path/to/vendor/autoload.php';
use one4pay/payment ```

making a payment
#### usage 
make payment

```php
    payment($merchantId,$currencyCode,$cardDetails,$reference,$failureUrl,$returnUrl,$originatingApplicationName
        ,$amount,$paymentMethod,$apiMethod,$sourceType)```
        
###### get available currencies

getAvailableCurrencies()

########authenticate
```php
 authentication($username,$password)```