VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: nickm321 on January 16, 2014, 17:19:17 PM

Title: checkout select payment method loop [solved]
Post by: nickm321 on January 16, 2014, 17:19:17 PM
Hi. My cart keeps looping on checkout. I click the Checkout button, it goes to the Select payment method screen, where Paypal, the only option, is already selected. I click Save, and it goes back to the cart screen.

http://scubascenetaunton.com/shop/cart (http://scubascenetaunton.com/shop/cart)

Joomla 2.5.15
Virtuemart 2.0.26d
Standard Paypal payment method.
Title: Re: checkout select payment method loop
Post by: alatak on January 17, 2014, 11:33:39 AM
HEllo
There was some changes in the cart layout. PLease look here
http://forum.virtuemart.net/index.php?topic=120943.0
You can also turn off the OPC in the Vm config, and it will work.
Title: Re: checkout select payment method loop
Post by: flynny on January 23, 2014, 04:45:07 AM
Thanks you.
I had the same issue. Turned the One Page Checkout option off as Alatak suggested and it works fine.
Title: Re: checkout select payment method loop
Post by: kmeyer on January 20, 2015, 21:04:35 PM
Using Joomla 3.3.6, VM 3.02, site is test.kurtmeyer.com
I'm encountering the same loop, turning OPC off makes no difference. Thanks for any suggestions.
Title: Re: checkout select payment method loop
Post by: Milbo on January 23, 2015, 18:19:28 PM
Please be aware that the thread is a year old, which vm and joomla version you are using?
Title: Re: checkout select payment method loop
Post by: kmeyer on January 23, 2015, 22:52:47 PM
I can open a new thread if you prefer. Here are my details:

I am using Joomla 3.3.6, VM 3.0.2, site is test.kurtmeyer.com. You can use the Products/Ornaments And Magnets/Friendship Stars menu to add an item, and you can use the test account "buyer", pwd="buyer" when trying the checkout.

Title: Re: checkout select payment method loop
Post by: Milbo on January 26, 2015, 14:41:40 PM
Is not a problem to reuse it, but yes important to know your used version.

"Notice

Please accept the Terms of Service at the bottom of this page to proceed"

your layout override is broken, just remove it and use the original one.
Title: Re: checkout select payment method loop
Post by: kmeyer on January 26, 2015, 23:24:24 PM
Milbo, thanks for your response.  I don't believe I have any layout overrides in place. To make sure, I renamed my language override files and I switched my template to a fresh copy of Purity III. I had modified one vm file (plugins\search\virtuemart\virtuemart.php) per another thread to correct a problem with search. To make sure I hadn't changed any other files, I have renamed com_virtuemart and com_virtuemart_allinone and then copied those folders from a fresh install. The problem persists, and I don't know where to look to find what is causing this. You can see the re-created site with the re-set template, no language overrides, and fresh virtuemart paths at test2.kurtmeyer.com.

By the way, I don't think the problem is coming from Purity III, I tried a quick test with a fresh install including Purity III and a single product, and did not see the loop. Extensions I am using are Akeeba and JCE, I've run some directory comparisons between my site and a fresh install to make sure I'm not overlooking something.  Am I missing something obvious?

By the way, I had upgraded VM from 2.9.9d (or maybe e) to 3.0.2, in case that might be an issue.

I will PM you the credentials in case you can take the time to look at the backend. Thank you for your time and help!
Title: Re: checkout select payment method loop
Post by: Milbo on January 28, 2015, 13:16:43 PM
Sorry got neither ticket, nor pm. I just noticed last test, that clicking the tos does not automatically set it to confirmed. you have at the top the message taht you should click the tos.
Title: Re: checkout select payment method loop
Post by: kmeyer on January 30, 2015, 19:24:02 PM
After many experiments, testing, re-configuration, bashing of head against wall, etc., I found the problem, which I think is bizarre.

When I copied my API Signature credentials from PayPal's sandbox account screen (paypal.com/developer>Dashboard>Accounts, expand the sandbox merchant account, click Profile, select API Credentials tab on the Account Details pop-up) it was adding a couple of spaces at the end of the string, which I was then pasting into the VM PayPal Configuration screen. You can't tell because the entry is masked in the VM form. I only noticed the extra spaces because I tried setting up the PayPal configuration a second time, and on a whim tried pasting the API credentials into Notepad. I played around with that PayPal screen, and the spaces are only added if you select the Signature by dragging from the END of the string, not if you drag from the START of the string. Weird! I was using Firefox 35.0.1 to access that screen, perhaps other browsers would not have added the spaces.

When I stripped out the excess spaces, everything instantly worked. This makes me very happy, but I wish there had been a clearer indication SOMEWHERE that there was a problem with the API credentials. So many hours wasted on this problem!
Title: Re: checkout select payment method loop
Post by: GJC Web Design on January 31, 2015, 00:13:01 AM
marked as solved
Title: Re: checkout select payment method loop [solved]
Post by: alatak on January 31, 2015, 11:08:18 AM
Hello
Thank you for reporting this problem.
I have added the trim function everywhere one can do a copy/paste.
Quotebut I wish there had been a clearer indication SOMEWHERE that there was a problem with the API credentials.
It is impossible to check that the credentials are wrong in VM.
QuoteYou can't tell because the entry is masked in the VM form.
This is a security issue: fields that should not be shared are of type "password". A lot of users do a screenshot of their configuration and then send it to the payment support.
you have developer tools, that can display the content of that field, but yes, it is true, it will be still difficult to find out that there is a space at the end.
Title: Re: checkout select payment method loop [solved]
Post by: kmeyer on January 31, 2015, 20:43:48 PM
"It is impossible to check that the credentials are wrong in VM."

Hi alatak, perhaps instead of checking the credentials, it's worth looking at the flow--instead of simply coming back to the cart after a timeout from the payment system, with the TOS blanked back out and the message "Please accept TOS..." the flow should come back to the cart with the TOS preserved and the message "Timeout..." or some such. Not asking for this change, just suggesting it as something to think about.

Thanks for taking action to trim copy/paste locations!