我知道以前问过这种类型的问题,但我的问题略有不同。
我使用的是标准版本PayPal我想通过多个带有折扣的项目,下面是我的代码,对于折扣,我使用了负值。
https://www.sandbox.paypal.com/cgi-bin/webscr?
business=abc-facilitator%40gmail.com
item_name_0=Vancouver
amount_0=1799.00
item_name_1=Ottawa
amount_1=1799.00
item_name_2=Other
amount_2=1199.00
item_name_3=ppc+Verify+Facility
amount_3=599.00
item_name_4=Discount
amount_4=-2158.40
cmd=_cart
upload=1
no_note=1
lc=UK
currency_code=USD
bn=PP-BuyNowBF%3Abtn_buynow_LG.gif%3ANonHostedGuest
shipping=0.00
submit=Confirm+
return=http//:205.134.251.196/~examin8/CI/ppc/cart/paypal_procces/45
cancel_return=http//:205.134.251.196/~examin8/CI/ppc/cart/paypal_cancle/45
notify_url=http//:205.134.251.196/~examin8/CI/ppc/cart/paypal_procces/45
错误 - 用于进入PayPal系统的链接包含格式不正确的项目金额。
正确的代码应如下所示:
item_name_1=Vancouver
amount_1=1799.00
item_name_2=Ottawa
amount_2=1799.00
item_name_3=Other
amount_3=1199.00
item_name_4=ppc+Verify+Facility
amount_4=599.00
discount_amount_cart=2158.40
cmd=_cart
upload=1
请参阅 https://developer.paypal.com/docs/classic/paypal-payments-standard/integration-guide/cart_upload/