#shahriyar_api

1 messages ¡ Page 1 of 1 (latest)

rustic whaleBOT
#

👋 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/1263449430040772672

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

raven bronze
sharp fulcrum
#

Here is the card. Now what if the card has 3D Secure enabled? I need some guides
Should I create the payment method inside client or server

raven bronze
#

To be clear you can't use custom form fields like that. You need to be using our PCI compliant Elements forms

sharp fulcrum
#
await stripe.paymentMethods.create({
                type: "card",
                card: {
                    number: input.card.card_number,
                    exp_month: Number(input.card.expiration_month),
                    exp_year: Number(input.card.expiration_year),
                    cvc: input.card.cvv,
                },
            })
#

Cant do this?

#

I saw this on stripe docs

#

I can use Card Element but with my theme that does not look good and customizing that is hard so I made this form

raven bronze
sharp fulcrum
#

OK if I use the stripe's provided CardElement, how can I attach the card to a existing customer. so his future invoices use the latest card

raven bronze
sharp fulcrum
#

The customer is already created and has already a payment method attached, I want to be able to add another payment method to him
without any payment intent creation

raven bronze
#

You can pass the existing cus_xxx ID to the customer parameter when creating the Setup Intent and it'll save/attach to the customer on confirmation

sharp fulcrum