coquardcyr / scb-payment-api
A php SDK to use SCB payment API
Requires
- php: >=7.2
- ext-json: *
- ext-mbstring: *
- psr/http-client: ^1.0
- psr/http-factory: ^1.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.9
- phpstan/phpstan: ^0.12.40
- phpunit/phpunit: ^7.5 || ^8 || ^9
- prestashop/php-dev-tools: ~3.0
- wp-media/phpunit: ^3.0
README
This library is designed as a PHP SDK for SCB Payment Gateway.
Install
To install that library run the following command:
composer require coquardcyr/scb-payment-api
Usage
Once you installed the library, you can interact with the client class.
First you will have to use libraries that implements:
Then you will have to instance the CoquardCyrilleFreelance\SCBPaymentAPI\Client
class with both libraries you chose.
Once this is done you will then have to initialize the connexion with the method initialize
that takes in parameters a class implementing the CoquardCyrilleFreelance\SCBPaymentAPI\Configurations
interface.
This will initialize the connexion to the API by creating a bearer token.
The next step is to create the QR code for that you can use the createQRCode
with the transaction ID with the amount.
This method will return the QR code data:
[ "qrRawData" => "00020101021230670016A00000067701011201151234567890123450210REFERENCE10310REFERENCE252047011530376454041.005802TH6007BANGKOK62070703SCB6304CE18", "qrImage" => "R0lGODdh9AH0AYAAAAAAAP///ywAAAAA9AH0AQAC/4yPqcvtD6OctNqLs968+w+G4kiW5omm6sq27gvH8kzX9o3n+s73/g8MCofEovGITCoxgKbzCY1Kp9Sq9emoMqmi6zTrDV/BYuf2eymrpWd1O0pey+faBv2Ox9q5aT5oHpc3trf2BmUo6FcB2IfGkAjpRhhJWfeoSGH5wXhZ6bjAuYg54TkqEZppelDKejjZWhroaqHpgZoAOwsqh2jWmAvQO0iragDMKnucmOxL/GnL+wrLPCz6TKosbKVNrXzX7X2LUIt9zSG+mi0dxv2bq01+WhwQTgleL9nJ5q4LXbiODGC1VOYieIM3r9s9fGIWMvSikJ+eP9H0vRO4TWIza//AEBaEEC/dQzwOR4Y0lhBjl4q7jpXsV26fs44aB8aEg9EkxJw6M1qEKe9jBnQoXfIUGnHmRaUNawY72lPoyRZTq7JUYFXqvKjtf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7OYUv+/37y6k/9h17auv/0cF7OYUv+/37y6k/9h17auv/0cF7OYUv+/37y6k/9h17auv/0cF7OYUv+/37y6k/9h17auv/0cF7OYUv+/37y6k/9h17auv/0cM7vtn/0Q+DQ+T/+9GvHP17w9Q/9bc/0wU/9X+//ZE38Bp/kUl/33v3z4Rn+si3RtG+UP17w9Q/9bc/0wU/9X+//ZE38Bp/kUl/33v3z4Rn+si3RtG+UP4he8PUP/W3P9MFP/V/v/2RN/Aaf5FJf99798+EZ/rIt0bRvlD9e8PUP/W3P9MFP/V/v/2RN/Aaf5FJf99798+EZ/rIt0bRvlD9e8PUP/W3P9MFP/V/v/2RN/Aaf5FJvYAZmYAZmYAZmYAZmYAZmYAZmYAZmYAZmYAZmYAZmYAZmYAZmYAa2AwUAADs=" ]
Once you're done that then you can use both checkTransactionBillPayment
and checkTransactionCreditCardPayment
to check the status from the transaction:
checkTransactionBillPayment
takes reference1 and reference2 from the transaction and theDatetime
from the transaction and return the list of transactions matching:
[ "transRef"=> "201904227kAylzNUdnJ1z0w", "sendingBank"=> "014", "receivingBank"=> "014", "transDate"=> "20190422", "transTime" => "14:04:35", "sender"=> [ "displayName"=> "Sandbox customer", "name"=> "Sandbox customer", "proxy"=> [ "type"=> "MSISDN", "value"=> "0812345678" ], "account"=> [ "type"=> "BANKAC", "value"=> "1234567890" ] ], "receiver"=> [ "displayName"=> "Sandbox Shop", "name"=> "Sandbox Shop", "proxy"=> [ "type"=> "BILLERID", "value"=> "311040039475171" ], "account"=> [ "type"=> "BANKAC", "value"=> "0987654321" ] ], "amount"=> "500", "paidLocalAmount"=> "500", "paidLocalCurrency"=> "764", "countryCode"=> "TH", "ref1"=> "12345678", "ref2"=> "Test", "ref3"=> "1234" ]
checkTransactionCreditCardPayment
takes the transaction ID as parameter and return the transaction:
[ "transactionId" => "20190910121630805000000", "amount" => "8284.50", "transactionDateandTime" => "20190912 10:32:46", "merchantPAN" => "4761320000000011", "consumerPAN" => "999999xxxxxx0001", "currencyCode" => "764", "merchantId" => "447434058100730", "terminalId" => "073334824590333", "qrId" => "20190910121630805000000", "traceNo" => "000001", "authorizeCode" >=> "489332", "paymentMethod" => "QRCS", "transactionType" => "SETTLED", "channelCode" => "VISA", "invoice" => "SCB0001", "note" => "Additional note" ]