#nina_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/1440145808530997378
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- nina_error, 6 days ago, 33 messages
Hi! Looking into this.
You have already set the shipping address during the payment intent creation: https://dashboard.stripe.com/acct_1RoqQrElKfp1TfOj/test/logs/req_V3IVGtsTJusG4t
Are you also collecting the shipping address on the front end via Address Element?
Nope, I didn't pass the shipping address to confirmPayment Element
Your confirmation request shows a shipping address.
const returnUrl = checkoutHashKey
? ${window.location.origin}/checkout/stripe/return?checkoutHashKey=${checkoutHashKey}
: ${window.location.origin}/checkout/stripe/return;
const confirmPaymentParams = {
elements,
clientSecret,
confirmParams: {
return_url: returnUrl,
payment_method_options: {
card: { setup_future_usage: 'off_session' },
},
payment_method_data: {
billing_details: {
name: ${state.checkoutInfo.shippingFirstName} ${state.checkoutInfo.shippingLastName},
email: state.checkoutInfo.email,
phone: state.checkoutInfo.phone,
},
},
},
redirect: 'if_required',
};
const result = await stripe.confirmPayment(confirmPaymentParams);
I don't pass the shipping param here
const options = {
mode: 'payment' as const,
amount: props.amount,
currency: props.currency.toLowerCase(),
fonts: [getStripeElementsFonts()],
appearance: generateStripeAppearance(),
// exclude: ['card'],
};
elements.value = stripeInstance.elements(options);
const expressCheckoutOptions: StripeExpressCheckoutElementOptions = {
buttonHeight: 42,
layout: { overflow: 'auto' },
paymentMethods: {
applePay: 'always',
},
// Specify what information to collect upfront
emailRequired: true,
phoneNumberRequired: true,
shippingAddressRequired: true,
billingAddressRequired: true,
};
expressCheckoutElement.value = elements.value.create('expressCheckout', expressCheckoutOptions);
Can you share the code for creating your elements?
๐
Give me a moment to try to replicate this.