#thai_guest-customer
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/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.
- thai-huynh_api, 21 hours ago, 8 messages
- thai-huynh_api, 2 days ago, 4 messages
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,
};
๐ you can set the customer_creation parameter to ensure a customer is created rather than a guest customer
so set it to always?
Yep!
how do i convert existing ones to customer?
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.
Of course ๐