I am creating my custom payment gateway for Coinbase Commerce API in php and I got status in response somewhat like status: completed after transaction has been completed.I can't figure out how to redirect user to another page after payment has been made..??
SO scenario is:
User pays for amount he/she wishes for..First status changes to new and after that goes to pending state.if everything goes well then finally completed..my concern is, what if it took 15 minutes to complete the payment, then how do I know It, how to redirect user when payment has been made and show him that some page that resembles payment has been made by you..
Response:
"timeline": [
{
"status": "NEW",
"time": "2019-07-12T09:36:51Z"
},
{
"payment": {
"network": "ethereum",
"transaction_id": "0x5e732333d4f6dabedd4a170796620af70f4391317f1bc1f5c2018fce0b17afff"
},
"status": "PENDING",
"time": "2019-07-12T09:46:54Z"
},
{
"payment": {
"network": "ethereum",
"transaction_id": "0x5e732333d4f6dabedd4a170796620af70f4391317f1bc1f5c2018fce0b17afff"
},
"status": "COMPLETED",
"time": "2019-07-12T09:47:49Z"
}
]