payby.com
PHP >= 5.6
composer require payby/payby-php
require_once('vendor/autoload.php');
require_once('/path/to/payby-php/init.php');
\PayBy\PayBy::setPrivateKey('YOUR-KEY');
\PayBy\Api\Order::placeOrder(
[
"merchantOrderNo" => $order_no,
"subject" => "iPhone",
'totalAmount' => [
'currency' => 'AED',
'amount' => '0.3',
],
"paySceneCode" => "DYNQR",
"notifyUrl" => "http://yoursite.com/api/notification",
"accessoryContent" => [
'amountDetail' => [
'vatAmount' => [
'currency' => 'AED',
'amount' => '0.3',
],
],
'goodsDetail' => [
'body' => 'Gifts',
'goodsName' => 'candy flower',
'goodsId' => 'GI1005',
],
'terminalDetail' => [
'merchantName' => 'candy home',
],
],
]
);
\PayBy\Api\Order::placeOrder();
\PayBy\Api\Order::getOrder();
\PayBy\Api\Refund::placeOrder();
\PayBy\Api\Refund::getOrder();
\PayBy\Api\Transfer::placeTransferOrder();
\PayBy\Api\Transfer::getTransferOrder();
\PayBy\Api\Transfer::placeTransferToBankOrder();
\PayBy\Api\Transfer::getTransferToBankOrder();
// TODO