#ubi

1 messages · Page 1 of 1 (latest)

rapid deltaBOT
arctic pollen
mossy igloo
#

hah, thank you so much, my apologies for missing that, honestly getting overwelmed by so much information, and tabs, and sections ... 😦

mossy igloo
#

I am confused by the documentation,

// Create the PaymentMethod using the details collected by the Payment Element
const {error, paymentMethod} = await stripe.createPaymentMethod({
elements,
params: {
billing_details: {
name: 'Jenny Rosen',
}
}
});

How do you specify the user associated with the payment method?

arctic pollen
#

are you referring to the Customer object?

mossy igloo
#

I guess so, yeah

arctic pollen
mossy igloo
#

Just to confirm, I dont need to worry about Customer when using createPaymentMethod?

arctic pollen
#

no, you don't need to worry about the Customer object when using createPaymentMethod

mossy igloo
#

So if step 3, create-confirm-intent fail I will be retrying the other steps multiple, just wondering if I should be concerned about it in your side or not

arctic pollen
#

Nothing comes to mind for me, is there something that you're concerned about specifically?

mossy igloo
#

no, no really, just the side-effect in your side to keep creating payment methods I am guessing

Not sure if that is ephemeral until it is part of a payment intent or attached to a customer 🤷‍♂️

#

Last thing, our users could pay for multiple courses, so, if I pass a payment intent with a Customer object, would that create different customers even when I pass the same shape?

#

Should I create a single Customer first, and use the ID of it instead?