我之前知道这类问题,但我的问题略有不同。
我使用的是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系统的链接包含 项目金额格式不正确。
答案 0 :(得分:1)
正确的代码应如下所示:
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/