PHP code example of reactmore / tripay-payment-sdk
1. Go to this page and download the library: Download reactmore/tripay-payment-sdk library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
reactmore / tripay-payment-sdk example snippets
$tripay = service('tripay');
// merchant
$response = $tripay->merchant()->getChannel($payload)->get();
$response = $tripay->payment()->getInstruction()->get();
// open for open transactions https://tripay.co.id/developer?tab=open-payment-create
$response = $tripay->transaction('open/closed')->create($payload)->get();