#K4M1s-customer portal
1 messages ยท Page 1 of 1 (latest)
๐ happy to help
๐ happy to help
you have a couple of options here
you can use the https://stripe.com/docs/api/invoices/object#invoice_object-hosted_invoice_url field on the invoice to send an email to the customer
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
you could also generate a link to the customer portal and send that
here's more about integrating with the customer portal
currently for other products I'm using payment sessions, is it possible to generate one for unpaid subscription upgrade?
the hosted invoice url is a bit similar to Checkout Sessions
you can use this card number https://stripe.com/docs/testing#declined-payments to setup the payment method as the invoice_settings.default_payment_method for a customer and create a subscription for this customer and try to test out the scenario
now i'm wondering. Maybe it is possible to generate checkout session which will update the subscription?
no it's not possible