Get subscription_id from payment
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi!
While integrating subscriptions i stuck on a question:
When recieving a PAYMENT.SALE.COMPLETED webhook i can't find the subscription id in the transmitted JSON data.
But i need the subscription id to assign the payment to the user.
Is there a way to get the subscription details by using "resource.parent_payment" ?
Or i'm completey on the wrong way?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Good day @aktiweb,
Thank you for posting to the PayPal community.
The "PAYMENT.SALE.COMPLETED" webhook is triggered whenever a payment is successfully made on a subscription. To make a payment on a subscription, you need to pass the subscription ID in the path parameters of the " Capture authorized payment on subscription" API call.
After making the API call, you will receive a response with a status code of 202. It is important to note that this response does not include any JSON data to indicate the status of the payment. If you would like to learn more about the meaning of a 202 status code, please refer to the following code URL: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/202.
If you are still facing issues, please create an MTS ticket via - https://www.paypal-support.com/s/?language=en_US with the detailed information and error details.
Sincerely,
Vaishnavi
PayPal MTS
If this post or any other was helpful, please enrich the community by giving kudos or accepting it as a solution.
Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
- EDD in PayPal Payments Standard
- Customers are telling me they can’t process payments in REST APIs
- How to create a Paypal in 3 option for a Business that sells courses in Dubai? in NVP/SOAP APIs
- Multivendor site-Seller payment set-up in PayPal Payments Standard
- Direct Debit/Credit Card Payment: is not listed under Accept Payments Settings (Advanced Options ) in REST APIs