我已经用这个代码创建了paypal按钮
<form action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post">
<!-- Order id. -->
<input type="hidden" name="invoice" value="'+paypalData.orderId+'" />
<!-- Specify a PayPal Shopping Cart Add to Cart button. -->
<input type="hidden" name="cmd" value="_cart">
<input type="hidden" name="upload" value="1">
<!-- Identify your business so that you can collect the payments. -->
<input type="hidden" name="business" value="'+paypalData.businessId+'">
<!-- Specify currency. -->
<input type="hidden" name="currency_code" value="'+paypalData.currency+'">
<!-- The URL to which PayPal posts information about the payment, in the form of Instant Payment -->
<input type="hidden" name="notify_url" value="notify">
<!-- Return URL when cancel payment -->
<input type="hidden" name="cancel_return" value="cancel">
<!-- Return URL when payment is done -->
<input type="hidden" name="return" value="return">
<input type="hidden" name="amount_'+index+'" value="'+val["price_per_unit"]+'">
<input type="hidden" name="quantity_'+index+'" value="'+val["count"]+'">
<input type="hidden" name="item_name_'+index+'" value="'+val["name"]+'">
<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_buynowCC_LG.gif" border="0" name="submit" alt="'+paypalData.submitAlt+'">
<img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>但我需要为jQuery手机修改它。我知道我必须使用这个命令:
url https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_express-checkout-mobile中的cmd=_express-checkout-mobile
但是我不知道如何使用它,也不知道把它放在哪里。
整个应用程序由phonegap转换。
非常感谢您的宝贵时间和任何建议。
发布于 2014-08-07 19:49:21
您当前的集成正在使用PayPal Standard。Express Checkout是API products的一部分。您需要使用API重新生成结帐以利用Express Checkout。
https://stackoverflow.com/questions/25180903
复制相似问题