php - Paypal Automatic Payment - Incorrectly Formatted Item Amount -
i'm having bit of trouble trying figure automatic payment setting custom form.
it works fine if use buy version, need setup automatic billing.
whenever submit form, error:
the link have used enter paypal system contains incorrectly formatted item amount.
i've tried following fix it:
- added/removed "$" before amount
- added/removed ".00" amount
- used parameter "amount" , "a3"
- created button in paypal , added hidden input named hosted_button_id
here code form , query string in backend:
form
<input type="text" name="a3" placeholder="price" value="9.99"><br> <input name="cmd" type="hidden" value="_xclick-auto-billing" /> <input type="hidden" name="hosted_button_id" value="xxxxx"> <input name="no_note" type="hidden" value="1" /> <input name="lc" type="hidden" value="us" /> <input name="currency_code" type="hidden" value="usd" /> <input name="no_shipping" type="hidden" value="1"> <input name="bn" type="hidden" value="easyappfinder_automaticbilling_wps_us" /><br> <input type="submit" value="submit" name="submit">
backend
$price = $_post['a3']; $querystring .= "a3=".$price."&"; $querystring .= "p3=1&t3=m&";
any appreciated! thank in advance :)
Comments
Post a Comment