Paypal URL发布问题

时间:2016-12-20 10:22:06

标签: javascript php ajax web paypal

我正在尝试在我的网络应用程序上使用Paypal, 这是Paypal表格的代码:

<form action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post" target="_top">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="XXXXXXXXXX"><input type="image" src="https://www.paypalobjects.com/he_IL/IL/i/btn/btn_paynowCC_LG.gif" border="0" name="submit" alt="PayPal - הדרך הקלה והבטוחה יותר לשלם באינטרנט!"><img alt="" border="0" src="https://www.paypalobjects.com/he_IL/i/scr/pixel.gif" width="1" height="1">
<input type="hidden" name="full_name" value="Full name62249"><input type="hidden" name="rm" value="2">
<input type="hidden" name="no_note" value="1"><input type="hidden" name="custom" value="110"><input type="hidden" name="payer_email" value="xxxxxxxx@xxxxxxx.com"><input type="hidden" name="return" value="http://www.adv.nmc-medical.co.il/paypal-thanks">
</form>

它在桌面浏览器中正常运行。但在移动设备中它从POST返回一个空数组。 我打印了从Paypal返回的POST数组: 在桌面

array ( 'txn_id' => 'XXXXXXXXXXXX', 'mc_currency' => 'ILS', 'mc_fee' => '4.60', 'mc_gross' => '100.00', 'protection_eligibility' => 'ELIGIBLE', 'payment_date' => '2016-12-20T09:06:06Z', 'payment_fee' => '4.60', 'payment_gross' => '100.00', 'payment_status' => 'Completed', 'payment_type' => 'INSTANT_TRANSFER', 'business' => 'XXXXXXXXXX', 'receiver_id' => 'XXXXXXXXXX', 'payer_email' => 'XXXXXXXXX', 'payer_id' => 'XXXXXXXX', 'payer_status' => 'VERIFIED', 'first_name' => 'XXXXXX', 'last_name' => 'XXXXX', 'address_name' => 'loai Shi', 'address_street' => 'יXXXXXXXXX 5 XXXXXXX 4', 'address_city' => 'XXXXX', 'address_country_code' => 'IL', 'address_zip' => 'XXXXX', 'residence_country' => 'IL', 'item_name' => 'nmc test', 'quantity' => '1', 'custom' => '99', 'charset' => 'windows-1255', )

在移动设备中:

array()

我做错了吗?

0 个答案:

没有答案