0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

PayPalウェブペイメントの「rm」変数の使用方法

Last updated at Posted at 2016-07-05

ボタンのコードに設定した復帰URLを送信する際、「rm」(復帰メソッド)変数の2つの値により、PayPalが使用するPOST/GETアクションを切り替えます。

  1. rmの値:
  • rm = 1の場合はGET
  • rm = 2の場合はPOST
  1. 個人設定でアカウントの即時支払い通知(IPN)が有効になっているかどうかで、アクションは以下のように異なります。
  • 個人設定でIPNが有効になっている場合
    • 初期設定の復帰メソッド(rmの指定なし)はPOSTです。
    • 個人設定でIPNが有効で、スクリプトのURLが設定されている場合、return_urlを呼び出す初期設定のアクションはPOSTです。つまり、return_urlがスクリプトの場合、初期設定がrm = 2なので、これを設定する必要はありません。
  • 個人設定でIPNが無効になっている場合
    • 初期設定の復帰メソッド(rmの指定なし)はGETです。
    • 個人設定でIPNが無効になっている場合、return_urlを呼び出す初期設定のアクションはGETです。つまり、return_urlがスクリプトの場合、IPN変数をそのURLにPOSTするには、rm = 2を設定する必要があります。

注:

PayPalではテクニカルサポートの部署がありますので、何かPayPal実装関連の質問や技術的な質問がありましたら、下記URLで記事を検索してみてください。
https://jp.paypal-techsupport.com/
上記URLの一番下の「お問い合わせ」リンクをクリックしてまたは下記URLをアクセスして質問を送信してください。
https://jp.paypal-techsupport.com/app/ask

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?