Skip to content

Commit c1eff39

Browse files
committed
Use JSON to send initialize data
1 parent 57a5bbd commit c1eff39

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

modules/gateways/callback/paystack.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@
6363
$ch,
6464
CURLOPT_HTTPHEADER,
6565
array(
66-
'Authorization: Bearer '. trim($secretKey)
66+
'Authorization: Bearer '. trim($secretKey),
67+
'Content-Type: application/json'
6768
)
6869
);
6970

@@ -72,7 +73,7 @@
7273
curl_setopt(
7374
$ch,
7475
CURLOPT_POSTFIELDS,
75-
http_build_query(
76+
json_encode(
7677
array(
7778
"amount"=>$amountinkobo,
7879
"email"=>$email,

0 commit comments

Comments
 (0)