h2akim/senangpay-php

SenangPay Payment Gateway PHP Library (unofficial)

Maintainers

Package info

github.com/h2akim/senangpay-php

pkg:composer/h2akim/senangpay-php

Statistics

Installs: 821

Dependents: 0

Suggesters: 0

Stars: 3

Open Issues: 1

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

This package is not auto-updated.

Last update: 2026-03-06 09:17:57 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