#kirill_api
1 messages ยท Page 1 of 1 (latest)
๐ 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.
Can you share the PaymentIntent id you are using ?
hi! not sure where do I find it. got this url in the network: https://api.stripe.com/v1/elements/sessions?deferred_intent[mode]=payment&deferred_intent[amount]=6262&deferred_intent[currency]=eur¤cy=eur&key=pk_live_***u4voYA&type=deferred_intent&locale=fi&referrer_host=www.cronvall.fi&stripe_js_id=489fee57-6e88-4e91-ac20-75071c6c57c4
with just those 2 methods in the response
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) || '',
},
},
}
so I'm creating an intent like "stripe.paymentIntents.create(intent)"
Great, can you share the PaymentIntent id ?
You should follow this guide between:
https://docs.stripe.com/payments/accept-a-payment?platform=web&ui=elements&client=react