#therealbenji_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/1296883580412100658
📝 Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi 👋
how are you creating your checkout sessions?
@unreal steppe You there?
Hi yes
Can you answer the question above?
Oh I'm sorry, I missed that
This is my config for creating a checkout session:
private createOneTimeCheckoutSession(args: {
stripeCustomerId?: string;
email?: string;
stripePriceId: string;
subscriptionOrder: SubscriptionOrder;
}): Stripe.Checkout.SessionCreateParams {
return {
line_items: [
{
price: args.stripePriceId,
quantity: 1,
},
],
saved_payment_method_options: {
allow_redisplay_filters: ['always', 'limited'],
},
billing_address_collection: 'required',
customer: args.stripeCustomerId,
ui_mode: 'embedded',
mode: 'payment',
invoice_creation: {
enabled: true,
invoice_data: {
metadata: {
subscriptionOrderId: args.subscriptionOrder.id,
},
},
},
metadata: {
subscriptionOrderId: args.subscriptionOrder.id,
},
redirect_on_completion: 'never',
};
}
Can you provide the ID of a Payment Method you expected to show up in Checkout but doesn't?
This is expected behavior, that Payment Method doesn't have the required attributes. From our docs:
The Checkout page requires a valid billing address, billing name, and billing email to prefill the customer’s card details.
There's no billing address, billing name, or billing email on that Payment Method.