VirtueMart Forum

VirtueMart 2 + 3 + 4 => Plugins: Payment, Shipment and others => Topic started by: p.barg on April 24, 2019, 09:46:13 AM

Title: Amazon Pay
Post by: p.barg on April 24, 2019, 09:46:13 AM
Hi,

I'm struggling with the setup of "Pay with Amazon". After clicking on the button and entering the Amazon credentials, the checkout fails with the message that no shipment can be found for that address.
The problem seems to be that the Amazon widgets for address book and payment methods are not loaded. In the console I see warnings: "Das Skript von "https://payments.amazon.de/gp/widgets/abtests?merchantId=xxxx&abtestName=NEW_WIDGETS&callback=jsonp1556091402375" wurde geladen, obwohl sein MIME-Typ ("text/html") kein für JavaScript gültiger MIME-Typ ist." ("script loaded although it has a wrong MIME-type")
Tried with several templates even Protostar without any template overrides.
Joomla! 3.9.5, Virutemart 3.4.2.

Any hint how to solve this? Anyone with the same/similar problem?

Petra
Title: Re: Amazon Pay
Post by: p.barg on April 26, 2019, 12:04:44 PM
I've done some further testing and have the following remarks:

If there are are only shipping methods that are restricted to certain countries, the Amazon widgets won't load at all (if customer is not logged in in Joomla/VM).
I've added a shipping methods applicable to all countries (which is nothing I can do in the LIVE shop) and at least the Amazon Payment Methods Widget was shown.
But still the address book widget is not shown.

Any idea what could cause that issue?
Title: Re: Amazon Pay
Post by: GJC Web Design on April 26, 2019, 12:19:11 PM
My only comment is when using only Authorize I needed a hidden dummy VM std payment method to get Authorize to work correctly..

that was a while ago though and may have been fixed since
Title: Re: Amazon Pay
Post by: p.barg on April 26, 2019, 12:30:10 PM
Hi,

do you mean Amazon? You say Authorize...

But I have some standard payment methods in addition to amazon pay - so that can't be the issue.

Title: Re: Amazon Pay
Post by: GJC Web Design on May 03, 2019, 12:21:44 PM
Authorize -- it is the logic in the templates to display the methods .. if I ONLY had Authorize the CC form never showed etc .. as I say .. was a while ago but afaik the cart payment method logic is still the same
Title: Re: Amazon Pay
Post by: p.barg on May 06, 2019, 10:32:20 AM
OK thanks.
But I do have several other (VM standard) pament methods, so that can't be the issue here.
I've read in a different (fairly old) thread that someone else had the same problem with the address book widget not appearing.
Title: Re: Amazon Pay
Post by: p.barg on September 27, 2019, 12:47:54 PM
Update for those who are also struggling with Amazon Pay:

we finally discovered that the problems resulted from the fact, that the products in the shop didn't have a weight.
Products are then considered as digital and the amazon address gadget is not displayed.
After entering weights for the products, the checkout process was successful.