Hello everyone, I am trying to use the fetch api to get the payment status from the poll_url. However, when I try to do it on the client side, I a getting a CORS ERROR… Here is the error :
In general Paynow discourages the use of polling for payment status. Its not performant and causes increased load on the Paynow infrastructure.
If you want to poll from your clientside (javascript) you should poll your own web service, which should return the payment status which has been returned by Paynow to your specified ResultUrl which you defined when you initiated the transaction.
You should only poll Paynow for status update if you havent had a result prior to transaction expiry from your side i.e. before cancelling a checkout from your ecommerce solution, poll Paynow to ensure the transaction is still unpaid beforehand. Otherwise, you should rely on Paynow’s server to server status update on your ResultUrl