私は49 $で、次のようなペイパル計画を作った:PayPalの請求契約はすぐに支払われませんか?
{
'id': 'P-PAYPAL-ID',
'name': "My Plan",
'description': 'My description of the plan',
'type': 'INFINITE',
'merchant_preferences': {
'auto_bill_amount': 'YES',
"initial_fail_amount_action": "CONTINUE",
"max_fail_attempts": "3",
"return_url": "https://example.com/paypal/response",
"cancel_url": "https://example.com/paypal/response"
},
'payment_definitions': [{
'name': 'Monthly payment',
'type': 'REGULAR',
'frequency': 'MONTH',
'frequency_interval': 1,
'cycles': 0,
'amount': {
'value': '49',
'currency': 'USD'
}
}]
}
私は計画を作成したとdocumentation here次、それを可能にしました。
は、それから私は、手順に従ってBilling Agreementを作成:
- 私が得たURLから合意を実行する契約
- を受け入れるようにペイパルのページにユーザーをリダイレクト課金契約
- を作成します。 1.
すべてがうまくいきます。私のサンドボックスユーザーアカウントでは、[定期支払い]の詳細が[有効]とマークされています。
自分のサーバーをwebhooksに購読しました。
私の問題は次のとおりです:すぐにお支払いが行われませんか?私は1時間待っていて、何も支払われていない!
「実行された契約を実行する」ことを忘れた要求はありますか?
この質問の回答を参照してください。 http://stackoverflow.com/questions/25858816/paypal-billing-agreements-rest-api-how-to-start-immediately –