I am trying to set up a webhook so that I can fulfill the payment on my server. The problem is I need to identify the user in the database. Usually with webhooks there is the option to send custom metadata, so I can send the user ID to PayPal and receive it with the webhook. This is very easy with Stripe, I am surprised how difficult everything is with PayPal (I have encountered so many problems already trying to set this up). I am using the paypal.Buttons.render() method to generate the Smart Buttons. Is there an option to set metadata with this? I can't find it anywhere in the documentation and there are some old posts about using a hidden <input /> field, but I think this is outdated with the new payment buttons.
... View more