#thai_guest-customer

1 messages ยท Page 1 of 1 (latest)

fiery burrowBOT
#

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

๐Ÿ“ 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.

median eagle
#

this is our code:

const params: Stripe.Checkout.SessionCreateParams = {
line_items: lineItems,
mode: 'payment',
payment_intent_data: {
setup_future_usage: 'off_session',
application_fee_amount: Math.round(techFee * 100) * 2,
},
payment_method_types: ['card'],
phone_number_collection: {
enabled: true,
},
automatic_tax: {
enabled: false,
},
custom_fields: [
{
key: 'team_selection',
type: 'dropdown',
label: {
custom: 'Free Agent or Team Captain',
type: 'custom'
},
dropdown: {
options: [
{
label: 'I have a partner and am signing up as a Team Captain',
value: 'team'
},
{
label: 'I need a partner and am signing up as a Free Agent',
value: 'individual'
}
]
}
}
],
billing_address_collection: 'required',
success_url: ${process.env.FRONTEND_URL}/tournaments/${event.slug}/checkout?session_id={CHECKOUT_SESSION_ID},
cancel_url: ${process.env.FRONTEND_URL}/tournaments/${event.slug}/register,
};

vestal current
#

๐Ÿ‘‹ you can set the customer_creation parameter to ensure a customer is created rather than a guest customer

median eagle
#

so set it to always?

vestal current
#

Yep!

median eagle
#

how do i convert existing ones to customer?

vestal current
#

It's not possible to convert a guest customer to a full customer. You could create a new customer object, passing the details from the guest object as parameters, however you will be unable to transfer payment method data from the guest customer to the full customer.

median eagle
#

oOo ok

#

got it

#

thanks

vestal current
#

Of course ๐Ÿ™‚

fiery burrowBOT