payment gateway for mobile applications and ecoomerce websites

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

This package is auto-updated.

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


README

PHP Sdk for One4Pay API

Installation

You can install the package via composer:

composer require one4pay_payment_gateway/payment

Getting Started

Import the library into your project/application

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)```