#reginbald_code

1 messages ¡ Page 1 of 1 (latest)

loud sandBOT
#

👋 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/1448689623214592141

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

unkempt scroll
#

s.client.V1CustomerSessions.Create(ctx, &stripe.CustomerSessionCreateParams{
Components: &stripe.CustomerSessionCreateComponentsParams{
PaymentElement: &stripe.CustomerSessionCreateComponentsPaymentElementParams{
Enabled: stripe.Bool(true),
Features: &stripe.CustomerSessionCreateComponentsPaymentElementFeaturesParams{
PaymentMethodRedisplay: stripe.String("enabled"), // shows saved payment methods
PaymentMethodRemove: stripe.String("enabled"), // allow removing a payment method
PaymentMethodSave: stripe.String("enabled"), // allow saving a new payment method
PaymentMethodSaveUsage: stripe.String("off_session"), // customer may or may not be present in your checkout flow.
PaymentMethodAllowRedisplayFilters: []*string{ // All saved payment methods are shown
stripe.String("always"), stripe.String("limited"), stripe.String("unspecified")},
},
},
},
Customer: stripe.String(id),
})

#

this is how I'm creating the customer session in the Backend

lunar quartz
#

hi there, just so I fully understand your question, where would you like to store the shipping / billing information for the customer?