I found out That I should change the "response_url" into my site's url, but not sure what url I should use to catch the response...
can you give some hind.. please...
SAMPLE CODE
curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL =>
'https://tt.wipayfinancial.com/plugins/payments/request',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS => http_build_query([
"account_number" => "1234567890",
"avs" => "0",
"country_code" => "TT",
"currency" => "TTD",
"data" => '{"a":"b"}',
"environment" => "sandbox",
"fee_structure" => "customer_pay",
"method" => "credit_card",
"order_id" => "oid_123-aBc",
"origin" => "WiPay-example_app",
"response_url" => "https://tt.wipayfinancial.com/response/",
"total" => "10.00"
]),
CURLOPT_HTTPHEADER => [
'Accept: application/json',
'Content-Type: application/x-www-form-urlencoded'
],
));
$response = curl_exec($curl);
curl_close($curl);
return $response;