$paymentID, 'status' => 'completed', //'total' => '123.45', //'currency' => "USD", 'custom_payment_id' => $orderID, //'callback_data' => "example data", /*'customer' => [ 'name' => 'John Smit', 'email' => 'john.smit@hotmail.com' ],*/ /*'payment_details' => [ 'currency' => 'BTC' ],*/ //'redirect_url' => 'http://globee.com/invoice/'.$paymentID, //'success_url' => $shopURL, //'cancel_url' => $shopURL, //'ipn_url' => $shopURL.'/wc-api/globee_ipn_callback', //'notification_email' => null, //'confirmation_speed' => 'medium', //'expires_at' => '2018-01-25 12:31:04', //'created_at' => '2018-01-25 12:16:04' ]; $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => $shopURL.'/wc-api/globee_ipn_callback', CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => "", CURLOPT_MAXREDIRS => 2, CURLOPT_TIMEOUT => 10, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => 'POST', CURLOPT_POSTFIELDS => json_encode($payload), CURLOPT_HTTPHEADER => array( 'cache-control: no-cache', 'content-type: application/json', ), )); $response = curl_exec($curl); $err = curl_error($curl); curl_close($curl); if ($err) { echo 'cURL Error #: '.$err; } else { echo 'Done: '.$response; }