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
{{ message }}
This repository has been archived by the owner on Nov 29, 2019. It is now read-only.
0.) Prepare a product with one item on-hand, disable backorders
1.) Prepare two orders and move them to the payment page
2.) complete one order...
3.) complete the other order
3.1) The payment will be captured/authorized
3.2)
#need to force checkout to complete state
until @order.state == "complete"
if @order.next!
@order.update!
fails because backorders are disabled, payment is already captured though, no normal user feedback is provided...
The text was updated successfully, but these errors were encountered:
In case backorders are disabled the call to next!/update! will lead to an exception that is not handled by the paypal extension. The result is that the state at paypal and the local state do not match.
My local hack:
Allow backorders in the backend but not in the shop ui
Clean solution:
Re-order code, consider using a transaction. handle the exception
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
0.) Prepare a product with one item on-hand, disable backorders
1.) Prepare two orders and move them to the payment page
2.) complete one order...
3.) complete the other order
3.1) The payment will be captured/authorized
3.2)
#need to force checkout to complete state
until @order.state == "complete"
if @order.next!
@order.update!
fails because backorders are disabled, payment is already captured though, no normal user feedback is provided...
The text was updated successfully, but these errors were encountered: