#l3ash9i98

1 messages · Page 1 of 1 (latest)

thorn yachtBOT
#

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.

tardy berry
#

I can see that it creates the customer on the stripe dashboard

valid harbor
#

Can you share the customer id with me?

tardy berry
#

BUt its not associated to the previous payment nor the subcription

#

cus_PMZVa9jaM6Y2Zj

valid harbor
#

It does not look like you've attached a payment method to the customer.

tardy berry
#

Im using the paymentIntent

#

can i retrieve that usign paymentIntent ?

valid harbor
#

Can you share the request id where you created this Payment Intent?

tardy berry
#

on the dashboard ?

valid harbor
tardy berry
#

pi_3OXqM1FOVnzp2HvG1MXEScaL

#

req_bNhpf2HLcmXhUA

valid harbor
#

Taking a look

tardy berry
#

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

valid harbor
tardy berry
#

I cant create the customer after that on the backend ?

valid harbor
#

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.

thorn yachtBOT
tardy berry
#

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?