Events Made Easy › Forums › Bug fixed or feature request implemented › 2Checkout has two sandbox modes, not one
- This topic has 1 reply, 2 voices, and was last updated 9 years, 8 months ago by Franky.
-
AuthorPosts
-
Wed 11 Mar 2015 at 17:49 #53712AnonymousInactive
When changing settings for 2Checkout payment method, I can either choose live or sandbox modes.
It appears that no matter which option I choose, EME will submit to this URL:
https://www.2checkout.com/checkout/spurchase
Notice the “s” before “purchase” on the end of the URL “spurchase”. I don’t believe this is correct.
According to 2CO documentation, the URL is supposed to be:
https://www.2checkout.com/checkout/purchaseThere is no “s” in this URL. Read their documentation here:
https://www.2checkout.com/documentation/sandbox/hosted-checkout-testing
It says right at the top the two URLs. I’m not even sure how 2CO is working if the URL is wrong!So my feature request is this: 2Checkout lets you have a basic “test” by sending a hidden field “demo” with value “Y”. This is what EME does when using sandbox mode. In this mode, 2CO does NOT send back notifications, which means we can’t fully test things.
We need a third sandbox mode which is for people who actually have a real 2CO “sandbox” account. When using the sandbox account, you actually have to submit to a different URL entirely which is:
https://sandbox.2checkout.com/checkout/purchase
You can sign up for 2CO sandbox account here: https://sandbox.2checkout.com/sandbox
The real 2CO sandbox account DOES send back notifications, and lets you test deeper.
I propose to allow users to choose “Live Mode” which is to the live URL. Then “Test Mode” which is live URL but using demo=Y hidden field. Then “Sandbox Account” which submits to the alternate sandbox URL and does NOT use demo=Y.
Here is one problem. I have a demo account, but it will fail to submit with either live mode OR sandbox mode because the URL is incorrect. Here are the docs:
http://help.2checkout.com/articles/Knowledge_Article/Error-Code-PE102/?q=sandbox&l=en_US&fs=Search&pn=1To get around this, I just open development tools and change the submit URL of the form to the sandbox URL. When I do this, it will use my 2CO sandbox account and properly send back notifications.
So my advice to you is this:
1) Why is your URL using “spurchase” when the docs show it as just “purchase” without the “s” in front?
2) Can you change the modes so there is Live, Test, and Sandbox modes using the correct URLs?Thanks!
Wed 11 Mar 2015 at 22:57 #53715FrankyKeymasterSince “spurchase” still works, I’m sure that in the past it was documented like that. But now that “purchase” gives the same result: no prob for me.
Also I added the sandbox/test/live thingie, see:
http://plugins.trac.wordpress.org/changeset/1110641 -
AuthorPosts
- The forum ‘Bug fixed or feature request implemented’ is closed to new topics and replies.