#Yevhenii

1 messages · Page 1 of 1 (latest)

hot nexusBOT
#

Hello! We'll be with you shortly. 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.

rustic plover
fickle sedge
#

I have seen it, but I can't create this link (( I have code example to create almost what I need: // Add a new payment method to customer
params := &stripe.CheckoutSessionParams{
PaymentMethodTypes: stripe.StringSlice([]string{
"card",
}),
Customer: stripe.String("cus_Ov7ZkDhAz9pxmM"),
SetupIntentData: &stripe.CheckoutSessionSetupIntentDataParams{
Metadata: map[string]string {
"customer_id": "cus_Ov7ZkDhAz9pxmM",
"subscription_id": "sub_1O7HXnHB5y0TdG8mlyJW5Vtu",
},
},
Mode: stripe.String(string(stripe.CheckoutSessionModeSetup)),
SuccessURL: stripe.String("https://example.com/success?session_id={CHECKOUT_SESSION_ID}"),
CancelURL: stripe.String("https://example.com/cancel"),
}

#

but it returns the object session to add a new payment method. How can I edit this code to take the link to update the existing payment method in the subscription? I really need help, if you could provide an example it would be great!

rustic plover
#

You'd creating a checkout session

#

I don't think you were looking at the right docs

#

please check the link I shared above

fickle sedge
#

Last question to be sure. Look at the screenshot please, there you can see the button "Share payment update link". I need to call or create the same in my GoLang code.