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!
... View more