Reply
Member
Posts: 4
Registered: ‎03-09-2017

AcceptHosted declined Payment

Hello,

I was testing a declined payment and it was unable to make the payment after I updated the zip to no longer force a decline.

Is there some process that needs to happen if the token has expired or a payment is declined for whatever reason to allow the hosted frame to allow the payment?

Thanks!

All Star
Posts: 699
Registered: ‎11-03-2016

Re: AcceptHosted declined Payment

Hi @Jon,

 

In my testing, I've noticed the same thing. In sandbox, after a decline, you have to start over and reload the form or obtain a new token.

 

However, this is only a problem when simulating the declines with the triggers in our testing guide. An actual declined card in production allows the cardholder to correct the problem and resubmit from the same form.

Member
Posts: 4
Registered: ‎03-09-2017

Re: AcceptHosted declined Payment

I see, what about the time out? since I saw that the token was invalid I decided to wait the 15 minutes after loading the iFrame and tried to submit the payment again. It told me the token was invalid.

 

Do I need to refresh the iframe every time the token expires or is this also a sandbox exclusive problem?

 

Thanks! 

All Star
Posts: 699
Registered: ‎11-03-2016

Re: AcceptHosted declined Payment

If the token times out, you need to retrieve a new token. That's by design in sandbox and production. No way around that.