Hello,
I have a problem, like everyone else here lol.
I’ve encapsulated my web application using the webtonative plugin.
I’ve set up a payment button that natively opens the appstore payment popup.
Upon payment, I receive the payment data via a web platform for processing Apple “Revenue Cat” in-app payments.
I immediately retrieve the payment data from Revenue Cat via a WEBHOOK I’ve set up on my BACKEND WORKFLOW.
I made a DETECT DTATA and just after create a new thing where I place the data in front of each field.
The problem is that I can’t attribute this to the current user from the workflow backend, so I have all the payment data but I can’t find out who paid because I can’t add the user id or the email address of the user who made the payment to my data base.
Could you please help me, I haven’t been able to for several days. 
create payment in bubble database, link it to the user
send the payment id to apple when initiating the payment
ensure the payment id is sent back in the webhook
then it’s a simple match up
Thanks for your answer, but how do you send the user id to Apple? Because I use the webtonative plugin that handles all this, and at no point do I see what the plugin sends to Apple.
“send the payment id to apple when initiating the payment” You mean send via an API call? With API Connector? Please tell me more.
I’m not familiar with the specific plugin you mentioned but normally for a payment processor you would send the relevant order id so you could match it back up on your end from the webhook.
The other way it is usually done is to create a payment intent in the processor (stripe do it this way) and then store the intent id in the database, then when the webhook is received you look up the intent id to match it back to your record.
Normally payment processors do the process in a few steps and you’ll have to log ids from each step for later steps to reference.