#kirill_api

1 messages ยท Page 1 of 1 (latest)

long 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/1338501395346886716

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

drowsy fiber
#

Can you share the PaymentIntent id you are using ?

drowsy fiber
#

How are you integrating the Stripe Element ?

#

What guide are you following ?

brisk prawn
#

I'm using the react lib. Not sure about the exact guide, but an official one ๐Ÿ™‚ so I'm creating an intent like "stripe.paymentIntents.create(intent)", where intent is an object like this

#

{
amount: Math.round(fullPrice * 100), // we count in cents
currency: 'eur',
description: Webshop order number: ${cart.order_number},
receipt_email: Array.isArray(billingValues?.email)
? billingValues?.email[0]
: billingValues?.email,
shipping: {
name:
(separateShippingAddress
? shippingValues?.name
: billingValues?.name) || '',
phone:
(separateShippingAddress
? shippingValues?.phone
: billingValues?.phone) || '',
address: {
line1:
(separateShippingAddress
? shippingValues?.streetAddress
: billingValues?.streetAddress) || '',
line2:
(separateShippingAddress
? shippingValues?.addressAdditionalLine
: billingValues?.addressAdditionalLine) || '',
city:
(separateShippingAddress
? shippingValues?.city
: billingValues?.city) || '',
postal_code:
(separateShippingAddress
? shippingValues?.postCode
: billingValues?.postCode) || '',
country:
(separateShippingAddress
? shippingValues?.country.country
: billingValues?.country.country) || '',
},
},
}

drowsy fiber
#

so I'm creating an intent like "stripe.paymentIntents.create(intent)"
Great, can you share the PaymentIntent id ?