How to determine the subscription_id from the PAYMENT.SALE.COMPLETED webhook?
kenansd
Contributor
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Posted on
Sep-15-2021
07:50 AM
We are using the BILLING.SUBSCRIPTION.PAYMENT.FAILED webhook and this provides the subscription id which we can use to associate it to a user in our system. However the PAYMENT.SALE.COMPLETED webhook fires on payment success and does not provide the subscription id and instead provides a billing_agreement_id. Is there an API to link a billing_agreement_id to a subscription_id or a customer_id? The https://developer.paypal.com/docs/api/payments.billing-agreements/v1/ note that they are deprecated and it is unclear that it links to a subscription id from that API. How can we link a PAYMENT.SALE.COMPLETED webhook to a user in our system?
Labels:
- Labels:
-
Subscriptions
-
Webhooks REST APIs
1 REPLY 1
kenansd
Contributor
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sep-27-2021
06:46 AM
Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
Related Content
- The current address of the company in REST APIs
- Get subscription_id from payment in REST APIs
- IPN SHOWS NO HTTP RESPONSE - LISTENER WORKS WITH LOCAL FORM POST in Sandbox Environment
- Getting subscription transactions mixed in with other subscription transactions in Sandbox Environment
- Why am I not seeing HTTP responses for IPN? in Sandbox Environment