#arielapaula_api

1 messages ยท Page 1 of 1 (latest)

worthy sunBOT
#

๐Ÿ‘‹ Welcome to your new thread!

โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

๐Ÿ”— This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1238549969850335335

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

wintry warren
#

Hi ๐Ÿ‘‹

#

This appears to be transmitting raw details in your custom checkout form. We strongly recommend against that.

pliant isle
#

But is there a recommended way to use my custom inputs? I have a custom design for it

wintry warren
#

When you make the API call with await stripe.createPaymentMethod() you should get the Payment Method in the response. Can you share an ID?

pliant isle
#

sure, this is one example: pm_1PEwrsJn1cC6kOJBikpdxz0c

wintry warren
#

Thanks!

#

Okay so this is an unattached payment method. There ins't a place in the Stripe dashboard where you can see this but it was successfuly created

pliant isle
#

Thank you! How can I attach the payment method to a user email?

wintry warren
pliant isle
#

Thanks! Will consider updating this.
How can I submit the bank account payment with this legacy approach? For credit cards we are using:

const { error, paymentIntent } = await stripe.confirmCardPayment(clientSecret, {
payment_method: paymentInfoId ? paymentInfoId : (paymentInfo?.stripeId || paymentInfo?.id),
})

wintry warren
#

Is this on your client-side?

#

Review the navigation links in the left side nav

pliant isle
#

yes, it's on the client side.
So I should use stripe.confirmUsBankAccountPayment, right?

wintry warren
#

Correct

pliant isle
#

thank you!

wintry warren
#

Happy to help ๐Ÿ™‚