craigchristenson / woocommerce-2checkout-api

2Checkout Payment API WooCommerce Payment Module
MIT License
57 stars 43 forks source link

Bad request - parameter error #34

Open asimnoor12 opened 6 years ago

asimnoor12 commented 6 years ago

Hello,

I have created my website in wordpress and i have integrated 2checkout payment method using these steps as mentioned in this link https://www.2checkout.com/shopping-cart/woocommerce

Download or clone the extension from Github. Copy the ‘twocheckout’ folder to your WordPress ‘plugins’ directory under ‘/wp-content/plugins’. In your WordPress admin, navigate to Plugins and install the 2Checkout Payment Gateway plugin. Navigate to your WooCommerce settings page, click on Payment Gateways and click the Twocheckout link. Check to enable. Enter the payment title and description. Enter your Seller ID (2Checkout Account Number). Enter your 2Checkout API publishable key. Enter your 2Checkout API private key. Click Save Changes. Important note: The API keys can be found in your 2Checkout account’s dashboard under the API tab.

2Checkout Settings:

Sign in to your 2Checkout account. Click the Account tab and Site Management subcategory. Under Direct Return select Header Redirect. Enter your Secret Word (Must be the same value entered in your WooCommerce admin.) Click Save Changes.

But I am getting this error (Bad request - parameter error). Please help me how to fix it?

Thanks.

craigchristenson commented 6 years ago

This indicates that a required parameter is not being passed (usually a billing address value such as a postal code for a US or Canada address). What customer information is being collected at the checkout?

Thanks, Craig

On Mon, Jan 1, 2018 at 12:43 PM, asimnoor12 notifications@github.com wrote:

Hello,

I have created my website in wordpress and i have integrated 2checkout payment method using these steps as mentioned in this link https://www.2checkout.com/shopping-cart/woocommerce

Download or clone the extension from Github. Copy the ‘twocheckout’ folder to your WordPress ‘plugins’ directory under ‘/wp-content/plugins’. In your WordPress admin, navigate to Plugins and install the 2Checkout Payment Gateway plugin. Navigate to your WooCommerce settings page, click on Payment Gateways and click the Twocheckout link. Check to enable. Enter the payment title and description. Enter your Seller ID (2Checkout Account Number). Enter your 2Checkout API publishable key. Enter your 2Checkout API private key. Click Save Changes. Important note: The API keys can be found in your 2Checkout account’s dashboard under the API tab.

2Checkout Settings:

Sign in to your 2Checkout account. Click the Account tab and Site Management subcategory. Under Direct Return select Header Redirect. Enter your Secret Word (Must be the same value entered in your WooCommerce admin.) Click Save Changes.

But I am getting this error (Bad request - parameter error). Please help me how to fix it?

Thanks.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/craigchristenson/woocommerce-2checkout-api/issues/34, or mute the thread https://github.com/notifications/unsubscribe-auth/AAPWZbMEAzIgKH1rADUQpKYJGDo6RkCnks5tGRlWgaJpZM4RQILg .

xnau commented 6 years ago

I'm having this problem as well. The plugin as been working great for months, now suddenly I get the "Bad request - parameter error" message when I try to check out.

Looking at the API log, I see:

2018-01-18 07:02:12 AM Authorization No Items Selected. Yes Bad request - parameter error

A successful transaction logs like this:

2017-12-08 11:39:40 AM Authorization [ Item Name : 4754 Item Price : 10.00 Item Type : product Item Quantity : 1 Is Tangible : N Is Recurrent : null Recurrent Duration : null Startup Fee : null Product Id : Item Description : ] Yes orderNumber : 2064223527 transactionId : 2064222536

This all suggests that what is missing is the purchased item info. All my products are not tangible, so I have never needed to send an address for my customers: just a name and email.

Did something change in WooCommerce to break this? I did update it recently...I keep it up to date.

xnau commented 6 years ago

OK, Solved the problem, and you were correct, Craig, including the buyer's billing address info allowed the transaction to complete.

I had set up a filter that allowed people to check out without putting in their address (since I didn't need it) but 2Checkout requires it.

hassansarwarlive commented 5 years ago

@xnau how did you create that filter? I just finished setting up 2checkout with woocommerce. I am testing it myself, I have put in the address and everything still I get the parameter error with 'No Items Selected' in error log.

Can you please guide me on how to fix this?

zmaniar commented 4 years ago

Hello. I have added all the billing details but still getting this error Bad request - parameter error

Api call shows:

Call Timestamp API Call Attempted API Call Body Key / Token Match Response Body to Seller
2020-01-29 11:38:24 AM Authorization No Items Selected. Yes Bad request - parameter error
2020-01-29 11:38:22 AM Token   Yes 747be12b-f9ca-4eeb-ad2a-805d4dd9b8f3
mcy260 commented 4 years ago

where do you check those errors? I got the same Bad request - parameter error but i have no idea where to look

mtachaudhary commented 3 years ago

Hello. I have added all the billing details but still getting this error Bad request - parameter error

Api call shows:

Call Timestamp API Call Attempted API Call Body Key / Token Match Response Body to Seller 2020-01-29 11:38:24 AM Authorization No Items Selected. Yes Bad request - parameter error 2020-01-29 11:38:22 AM Token   Yes 747be12b-f9ca-4eeb-ad2a-805d4dd9b8f3

Have you resolved this issue? I am also facing the "Bad request - parameter error". Also please let me know, how can I check the API call/log?

My 2Checkout account is not activated. May be this issue is due to the account activation. I just want to test the 2Checkout, is there any way to test it?

Thanks