Closed liamfirth closed 2 years ago
Hello @liamfirth ,
There seems to be some issue with the template that's being used to render the Amazon Pay payment method; the AP button at the last step of checkout should be a Pay Now button, not an Express Checkout button. That is, once the user authenticates with Amazon, they should be presented with an Amazon-hosted payment screen where they can select the payment instrument to use and click a 'Pay Now' button to complete the transaction. Since the user already entered their address details in the shipping section of checkout, there's no need to redirect the user back there with Amazon address data. The address details that the user entered are supplied to Amazon in this flow.
The behavior of the button is determined by an attribute passed to the javascript component in the knockout template. If you look at the screenshot below:
You can see that in the highlighted div (id 'PayWithAmazonButton'), the value for placement being passed to the amazon-button component is 'Checkout', when it should be 'PayNow' so that the button will use the correct payload to initiate a Pay Now checkout flow. Is it possible that any custom modules or theme code are overriding the default amazon-payment-method.html template? If not, then it may be possible that something odd happened with js bundling or minification that caused the confusion. If you don't believe any custom code could be responsible, it may be worthwhile to clear your static assets and redeploy your frontend code to see if this issue can resolve itself.
Let me know if this helps, Spencer
Hi @sgabhart22
That's right - I thought the custom templates had all been removed, but it looks like there was one with the Checkout and PayNow placements reversed. Thanks for your help!
Liam
@liamfirth No problem at all! Glad it was a simple solution, and please don't hesitate to reach out with any future issues regarding the plugin.
Thanks, Spencer
<-- What actual results you or customer got -->
No shipping options are shown on return to checkout, instead "Sorry, no quotes are available for this order at this time" is shown and customer can't continue past shipping step.
Your setup