fadlisaad / php-touch-n-go
Basic implementation of Touch N Go transaction using PHP
0.9.1
2023-04-18 01:20 UTC
Requires
- php: >=7.4
- guzzlehttp/guzzle: *
Requires (Dev)
- orchestra/testbench: ^3.8
README
Base code for Touch N Go Sandbox
Requirement
- Register with TNGDigital and get merchant ID
- replace the details in config.php
- replace sample-private-key.pem with your generated private key during registration with TNGDigital
How to install
$ composer require fadlisaad/php-touch-n-go
How to use
- Refer to create-order.php on how to create new transaction
- Refer to query-order.php on how to query transaction status
- For further information please refer to the documentation provided by TNGDigital team
License
Refer to LICENSE
Disclaimer
This is only a quick wrapper for creating payment intent with Touch N Go using PHP. If you're using Laravel, stay tune.