grails アプリケーションの 1 つにペイパルを統合しようとしています。支払いが毎月ペイパルから自動的に転送される月額サブスクリプションを作成する必要があります。テストの目的で、サンドボックスにアカウントを作成し、定期支払い用のボタンを作成しました。ボタンを作成する際に、IPN の成功 URL とキャンセル URL についても言及しました。アプリケーションのテスト中に、ボタンをクリックするとユーザーがペイパルにリダイレクトされ、ログイン後に支払いも正常に行われることがわかりました。しかし、通知はまだ送信されていません。支払いが正常に行われると、アプリケーションに戻るかどうかをユーザーに尋ねるボタンが表示されます。ユーザーがこのボタンをクリックすると、アプリケーションにリダイレクトされます。それ以外の場合、ユーザーに通知は送信されません。また、定期支払いのキャンセルに関する通知を受け取ることもありません。誰かが以前にそのような状況に直面したことがある場合は、親切に解決策を教えてください。
1 に答える
Do I understand correctly that you're wondering about the use of CancelURL?
If somebody clicks the cancel link during checkout they will simply be returned to whatever URL you set for this value. The ReturnURL is where they are sent after completing the subscription setup.
That said, the subscription setup doesn't always guarantee a payment will be made right away. This could happen at a later time, although it usually does happen pretty much instantly.
If you want to get programmatic notifications of profile payments, or when an actual current profile is canceled, you'll need to use Instant Payment Notification, which will POST all of the transaction data to a script you have sitting on your server so that you can process the data accordingly.