#reginbald_code
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/1448689623214592141
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
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
hi there, just so I fully understand your question, where would you like to store the shipping / billing information for the customer?
by default, the Address Element will store address information on the Payment Intent https://docs.stripe.com/elements/address-element#automatic-behavior