#nina_api

1 messages ยท Page 1 of 1 (latest)

coral meadowBOT
#

๐Ÿ‘‹ 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.

north arrow
#

Hi! Looking into this.

onyx wyvern
#

Nope, I didn't pass the shipping address to confirmPayment Element

north arrow
#

Your confirmation request shows a shipping address.

onyx wyvern
#

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);
north arrow
#

Can you share the code for creating your elements?

onyx wyvern
#

๐Ÿ‘†

north arrow
#

Give me a moment to try to replicate this.