I'm attempting a Paypal subscription flow in Node, bug all of the various SDKs seem to be deprecated now, and I'm struggling to find a current example of implementing a subscription button and then validating the subscription and updating the user's status in local db.
I think the expected flow in 2022 is to implement a standard button and use a webhook to listen out for the event, at which point you verify the payload, and update a local DB to reflect the new subscription status.
I guess this means that in the OnApprove clientside method of the button, we could run some sort of polling against the local DB to check that the subscription status has changed?