Issues
Hi How do i make an API call with my credential
8 months ago by Nathaniel
How do i use my credentials here to make this call to create a card;
", CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => "", CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 30, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => "POST", CURLOPT_POSTFIELDS => json_encode([ 'customer_id' => 'ac2bea42-058f-44d9-905d-48a92360129e', 'currency' => 'USD', 'type' => 'VIRTUAL', 'auto_approve' => true, 'brand' => 'VISA', 'amount' => 200, 'card_pin' => '12345678' ]), CURLOPT_HTTPHEADER => [ "Authorization: Bearer 123", "accept: application/json", "content-type: application/json" ], ]); $response = curl_exec($curl); $err = curl_error($curl); curl_close($curl); if ($err) { echo "cURL Error #:" . $err; } else { echo $response; } Assuming these are my credentials; Business Reg Number: BUSINESS**\*-\*\***-**\*\***-**\*\*\***-1675430 Public Keys: Pub_key\***_45335_**-1675430 Secret Keys: secretkey_6454444444fedrfff_fgsfsffg_44455