Is there a Paypal Subscriptions REST API example anywhere for PHP?

barnyardffio
New Community Member

I am trying without any success to implement subscription payments on my website in PHP. My goal is to have a way that users can come to my website, purchase a $20.95/month subscription service to my software, and when they do that, I receive a webhook to my server, that can consume information about their purchase such as a paypal_customer_id, last 4 digits of card, first/last name, what subscription they bought, etc.

 

I also want a webhook to be fired when a user's payment fails, or if they cancel their subscription, if there's a dispute etc etc.

 

I can only find examples of webhooks for the V1 of the payments SDK on Github, and I cannot find an example of the V2 REST API in PHP for setting up monthly subscriptions and a webhook. I am really struggling to find the required information in the docs, since there are basically no code examples

 

Does anyone have a link, or maybe some source code I can take a look at?

 

Thanks!

Login to Me Too
1 REPLY 1

nuke69
Contributor
Contributor

Looking for same. Did you find anything you are willing to share?

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.