I'm having issues with my MIGS Payment facility that I created for my website. When the user encounters errors with the migs server (payment did not run successfully), how do I know if it encountered such error?
These are the parameters I used(replaced my link with a sample link):
"vpc_Amount" => ($amount*100),
"vpc_Command" => 'pay',
"vpc_Locale" => 'en',// order id
"vpc_MerchTxnRef" => $session_id,
"vpc_Merchant" => $merchantId,
"vpc_OrderInfo" => "Test order",
"vpc_ReturnURL" => "http://mywebsite.com/returnUrL",
"vpc_Version" => '1'
How do I know if it failed, since either a payment successful or a payment failure happens, it goes to the same returnURL. Can I set another link wherein it would go there if the transaction failed?