Skip to content

nayax/php-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nayax PHP SDK

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}}',
    ]);

About

Nayax API Php SDK

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages