0

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

設計上の理由から Post データを使用できません。

渡して単体で持っていれば&amount=1&item_name=5 Store Items問題ないのですが、できればバラバラに分解したいです。

これは実行可能ですか?次の質問が表示されます: Paypal で複数の商品を (一度に) 支払う

ただし、URLではなく投稿用です

4

1 に答える 1

2

カートのアップロード方法をお試しください。詳細については、このページを参照してください。

基本的には次のようになります。

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
于 2012-05-24T19:02:28.533 に答える