【问题标题】:Paypal - The link you have used to enter the PayPal system contains an incorrectly formatted item amountPaypal - 您用于进入 PayPal 系统的链接包含格式不正确的项目金额
【发布时间】:2016-07-14 10:25:37
【问题描述】:

我知道以前有人问过这类问题,但我的问题略有不同。

我使用的是贝宝标准版本,我想通过折扣传递多个项目,下面是我的代码,对于折扣我使用了负值。

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 系统的链接包含一个 商品数量格式不正确。

【问题讨论】:

  • 您的问题与其他问题有何不同?
  • 因为它的所有参数都是正确的,正如我在其他帖子中看到的用户正在做货币代码错误,在我的代码中做的金额格式错误,我只是想添加折扣。如果我删除折扣然后它会正常工作。
  • 从您的代码中删除 'submit=Confirm+',然后在 paypal 中发送代码。因为在 paypal 参数中没有任何“提交”参数。

标签: php paypal paypal-sandbox


【解决方案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/

【讨论】:

    猜你喜欢
    • 2016-04-08
    • 1970-01-01
    • 1970-01-01
    • 2012-08-23
    • 2012-09-08
    • 2016-03-09
    • 1970-01-01
    • 2010-10-04
    • 2012-11-29
    相关资源
    最近更新 更多