Skip to content

Commit

Permalink
add configuration to customer portal
Browse files Browse the repository at this point in the history
  • Loading branch information
meofiscoding committed Nov 26, 2023
1 parent 74a0f4e commit f3fea28
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,15 @@ public async Task<IActionResult> CreatePortalSession([FromBody] string userEmail
{
Enabled = true,
},
CustomerUpdate = new Stripe.BillingPortal.ConfigurationFeaturesCustomerUpdateOptions
{
Enabled = true,
AllowedUpdates = new List<string> { "email" }
},
SubscriptionCancel = new Stripe.BillingPortal.ConfigurationFeaturesSubscriptionCancelOptions
{
Enabled = true,
}
},
};
var service = new Stripe.BillingPortal.ConfigurationService();
Expand Down

0 comments on commit f3fea28

Please sign in to comment.