- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Greetings everyone. Let me first apologize if this has been successfully covered in another thread. I've been combing through forums all day and have found very little to help me solve this issue. As of May 2017 (last successfully documented customer transaction), my site hasn't been able to complete transactions using Paypal. I'm using Drupal 7 (7.56) w/ Drupal Commerce module and Paypal (commerce_paypal_wps) module version: 7.x-2.4. When users reach the confirmation screen asking them to verify their information, they can then click 'checkout' button at which point they should be redirected to Paypal's login/confirmation screen. Unfortunately, the Paypal login/confirmation redirect doesn't render and is instead replaced with the following error:
```BAD_INPUT_ERROR - Things don't appear to be working at the moment. Please try again later.```
I've tried a number of possible solutions to no avail - When I inspect the network request (and preserve log) I receive the following read out:
- cmd: _cartupload: 1business: *removed so I could make this post*bn: CommerceGuys_Cart_PPScharset: utf-8no_note: 1no_shipping: 1cancel_return: https://hategrenade.com/checkout/16/payment/back/0V8qngMClSiqkNnuU5k8m1mTLLa7YJDgt3cPuGo0Kogreturn: https://hategrenade.com/checkout/16/payment/return/0V8qngMClSiqkNnuU5k8m1mTLLa7YJDgt3cPuGo0Kogrm: 2paymentaction: salecurrency_code: USDlc: USinvoice: 16-1516044175amount_1: 27.00item_name_1: Order 16 at Hate Grenadeon0_1: Product countos0_1: 1form_build_id: form-IcOTdB6r183MAu-xscK9KNlqJ3jjbG_kQYAJlG5Y5tIform_id: commerce_checkout_form_payment
All the fields look to be in order and none of the tips from here did the trick...The only other thing I can think of that's different on my end is that I added LetsEncrypt SSL certs. Could this be a possible cause? Any advice or instruction would be greatly appreciated.
Best,
Chuck
Solved! Go to Solution.
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Okay...First and foremost, I want to thank everyone who helped troubleshoot this for me. After a several hours of pulling hair out, I traced the 'bad input' error to an extra 'space' that had been included in the business email. Once I removed the space, everything worked perfectly fine...You can commense laughing if you haven't began to do so already. lol The extra space must have happened when configuring back and forth between live business email and my development sandbox email...I would consider this a bug within the Drupal Commerce module - One shouldn't be able to successfully 'save' a form if the form field doesn't meet a specific format; I'm going to correct this and submit a pull-request to their community so that this doesn't happen unexpectedly to anyone else in the future. Thanks again for your help!
Best,
Chuck
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Can you post the URL from the error page please and we can pull the logs on our side to see what is happening.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
No problem...Thanks so much for helping me troubleshoot this!
The error link occurs on the 'Review page' when customers click the 'Continue to next step' button. At that point, our site tries to reach Paypal's login/purchase confirmation screen...ultimately hangs...and provides this message:
https://www.paypal.com/webapps/shoppingcart/error?flowlogging_id=45b947654b2d1&code=BAD_INPUT_ERROR
Best,
Chuck
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, I tried the same button taking all the values in your example above and it worked. It could be something in the button code-syntax. Can you post the exact button code you are using? Cover your business email in case. At the moment I can't find much in the logs for that but am going to double check.
This is my working test, just replace the business variable with your account email, this button code has exactly all the variables you posted and if you copy and paste this button code into an html file you can run into the browser and will work.
<form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post" >
<input type="hidden" name="cmd" value="_cart">
<input type="hidden" name="upload" value="1">
<input type="hidden" name="business" value="YOUR_ACCOUNT_EMAIL_HERE">
<input type="hidden" name="lc" value="US">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="notify_url" value="https://hategrenade.com/commerce_paypal/ipn/paypal_wps%7Ccommerce_payment_paypal_wps">
<input type="hidden" name="bn" value="CommerceGuys_Cart_PPS">
<input type="hidden" name="charset" value="utf-8">
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="no_shipping" value="1">
<input type="hidden" name="cancel_return" value="https://hategrenade.com/checkout/16/payment/back/0V8qngMClSiqkNnuU5k8m1mTLLa7YJDgt3cPuGo0Kog">
<input type="hidden" name="return" value="https://hategrenade.com/checkout/16/payment/return/0V8qngMClSiqkNnuU5k8m1mTLLa7YJDgt3cPuGo0Kog">
<input type="hidden" name="rm" value="2">
<input type="hidden" name="paymentaction" value="sale">
<input type="hidden" name="invoice" value="16-1516044175">
<input type="hidden" name="on0_1" value="Product count">
<input type="hidden" name="os0_1" value="1">
<input type="hidden" name="form_build_id" value="form-IcOTdB6r183MAu-xscK9KNlqJ3jjbG_kQYAJlG5Y5tI">
<input type="hidden" name="form_id" value="commerce_checkout_form_payment">
<input type="hidden" name="amount_1" value="27.00">
<input type="hidden" name="item_name_1" value="Order 16 at Hate Grenade">
<input type="hidden" name="bn" value="PP-ShopCartBF:btn_cart_LG.gif:NonHosted">
<input type="image" src="https://www.paypalobjects.com/en_GB/i/btn/btn_cart_LG.gif" border="0" name="submit" alt="PayPal – The safer, easier way to pay online!">
<img alt="" border="0" src="https://www.paypalobjects.com/en_GB/i/scr/pixel.gif" width="1" height="1">
</form>
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Okay...First and foremost, I want to thank everyone who helped troubleshoot this for me. After a several hours of pulling hair out, I traced the 'bad input' error to an extra 'space' that had been included in the business email. Once I removed the space, everything worked perfectly fine...You can commense laughing if you haven't began to do so already. lol The extra space must have happened when configuring back and forth between live business email and my development sandbox email...I would consider this a bug within the Drupal Commerce module - One shouldn't be able to successfully 'save' a form if the form field doesn't meet a specific format; I'm going to correct this and submit a pull-request to their community so that this doesn't happen unexpectedly to anyone else in the future. Thanks again for your help!
Best,
Chuck
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello
i use opencart v2.3.0.2 but i have this error :
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_cart">
<input type="hidden" name="upload" value="1">
<input type="hidden" name="business" value="my paypal email">
<input type="hidden" name="item_name_1" value="Pcard | 0606-Friendship">
<input type="hidden" name="item_number_1" value="Pcard | 0606-Friendship">
<input type="hidden" name="amount_1" value="3.5">
<input type="hidden" name="quantity_1" value="5">
<input type="hidden" name="weight_1" value="0">
<input type="hidden" name="on0_1" value="Upload your high quality favorite photo to print a postcard">
<input type="hidden" name="os0_1" value="cpanel.png">
<input type="hidden" name="on1_1" value="Enter the English or Persian text you want to print on the postcard">
<input type="hidden" name="os1_1" value="test">
<input type="hidden" name="on2_1" value="Enter the English or Persian text you want to print behind the postcard">
<input type="hidden" name="os2_1" value="test">
<input type="hidden" name="on3_1" value="Enter your greetings or message for printing inside the postcard">
<input type="hidden" name="os3_1" value="test">
<input type="hidden" name="item_name_2" value="Shipping, Handling, Discounts & Taxes">
<input type="hidden" name="item_number_2" value="">
<input type="hidden" name="amount_2" value="10">
<input type="hidden" name="quantity_2" value="1">
<input type="hidden" name="weight_2" value="0">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="first_name" value="demo">
<input type="hidden" name="last_name" value="demo">
<input type="hidden" name="address1" value="my address">
<input type="hidden" name="address2" value="">
<input type="hidden" name="city" value="demo city">
<input type="hidden" name="zip" value="">
<input type="hidden" name="country" value="IR">
<input type="hidden" name="address_override" value="0">
<input type="hidden" name="email" value="my customer email">
<input type="hidden" name="invoice" value="40 - demo demo">
<input type="hidden" name="lc" value="en-gb">
<input type="hidden" name="rm" value="2">
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="no_shipping" value="1">
<input type="hidden" name="charset" value="utf-8">
<input type="hidden" name="return" value="http://giftbaran.com/en-gb/checkout/success">
<input type="hidden" name="notify_url" value="http://giftbaran.com/en-gb/extension/payment/pp_standard/callback">
<input type="hidden" name="cancel_return" value="http://giftbaran.com/en-gb/checkout/checkout">
<input type="hidden" name="paymentaction" value="authorization">
<input type="hidden" name="custom" value="40">
<input type="hidden" name="bn" value="OpenCart_2.0_WPS">
<div class="buttons">
<div class="pull-right">
<input type="submit" value="Confirm Order" class="btn btn-primary">
</div>
</div>
</form>
please help me to solve this problem.
thanks
Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
- Disputes Webhook does not works on Sandbox (23/04/24) in Sandbox Environment
- Issue with Empty store_info in Response Using /v1/reporting/transactions on Sandbox API in REST APIs
- IPN works in sandbox but not live in Sandbox Environment
- link my PayPal business account with my WordPress website , but it's not work ?! in PayPal Payments Standard
- Problems with accent characters when calling Paypal API (v2/invoicing/invoices). in REST APIs