Use PayPal Subscription API

developer101
Contributor
Contributor

I want to use PayPal Subscription API such that the subscriptions are approved on REST API call itself but the response fetched is 'Approval Pending'.

Is it possible to use the API to directly create an 'approved' subscription without the use of intermediate PayPal subscription experience i.e without the use of HATEOAS links ?

 

In short :- I want to use the refresh token and access token only to create an 'approved' subscription. I just call the subscription API with access token and it fetches APPROVED status.

Is this possible ?

Login to Me Too
1 REPLY 1

yogitamankani
Contributor
Contributor

I think that to create 'Approved' subscriptions, you have to use the PayPal Smart Payment Button to create the subscription workflow/interface for the user.

 

Check below.

https://developer.paypal.com/docs/subscriptions/integrate/#4-create-a-subscription

Login to Me Too

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.