composer require h2akim/senangpay-php:dev-master
<?php
use SenangPay\SenangPay;
$merchantId = 'xxx';
$secretKey = 'xxx';
$senangPay = new SenangPay($merchantId, $secretKey);
$paymentUrl = $senangPay->createPayment(
'Shopping_cart_id_30',
24.50,
56,
[
'name' => 'Testing User',
'email' => '[email protected]',
'phone' => '011223344'
]
);
If you find any bugs or mistake, please add an issue or send pull request
MIT