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
¤cy_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ではなく投稿用です