Unable to tell if customer subscription is cancelled
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am integrating PayPal into my website. So far I have:
1. Got an Access Token via the back end using the clientId and secret
2. Ask PayPal for a list of subscriptions via Javascript: https://api-m.paypal.com/v1/billing/subscriptions/" + subscriptionId + "/transactions?start_time=2018-01-01T07:50:20.940Z&end_time=" + date.toISOString()
This works fine!
Now, I want my user to cancel a subscription via my website. In order to do this, I need to call the PayPal API to see what subscriptions exist for a given user (as shown above in point 2).
It appears that, within the response I get a Status of either COMPLETED, INACTIVE or ACTIVE. What I don't see is CANCELLED.
As such, it appears that after a subscription is cancelled and before a refund is issued, the return status appears to remain as COMPLETED.
So my question is, how do I find out if a subscription has been cancelled or not?
I am following docs: https://developer.paypal.com/docs/api/subscriptions/v1/ (also on this page, first paragraph has a link to Subscriptions Overview, which is a 404(
- Labels:
-
Payments REST APIs
-
Subscriptions
Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
- can we assign a unique detail to every subscription creation? in NVP/SOAP APIs
- Mandatory Account Creation Hindering Customer Experience in REST APIs
- webhook not send update notification in REST APIs
- paypal recurring payments and ipn management in REST APIs
- ecommerce renewals fail intermittently with the message [ORDERTIME] => 1970-01-01T00:00:00Z in PayPal Payments Standard