@@ -16,13 +16,13 @@ public function getData()
1616 $ this ->validate ('amount ' , 'currency ' , 'clientIp ' , 'merchantOrderReference ' );
1717
1818 return [
19- 'amount ' => floor ($ this ->getAmount () * 100 ),
20- 'currency ' => $ this ->getCurrency (),
21- 'ip ' => $ this ->getClientIp (),
22- 'merchantId ' => $ this ->getMerchantId (),
19+ 'amount ' => floor ($ this ->getAmount () * 100 ),
20+ 'currency ' => $ this ->getCurrency (),
21+ 'ip ' => $ this ->getClientIp (),
22+ 'merchantId ' => $ this ->getMerchantId (),
2323 'merchantOrderReference ' => $ this ->getTransactionReference (),
24- 'orderType ' => 'PAYMENT ' ,
25- 'intents ' => [
24+ 'orderType ' => 'PAYMENT ' ,
25+ 'intents ' => [
2626 'THREED_SECURE ' ,
2727 ],
2828 ];
@@ -32,9 +32,9 @@ public function sendData($data)
3232 {
3333 $ params = [
3434 'headers ' => [
35- 'Accept ' => '*/* ' ,
36- 'Content-Type ' => 'application/json; charset=UTF-8 ' ,
37- 'Authorization ' => 'Basic ' . base64_encode ("{$ this ->getMerchantId ()}: {$ this ->getTransactionPassword ()}" ),
35+ 'Accept ' => '*/* ' ,
36+ 'Content-Type ' => 'application/json; charset=UTF-8 ' ,
37+ 'Authorization ' => 'Basic ' . base64_encode ("{$ this ->getMerchantId ()}: {$ this ->getTransactionPassword ()}" ),
3838 ],
3939 'body ' => json_encode ($ data ),
4040 ];
0 commit comments