【问题标题】:Paypal multiple items in URLURL 中的 Paypal 多个项目
【发布时间】:2012-05-30 02:56:33
【问题描述】:

我有一个Redirect 可以将买家带到 Paypal 购物车。将它们转发到的 URL 是(格式化为便于阅读):

https://www.paypal.com/cgi-bin/webscr?cmd=_xclick
&business=email@domain.com
&pal=BGUR9WCWZAL7G
&button_subtype=services
&no_note=1
&no_shipping=1
&rm=1
&return=http://127.0.0.1/store/thank-you
&cancel_return=http://127.0.0.1/store/payment-cancelled
&shipping=0.00
&custom=LoggedInUser|45
&currency_code=EUR
&item_name_1=Store 9 Item
&amount_1=12.00
&item_name_2=Something else
&amount_2=24.00

出于设计原因,我不能使用发布数据。

如果我通过传递 &amount=1&item_name=5 Store Items 将其作为单个项目,它可以正常工作,但如果可能,我需要将其分解为单个项目。

这是可行的吗?我看到这个问题: Paying for multiple items (at once) via paypal

但它是用于发布,而不是网址

【问题讨论】:

  • 这是重定向是什么意思?喜欢立即购买类型的按钮?
  • @David,是的,它是一个重定向到的 URL,要求用户购买东西,很像“立即购买”按钮
  • 我真的不认为这是可能的,它看起来根本不像是一个记录的方法。它采用item_name 而不是item_name_1 的事实似乎表明它不接受多个项目。为什么不能使用 POST 数据?

标签: redirect paypal


【解决方案1】:

您可能想尝试购物车上传方法。请参阅this page 了解更多信息。

它基本上会变成这样:

https://www.paypal.com/cgi-bin/webscr?cmd=_cart
&business=email@domain.com
&pal=BGUR9WCWZAL7G
&button_subtype=services
&upload=1
&no_note=1
&rm=1
&return=http://127.0.0.1/store/thank-you
&cancel_return=http://127.0.0.1/store/payment-cancelled
&currency_code=EUR
&item_name_1=Store 9 Item
&amount_1=12.00
&quantity_1=1
&shipping_1=0.00
&item_name_2=Something else
&amount_2=24.00
&quantity_2=1
&shipping_2=0.00

【讨论】:

    猜你喜欢
    • 2011-04-30
    • 2013-08-06
    • 2015-08-01
    • 1970-01-01
    • 2015-01-28
    • 2014-02-28
    • 2015-10-24
    • 2013-05-29
    • 2013-04-02
    相关资源
    最近更新 更多