#l3ash9i98
1 messages · Page 1 of 1 (latest)
Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
Can you share the customer id with me?
BUt its not associated to the previous payment nor the subcription
cus_PMZVa9jaM6Y2Zj
It does not look like you've attached a payment method to the customer.
Can you share the request id where you created this Payment Intent?
Here's how you can find a request ID: https://support.stripe.com/questions/finding-the-id-for-an-api-request
Taking a look
LEts be clear first, im usign confirmPayment with PAymentElement, once the payment is done i got redirected to a new page with paymentInetent on the url.
Im sending that paymentIntent to the backend to create the customer and subcription
Ah, that is because when you created it, you did not pass a customer id, https://stripe.com/docs/api/payment_intents/create#create_payment_intent-customer. You'd want to create the customer first. Also, I recommend this integration flow, https://stripe.com/docs/billing/subscriptions/build-subscriptions?ui=elements for Subscriptions.
I cant create the customer after that on the backend ?
You can. However, if looks like you're trying to reuse the payment details collected later. In this case, you'd need to pass the customer id on the PaymentIntent setup_future_usage. This PaymentIntent’s payment method will be attached to the Customer after the PaymentIntent has been confirmed and any required actions from the user are complete.
I dont quite understand,
Where im supossedto add the customer id or create it ?.
I Have 3 steps here.
First one a call to backend to create payment with the amount retrieveng the clientSecret.
After that i confirm the payment and i got redirected to a new page where i take the paymentIntent from the url.
Finally i send that paymentIntent to the backend to create the subcription
In which part i have to add the customer?