nayax / php-sdk
There is no license information available for the latest version (1.2) of this package.
Nayax API integration via php
1.2
2021-07-09 07:41 UTC
This package is auto-updated.
Last update: 2024-09-09 15:00:48 UTC
README
install like a local composer package or just copy files
example form is given
min php version: 5.6
example in folders
$merchantId = '{{ your merchant id }}'; $hashCode = '{{ your hash code }}'; $adapter = new Adapter($merchantId, $hashCode); // to get redirect url $redirectUrl $redirectUrl = $adapter->initiatePayment([ 'amount' => 1.23, 'currency' => 'ACP', // for list of currencies view the website documentation 'orderId' => uniqid(), // your system order id 'methodCode' => 'visa', // what payment method to use 'redirectUrl' => '{{ your redirect page}}', 'notificationUrl' => '{{ your notification page}}', ]);