h2akim/senangpay-php

SenangPay Payment Gateway PHP Library (unofficial)

dev-master 2017-11-26 01:20 UTC

This package is not auto-updated.

Last update: 2024-11-15 03:04:35 UTC


README

Installation

composer require h2akim/senangpay-php:dev-master

Usage

<?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@testing.com',
		'phone' => '011223344'
	]
);

Note

‼️ This library is not tested as author does not have senangPay account. ‼️

If you find any bugs or mistake, please add an issue or send pull request

License

MIT