VirtueMart Forum

VirtueMart 2 + 3 + 4 => Plugins: Payment, Shipment and others => Topic started by: Pyrrus on March 31, 2015, 16:38:12 PM

Title: Pay with Amazon not shown on checkout
Post by: Pyrrus on March 31, 2015, 16:38:12 PM
Hi there,
I configured the amazon plugin correctly but the button for the amazon checkout is not shown to the user.

VM 3.0.6.3
Joomla 3.4

Using Rupostel OPC 2.0.285.120315 but tried also with standard template and OPC switched off.
Can somebody help?
Page is www.baby-naturwelt.de

Thanks a lot
Title: Re: Pay with Amazon not shown on checkout
Post by: Romy_Magick on April 12, 2015, 23:03:24 PM
I've got the same problem here.
I'm using the default template and checked the documentation (http://docs.virtuemart.net/tutorials/templating-layouts/188-templates-for-payments.html)
Everything seems fine in the source code from the side I support: www.magick-nature.de

Virtemart: 3.0.6.2
Joomla: 3.4.1

Help is appreciated :)
Title: Re: Pay with Amazon not shown on checkout
Post by: alatak on April 13, 2015, 09:47:49 AM
Hello
I do not know if the  Rupostel OPC is compatible with amazon.

on this website  www.magick-nature.de, i can see that the amazon javascript is not loaded? Is the plugin published at the moment ?
Title: Re: Pay with Amazon not shown on checkout
Post by: Romy_Magick on April 13, 2015, 21:08:36 PM
Quote from: alatak on April 13, 2015, 09:47:49 AM
on this website  www.magick-nature.de, i can see that the amazon javascript is not loaded? Is the plugin published at the moment ?

Yes it is. Both, Amazon payment methods and the Amazon payment plugin located in Joomla - Plugins are published to public.

Maybe, there is another problem: Altough I put Amazon for testing as sandbox my Amazon Payment Account is waiting for being validated and therefore Amazon maybe blocks the script from being loaded into the side? I didn't thought of this possibility, because I was able to get all needed information to fill into the needed forms. 
Title: Re: Pay with Amazon not shown on checkout
Post by: alatak on April 14, 2015, 09:12:12 AM
ello
The reason why the amazon button is not showing is because the OPC option in VM is not checked.
You can either :
- use the option OPC in the VM configuration
- add this line <div class="payments_signin_button"></div> in the components/com_virtuemart/views/cart/tmpl/select_payment.php (do an override of that file)

The best is to use the OPC. :)
Title: Re: Pay with Amazon not shown on checkout
Post by: alatak on April 14, 2015, 09:19:58 AM
QuoteUsing Rupostel OPC 2.0.285.120315 but tried also with standard template and OPC switched off.
Can somebody help?
Page is www.baby-naturwelt.de

this line is  missing in the template
<div class="payments-signin-button"></div>

please read this:http://docs.virtuemart.net/tutorials/templating-layouts/188-templates-for-payments.html
Title: Re: Pay with Amazon not shown on checkout
Post by: Romy_Magick on April 14, 2015, 18:44:48 PM
Quote from: alatak on April 14, 2015, 09:12:12 AM
ello
The reason why the amazon button is not showing is because the OPC option in VM is not checked.
You can either :
- use the option OPC in the VM configuration
- add this line <div class="payments_signin_button"></div> in the components/com_virtuemart/views/cart/tmpl/select_payment.php (do an override of that file)

The best is to use the OPC. :)

Thank you very much!
Good news: With OPC the Amazon-JS seems to be loaded! 
Bad news: but the button is still not visible. Overwriting select_payment.php has no noticeable effect (except that the JS is loaded nto the select payment page, but also no button). For now, I let OPC activated, maybe it helps you debugging. I checked also IPN at Amazon MWS IPN, to be sure the cert has no issue. IPN check validated the cert.
Title: Re: Pay with Amazon not shown on checkout
Post by: alatak on April 14, 2015, 19:45:25 PM
Hello
arg ... my bad in the documentation :(
the line to add is
<div class="payments-signin-button"></div>
a - and not a _

i am fixing the documentation
Title: Re: Pay with Amazon not shown on checkout
Post by: Romy_Magick on April 14, 2015, 22:42:43 PM
Quote from: alatak on April 14, 2015, 19:45:25 PM
Hello
arg ... my bad in the documentation :(
the line to add is
<div class="payments-signin-button"></div>
a - and not a _

i am fixing the documentation

It's a beta, we have been warned. We're here to help you. At least thats my POV :)

In the documentation it's the same issue under "In the module" or should here used _ and not - ?

and also in the source code /components/com_virtuemart/views/cart/tmpl/default.php line 70.
After correcting that, everything seems to work. I'm testing it now in the sandbox.
It should be updated in the next Virtuemart update :)

edit: There seems to be another problem: The address could not be handled and I'm adviced to take another one (hint: doesn't work either)
According to the vmpayment_amazon code it's following error: VMPAYMENT_AMAZON_UPDATECART_ERROR

Test account:
Test@magick.de
abc123

or should I open a new thread for this one?
Title: Re: Pay with Amazon not shown on checkout
Post by: alatak on April 15, 2015, 09:21:24 AM
Hello
QuoteIn the documentation it's the same issue under "In the module" or should here used _ and not - ?
txs, i have fixed it.
Title: Re: Pay with Amazon not shown on checkout
Post by: alatak on April 15, 2015, 10:37:02 AM
ok, i found the real problem actually for the signin button to show:

it was in the xml file for VM3: where the default value of the parameter "Sign in button" was wrong.

so i am putting it back to _, and fixing the default value in the xml.

Templaters have added that line with the _

You can fix it yourself in the payment configuration
Title: Re: Pay with Amazon not shown on checkout
Post by: Milbo on April 15, 2015, 15:57:26 PM
actually I reverted it, also in the documentation. We use now

class="payments-signin-button"
Title: Re: Pay with Amazon not shown on checkout
Post by: alatak on June 08, 2015, 14:34:35 PM
Hello Ramon,

You have this error message: vmError: getOrderReferenceDetailsResponse The AWS Access Key Id you provided does not exist in our records. (0)
Your account may need to be validated by amazon.
I have sent an email to my technical contact , and asked him to check if that is the reason.
Title: Re: Pay with Amazon not shown on checkout
Post by: alatak on July 02, 2015, 09:30:45 AM
Hello
Are your problems solved?
Title: Re: Pay with Amazon not shown on checkout
Post by: daltan75 on March 22, 2018, 16:00:17 PM
I have the same problem, have you solved?