wip
This commit is contained in:
@@ -454,15 +454,16 @@ function syncWithBankSystem(
|
|||||||
'Content-Type' => 'application/json',
|
'Content-Type' => 'application/json',
|
||||||
'Authorization' => 'Basic YWRtaW46UUFad3N4MTIz'
|
'Authorization' => 'Basic YWRtaW46UUFad3N4MTIz'
|
||||||
];
|
];
|
||||||
$body = '{
|
$body = sprintf('{
|
||||||
"ecomId": "'.$ecomId.'",
|
"ecomId": "%s",
|
||||||
"agentId": "'.$agentId.'",
|
"agentId": "%s",
|
||||||
"eposId": "'.$eposId.'",
|
"eposId": "%s",
|
||||||
"account": "'.$account.'",
|
"account": "%s",
|
||||||
"rnn": "'.$rrn.'",
|
"rnn": "%s",
|
||||||
"amount": "'.$amount.'",
|
"amount": "%s",
|
||||||
"payPurpose": "'.$payPurpose.'"
|
"payPurpose": "%s"
|
||||||
}';
|
}', $ecomId, $agentId, $eposId, $account, $rrn, $amount, $payPurpose);
|
||||||
|
|
||||||
$request = new GuzzleRequest('POST', 'http://10.3.158.102:8888/api/paytrn/new', $headers, $body);
|
$request = new GuzzleRequest('POST', 'http://10.3.158.102:8888/api/paytrn/new', $headers, $body);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in New Issue
Block a user