You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a payment gateway that does not tolerate backorders longer than 12 hours.
Error message
"The validity date of your order has passed.
Possible causes
either the order reference has been pending payment for too long (typically more than one hour)
or the order form has been created for too long, typically more than 12 hours
Solving the problem
test an updated form with a new order reference
test a new form and check your server's system date
Typically an order created last evening can no longer be paid for today.
What do you think is the best way to solve this case?
Either add part of the date to the order reference (OrderID-yyyymmdd) (ex: 5-20210930)
in this case the processing must also be done in the return (complete method of my PaymentProvider)
Or add a special states to flag the order as "out of time" with a scheduler in my plugin
I would like to hear your views before I jump in head first.
Maybe another solutions that don't come to me?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have a payment gateway that does not tolerate backorders longer than 12 hours.
Typically an order created last evening can no longer be paid for today.
What do you think is the best way to solve this case?
in this case the processing must also be done in the return (
complete
method of my PaymentProvider)I would like to hear your views before I jump in head first.
Maybe another solutions that don't come to me?
Beta Was this translation helpful? Give feedback.
All reactions