BAD_INPUT_ERROR - Things don't appear to be working at the moment. Please try again later.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello everyone,
From this morning (12/09/2017) I've started having problems with a paypal button that has been working for almost 10 years.
this is the code:
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="action_url" value="https://www.paypal.com/cgi-bin/webscr">
<input type="hidden" name="business" value="xxxxxx">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="image_url" value="xxx">
<input type="hidden" name="return" value="xxxxx">
<input type="hidden" name="cancel_return" value="xxxxx">
<input type="hidden" name="notify_url" value="xxxxx">
<input type="hidden" name="rm" value="2">
<input type="hidden" name="currency_code" value="GBP">
<input type="hidden" name="lc" value="ES">
<input type="hidden" name="cbt" value="PINCHA AQUI PARA COMPLETAR LA RESERVA">
<input type="hidden" name="charset" value="utf-8">
<input type="hidden" name="no_shipping" value="1">
<input type="hidden" name="item_name" value="xxxxx xxxxxx"
<input type="hidden" name="item_number" value="xxxxx xxx">
<input type="hidden" name="amount" value="100">
<input type="hidden" name="invoice" value="invoice_xxxxxx_xxxxx">
<input type="hidden" name="first_name" value="xxxxx">
<input type="hidden" name="last_name" value="xxxx">
<input type="submit" name="book" value="RESERVE NOW" class="book"> </form>
----
error message
Things don't appear to be working at the moment. Please try again later.
url
-----
I've already tried everything but I can't really figure out what is the problem.
If I remove the "item_name", it works however the system requires to the customer to fill upthe item name and this is something that I don't want to happen.
Anyone that can help me?
(I can't see any spaces in the wrong places, any missing variables, etc. the button hasn't been updated since at least 2012 however I don't see any problem)
thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @MTS_Andre,
with @pnowak we are facing BAD_INPUT_ERROR bug with following code:
<form action="https://www.sandbox.paypal.com/cgi-bin/webscr" accept-charset="UTF-8" method="post" id="uc-paypal-wps-form">
<div><input type="hidden" name="cmd" id="edit-cmd" value="_cart" />
<input type="hidden" name="charset" id="edit-charset" value="utf-8" />
<input type="hidden" name="notify_url" id="edit-notify-url" value="https://xxxxxxxxxxx/xx/uc_paypal/ipn/84423" />
<input type="hidden" name="cancel_return" id="edit-cancel-return" value="https://xxxxxxxxxxx/xx/uc_paypal/wps/cancel" />
<input type="hidden" name="no_note" id="edit-no-note" value="1" />
<input type="hidden" name="no_shipping" id="edit-no-shipping" value="1" />
<input type="hidden" name="return" id="edit-return" value="https://xxxxxxxxxxx/xx/uc_paypal/wps/complete/84423" />
<input type="hidden" name="rm" id="edit-rm" value="2" />
<input type="hidden" name="currency_code" id="edit-currency-code" value="CAD" />
<input type="hidden" name="handling_cart" id="edit-handling-cart" value="2.00" />
<input type="hidden" name="invoice" id="edit-invoice" value="XXXXX-XXXXXXXXXX" />
<input type="hidden" name="tax_cart" id="edit-tax-cart" value="0.35" />
<input type="hidden" name="business" id="edit-business" value="xxxxemailxxxx" />
<input type="hidden" name="upload" id="edit-upload" value="1" />
<input type="hidden" name="lc" id="edit-lc" value="US" />
<input type="hidden" name="address1" id="edit-address1" value="Some street" />
<input type="hidden" name="city" id="edit-city" value="SomeCity" />
<input type="hidden" name="country" id="edit-country" value="CA" />
<input type="hidden" name="state" id="edit-state" value="AB" />
<input type="hidden" name="zip" id="edit-zip" value="123" />
<input type="hidden" name="amount_1" id="edit-amount-1" value="7.00" />
<input type="hidden" name="item_name_1" id="edit-item-name-1" value="XXXXXXXX" />
<input type="hidden" name="item_number_1" id="edit-item-number-1" value="XXXXX" />
<input type="hidden" name="quantity_1" id="edit-quantity-1" value="1" />
<input type="submit" name="op" id="edit-submit" value="Submit Order" class="form-submit" />
<input type="hidden" name="form_build_id" id="form-5c25ed265322385f5a57d050d4643894" value="form-5c25ed265322385f5a57d050d4643894" />
<input type="hidden" name="form_token" id="edit-uc-paypal-wps-form-form-token" value="0112a21482d64a9d9948d9e399396cdd" />
<input type="hidden" name="form_id" id="edit-uc-paypal-wps-form" value="uc_paypal_wps_form" />
</div></form>
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, I ran a test with the same html button code replacing the business varaible value with one of my test accounts. I could not reproduce the BAD_INPUT error. I would need to run the same button with the values you are passing in each variable as it might be related to some values passed. If you can share the button with the variables values you are passing I can re-run a test.
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I'm sorry, but I can't paste here the code in original, becasue it client's private data.
Meanwhile I've figured out that adding parameter shipping_1 with value 0.00 fixes the BAD_INPUT_ERROR issue.
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I am having the same error on my local machine with sandbox and on live
My form is
```
<form action="https://www.sandbox.paypal.com/cgi-bin/webscr" id="paypal_standard_checkout" name="paypal_standard_checkout" method="POST">
<div><input name="form_key" type="hidden" value="CNK6FzgLsDZkU9st" /></div>
<input id="business" name="business" value="******" type="hidden"/>
<input id="invoice" name="invoice" value="100000565" type="hidden"/>
<input id="currency_code" name="currency_code" value="AUD" type="hidden"/>
<input id="paymentaction" name="paymentaction" value="sale" type="hidden"/>
<input id="return" name="return" value="http://test.testbox.local/paypal/standard/success/" type="hidden"/>
<input id="cancel_return" name="cancel_return" value="http://test.testbox.local/paypal/standard/cancel/" type="hidden"/>
<input id="notify_url" name="notify_url" value="http://test.testbox.local/paypal/ipn/" type="hidden"/>
<input id="bn" name="bn" value="Magestore_SI_MagentoCE" type="hidden"/>
<input id="item_name" name="item_name" value="test Australia" type="hidden"/>
<input id="lc" name="lc" value="en_AU" type="hidden"/>
<input id="charset" name="charset" value="utf-8" type="hidden"/>
<input id="amount" name="amount" value="126.77" type="hidden"/>
<input id="tax" name="tax" value="12.68" type="hidden"/>
<input id="shipping" name="shipping" value="8.63" type="hidden"/>
<input id="discount_amount" name="discount_amount" value="0.00" type="hidden"/>
<input id="item_number_1" name="item_number_1" value="3JFHF6AS" type="hidden"/>
<input id="item_name_1" name="item_name_1" value="Waffle Blanket" type="hidden"/>
<input id="quantity_1" name="quantity_1" value="1" type="hidden"/>
<input id="amount_1" name="amount_1" value="118.14" type="hidden"/>
<input id="item_number_2" name="item_number_2" value="Shipping Options - Postage 1-4 Business Days Pending Delivery Area Packages are shipped on Tuesdays and Thursdays. Cut off time is 12:00" type="hidden"/>
<input id="item_name_2" name="item_name_2" value="Shipping" type="hidden"/>
<input id="quantity_2" name="quantity_2" value="1" type="hidden"/>
<input id="amount_2" name="amount_2" value="8.63" type="hidden"/>
<input id="cmd" name="cmd" value="_cart" type="hidden"/>
<input id="upload" name="upload" value="1" type="hidden"/>
<input id="tax_cart" name="tax_cart" value="12.68" type="hidden"/>
<input id="discount_amount_cart" name="discount_amount_cart" value="0.00" type="hidden"/>
<input id="city" name="city" value="Perth" type="hidden"/>
<input id="country" name="country" value="AU" type="hidden"/>
<input id="email" name="email" value="******" type="hidden"/>
<input id="first_name" name="first_name" value="Test" type="hidden"/>
<input id="last_name" name="last_name" value="TEST" type="hidden"/>
<input id="zip" name="zip" value="6000" type="hidden"/>
<input id="state" name="state" value="" type="hidden"/>
<input id="address1" name="address1" value="" type="hidden"/>
<input id="address2" name="address2" value="" type="hidden"/>
<input id="address_override" name="address_override" value="1" type="hidden"/>
<span class="field-row">
<input id="submit_to_paypal_button_06862b022368f6c9fe7771a7efe30594" name="" value="Click here if you are not redirected within 10 seconds..." type="submit" class=" submit"/>
</span>
</form>
```
My emails where formatted correctly as I have seen has been an error for others
Any thoughts?
Bevan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, in your case the length of the item_number_2 is too long. Maximum allowed number of characters is 127. Tested with a shorter desc and it works.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
PayPal Sandbox Txns were working fine until recently, but now I'm getting the BAD_INPUT error. I've tried it with and without the "_1" after the item_name, item_number, and amount var names with no luck. Below is a sample transaction that was rejected. Do you see anything amiss? Thanks!
["cmd"]=> string(7) "_xclick"
["business"]=> string(41) "xxxxxx.xxxx.com"
["email"]=> string(21) "xxxxxxxxxxxxx"
["item_name_1"]=> string(19) "Test Plan - Premium"
["item_number_1"]=> int(588)
["currency_code"]=> string(3) "USD"
["amount_1"]=> string(1) "3"
["tax"]=> int(0)
["custom"]=> int(418)
["notify_url"]=> string(71) "http://xxxxxxxx/xxxxxx/?pay_gate_listener=paypal_ipn"
["return"]=> string(209) "http://xxxxxxxx/xxxxxx/xxxxx/?pmsscscd=xxxxxxxxxx&pmsscsmsg=xxxxxxxxxxxxxxx&pms_gateway_payment_id=xxxx"
["bn"]=> string(13) "Cozmoslabs_SP"
["charset"]=> string(5) "UTF-8"
- « Previous page
-
- 1
- 2
- Next page »
Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
- Seller "Buy now" button - unable to edit a button in PayPal Payments Standard
- My developer page is missing after I deleted some APIs in REST APIs
- I'm getting error once user try to pay via PayPal - NVP/SOAP Api Integration in NVP/SOAP APIs
- Adaptive Payments stopped working in early Feb 2024 in NVP/SOAP APIs
- Encrypted subscription button has stopped working in NVP/SOAP APIs