nayax/php-sdk

There is no license information available for the latest version (1.2) of this package.

Nayax API integration via php

Maintainers

Details

github.com/nayax/php-sdk

Source

Issues

Installs: 168

Dependents: 0

Suggesters: 0

Security: 0

Stars: 3

Watchers: 0

Forks: 0

Open Issues: 0

pkg:composer/nayax/php-sdk

1.2 2021-07-09 07:41 UTC

This package is auto-updated.

Last update: 2025-12-09 17:54:24 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}}',
    ]);