#nacho-subscription-help
1 messages · Page 1 of 1 (latest)
Can I set metadata on the payment?
Like I want to know the user that the payment just occurred for. I understand stripe creates customer but how can I user that on my end
Let's take a step back. There's 20 ways to integrate Stripe and I don't really follow what's confusing you here. First how are you integrating? Like which exact product are you using? Checkout? Something else?
Checkout
Okay so when you use Checkout you are supposed to rely on checkout.session.completed for fulfillment on the first payment: https://stripe.com/docs/payments/checkout/fulfill-orders
Ok so when the payment reoccurs after a month will it still be the same checkout.session.completed
I wanted that before my issue is tracking the user on my end when the payment reoccurs
When a payment reoccurs you get the invoice.paid Event for example and that has the Subscription id sub_123 that you would have stored in your database with all the information you need to do fulfillment
Ok so the first time I make the payment and the subscription generates I store the Id so when it reoccurs I check invoice.paid and if it’s the same Id with the one I store then I can know with user it’s for ?
yes
Ok will test this out, thank you