#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/1448968476155973772
๐ 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.
- reginbald_code, 17 hours ago, 7 messages
I'd like save and update the shipping address on the customer object
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
I want the client code to be able to update the shipping address on the customer object using the customer session client secret
๐
There is no support for shipping address in the Customer Session:
https://docs.stripe.com/api/customer_sessions/create
I think you need to make the shipping update to your Customer Object from your integration after confirmation/collection from the AdressElement
So from the backend?
Is it possible to update it from the client code using a client secret?
Do you know if that will be possible in the future?
AFAIK no