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
If your customer completes checkout and gets the order confirmation page, and then refreshes it, we re-enter this controller.
The basket will be empty (since the code calls getCurrentOrNewBasket) but the checkout token is still valid, and eventually, the checkCart → syncBasket → checkTotalPrice call chain will fail because the basket total is $0 but the authorized amount was whatever the posted order is.
That leads the code to call the Affirm void service to void the Affirm transaction. (and does not do any updates to the SFCC order)
Since we're only doing AUTH (capture is done later during fulfillment), when we go to capture payment, it fails (404/not found) because the transaction was voided on Affirm's side.
The text was updated successfully, but these errors were encountered:
We are having the same issue. If someone refreshes the page or if they visit a different page and then click the back button, it will "Void" the order.
Salesforce_Commerce_Cloud_Affirm/cartridges/int_affirm_sfra/cartridge/controllers/Affirm.js
Lines 175 to 180 in afee520
If your customer completes checkout and gets the order confirmation page, and then refreshes it, we re-enter this controller.
The
basket
will be empty (since the code callsgetCurrentOrNewBasket
) but the checkout token is still valid, and eventually, the checkCart → syncBasket → checkTotalPrice call chain will fail because thebasket
total is $0 but the authorized amount was whatever the posted order is.That leads the code to call the Affirm void service to void the Affirm transaction. (and does not do any updates to the SFCC order)
Since we're only doing AUTH (capture is done later during fulfillment), when we go to capture payment, it fails (404/not found) because the transaction was voided on Affirm's side.
The text was updated successfully, but these errors were encountered: