Skip to content

akukoder/senangpay-php

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Third-party senangPay PHP Library

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 protected]',
		'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

About

Third-party senangPay PHP Library

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%