Download the PHP package paynamics/paygate-sdk-php without Composer
On this page you can find all versions of the php package paynamics/paygate-sdk-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package paygate-sdk-php
Paynamics PayGate SDK PHP
Installation
composer require CoreProc/paynamics-sdk-laravel
php artisan vendor:publish --provider="Coreproc\PaynamicsSdk\Provid ers\ServiceProvider"
Usage
Environment Variable
Generating your payment request
You can add multiple items on the payment request. Total amount should be equal to the total of all items added in the request.
Adding discount
You can add discount to the request by simply adding new item to the request with a negative value. Note: the total value of request must be equal to the total value of items added including the discount.
Example
Generating paynamics form request
This will generate a signed html form base on the payment details you provide on PaymentRequest
Payment Types
- hsbc - Set payment type to "hsbc" if you payment method is "bpiinstall" or "hsbcinstall"
- default - All Payment method except "bpiinstall" and "hsbcinstall"
Generating Payment request using installment
When using installment like "bpiinstall" and "hsbcinstall", you should set the MetaData2 and Secure3d
in your PaymentRequest
and instead of passing country name on ->setCountry() you should pass the
country ISO code.
Example
Metadata2 Modes
“1” - Absolute 0%
“2” – Regular Installment
“3” – Buy Now Pay Later, Absolute 0%
“4” - Buy Now Pay Later, Regular Installment
“5” – Reduce Interest Installment Promo
For HSBC, mode is 1. For BPI, on test env, available mode is 2
Credits
- Owen Banan
- All Contributors
All versions of paygate-sdk-php with dependencies
ext-json Version *