Currently, when the authorization is AmazonRejected or TransactionTimedOut during sync auth in checkout we cancel the order which cancels the order reference. The experience could be jarring and proves so during QA with end users.

Instead the order should be reset to a cart and the order reference ID removed. This way the user can pick standard checkout, or try again (in case of time out.)

Comments

mglaman created an issue. See original summary.

mglaman’s picture

Status: Active » Needs review
StatusFileSize
new1.75 KB

Fix credit

mglaman’s picture

Status: Needs review » Needs work
+++ b/includes/commerce_amazon_lpa.payment_method.inc
@@ -135,16 +135,20 @@ function commerce_amazon_login_and_pay_redirect_form($form, &$form_state, $order
+            $api->cancel($order_wrapper);

When AmazonRejected the remote reference is already closed and this throws an exception, breaking our flow control.

mglaman’s picture

Status: Needs work » Needs review
StatusFileSize
new1.71 KB

Fixes #3

  • mglaman committed acb6e02 on 7.x-1.x
    Issue #2865060 by mglaman: When authorization is rejected or times out,...
mglaman’s picture

Status: Needs review » Fixed

Fixed!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.