# Stripe Customer Portal

Using this block, you can enable your Softr app users to access their personal portal on Stripe to manage their purchases/subscriptions and payment info. To start with, you need to integrate your Stripe account with your Softr app (find out more details on that [here](https://softr.gitbook.io/softr-documentation/integrations/stripe)). Next, you should configure your **Stripe Customer Portal** in your Stripe account. Let's see how that's done.

## Configuring Stripe Customer Portal

To access customer portal settings, you need to navigate to **Settings => Billing => Customer Portal** on your Stripe dashboard. Here you can specify what actions your customer should have access to (e.g. Cancel a subscription, Edit payment method, etc.). We won't go into details here, as you can learn more through Stripe [help docs](https://stripe.com/docs/billing/subscriptions/integrating-customer-portal). Just make sure to hit **Save** after making the changes.&#x20;

Now, let's see how you can provide your customers with access to the portal.

## Setting Up the Portal Block on Softr

<figure><img src="https://3426011356-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0NiyhsmXAcV5u1c6XK%2Fuploads%2FVARXQhpsmtwuJvpXVTfC%2Fcustomer-portal-b.png?alt=media&#x26;token=dbb9bcfd-946e-477a-9338-3038aef6c3ed" alt=""><figcaption><p>Stripe Customer Portal Block</p></figcaption></figure>

To provide your customer with access to the Customer Portal on Stripe you just need to add the corresponding block somewhere on your Softr app. In block settings, apart from titles and the background image, you need to set up the **Redirect URL**.&#x20;

{% hint style="info" %}
The Redirect URL is the page your users will be taken to after hitting **Return** on their **Customer Portal** page.
{% endhint %}

You'll see this in action a bit later when we show the whole process from the customer's perspective.

## How Customers Access the Portal

Finally, let's see what the portal looks like from the customer's viewpoint. We are going to log into our Softr app with a user account, purchase a subscription, and try to edit subscription details and access payment info using the Stripe Customer Portal. Let's proceed.

We've set up the checkout using the **Simple Checkout Form** (take a look at the [block docs ](https://softr.gitbook.io/softr-documentation/building-blocks/payment/simple-billing-block)to see how it should be configured).

{% hint style="info" %}
We've used the **Simple Checkout Form** in our example, but you can use any of the payment blocks integrated with Stripe (e.g. [Pricing block](https://softr.gitbook.io/softr-documentation/integrations/stripe#3.-add-checkout-details-to-your-application))
{% endhint %}

So, below you can see how the user purchases a Stripe subscription through the checkout form and then uses the portal block we just set up to access his portal on Stripe and make changes.

![Editing details on Stripe Customer Portal](https://3426011356-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0NiyhsmXAcV5u1c6XK%2Fuploads%2FlBriKwX3ABu4TcGc57Il%2FScreen%20Recording%202022-03-21%20at%2017.37.28.gif?alt=media\&token=28ec50cc-71e8-46ef-84c5-c386fe9e83c1)

Notice that, at the end, when the user clicks on **Return to Softr**, he's taken to the portal page, as we had set it that way (under **Redirect URL**) in portal block settings previously. Nevertheless, the **Redirect URL** can be set to any page in or even outside of your Softr app (just needs to start with **https\://**).
