I purchased your 2checkout plugin in Envato market to use for my subscription service.
I configured the plugin using my 2checkout account, and tried to checkout with my test product.
This is the test product, and It keeps showing ‘unauthorized’ error when I try to checkout with my credit card.
Could you tell me how I can fix this?
There are many reasons why you might be experiencing this error. see https://omnipay.io/kb/topic/2checkout-unauthorized-error/
Are you testing with a sandbox or live API credentials?
I’m testing with live API credentials and I updated API information.
Today, ‘Bad request – parameter error’ happens.
Plsease see this guide https://omnipay.io/kb/topic/2checkout-unauthorized-error/
And ensure you demo/test mode in 2Checkout payment setting so page is not enabled.
I think all of the API information I filled are correct, and I turned on demo mode.
Please see the attached screenshots.
Attachments:You must be logged in to view attached files.
You can’t be testing with live API credentials and still turn on Demo mode.
Turn on demo mode if you are using sandbox API.
I don’t understand why I can’t use live API credentials for test.
In fact, I can’t use 2Checkout Sandbox API, because it doesn’t support Korean Won that their live API supports.
Please do not care if I’m using live or sandbox API, just tell me why the parameter error happens.
> I don’t understand why I can’t use live API credentials for test.
You can use the live API. But ensure test mode is not checked.
>Please do not care if I’m using live or sandbox API, just tell me why the parameter error happens.
The unauthorized error occurs when a couple of things happen.
1. The live account credentials are being used while testing in sandbox or vice versa
2. An invalid token is present, or the token was already used on a prior call.
I am guessing 1 above is the cause of your problem. Also ensure your API credentials are correct in the plugin settings.
Thanks for your reply.
I checked the credentials and demo settings, but it still shows an error.
This is the message from console in Chrome browser.
Does it give you any idea why the error happens?
That note on your browser console shows that credit card tokenization is created successfully.
It is on the server level where the charge is to make thatbis failing.
Did you add any custom code to your themes functions.php file or a spite specific plugin related to this plugin whatsoever?
If you indeed added one, remove it.
Thanks for your prompt reply and I finally found the cause of this issue.
I changed to 2checkout site mode, not on-site, and found that the billing address was not correct for the 2checkout address field.
When I input the address manually on 2checkout’s checkout page, the billing was successful.
I don’t know how I can fix this issue on-site mode, so please give me advice for this if you have any.
I think I need to try other plugins for shipping address’ issue.
You must be logged in to reply to this topic.