We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for https://stripe.com/docs/api/self_service_portal.
Similar to https://stripe.com/docs/billing/subscriptions/integrating-self-serve-portal#redirect
The text was updated successfully, but these errors were encountered:
I have implemented this directly in my application in a very minimal fashion, looks similar to this:
#[derive(Serialize)] struct BillingPortalParams { pub customer: String, pub return_url: String, } #[derive(Deserialize)] struct BillingPortalResponse { pub url: String, } let resp: BillingPortalResponse = stripe_client .post_form( "/billing_portal/sessions", &BillingPortalParams { customer: ..., return_url: ..., }, ) .await?; Ok(HttpResponse::Found() .header(LOCATION, resp.url) .finish() .into_body())
Sorry, something went wrong.
Thank you for opening the issue and posting your solution. I am also looking to offer my customers to use the self service portal.
No branches or pull requests
Add support for https://stripe.com/docs/api/self_service_portal.
Similar to https://stripe.com/docs/billing/subscriptions/integrating-self-serve-portal#redirect
The text was updated successfully, but these errors were encountered: