Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- function checkGTPayTransaction($gtpay_merchant_id, $amount,$trans_id, $hash) {
- $gtpayServiceRequest = file_get_contents(sprintf("http://gtweb2.gtbank.com/GTPayService/gettransactionstatus.json?mertid=%s&amount=%s&tranxid=%s&hash=%s",
- $gtpay_merchant_id, $amount,$trans_id,$hash
- ));
- if($gtpayServiceRequest) {
- return json_decode($gtpayServiceRequest);
- }
- return null;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement