Update billing details

The customer portal is a secure, Stripe-hosted page that lets your customers manage their subscriptions and billing details. Your customers can:

  • Upgrade, downgrade, or cancel a subscription
  • Update their payment methods
  • View their billing history

Please follow the next two steps to redirect users to the customer portal:

1.- Save your portal settings going to your Stripe dashboard test or live

2.- As simple as adding the following form, a logged-in customer will be redirected to the customer portal, (the user needs at least have one order)

{% if currentUser %}
    <form method="POST" action="/enupal-stripe/customer-portal">
        {{ csrfInput() }}
        <input type="hidden" name="returnUrl" value="{{ siteUrl('/account') }}">
        <button type="submit">Manage billing</button>
{% endif %}

Connect Index