# Connect Stripe to collect payments

With our Stripe integration, you can easily collect payments for any invoice issued on Hubflo.&#x20;

Once you set up the integration, every time **you issue an invoice on Hubflo (with credit card or ACH as a payment method), a unique checkout link will be generated and appended to your invoice.**

**Client will see a “Pay” button on the invoice page**

<figure><img src="https://3144867014-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9ew7cBYQ1xKkg1CvUVDc%2Fuploads%2FKhCuIu9odi8tUHQeAlbz%2FCleanShot%202024-01-28%20at%2015.08.12%402x.png?alt=media&#x26;token=3a37a3a3-cd16-4b2c-9a66-840851c29ef1" alt="" width="210"><figcaption></figcaption></figure>



{% hint style="info" %}
If you want to auto charge clients, simply enable the option when you're creating the subscription or the invoice (at the "payment" step).\
\
**Once enabled:**  \
If your client doesn’t have a saved payment method, they’ll need to pay the invoice (or the first invoice of your subscription) and **their payment method will be stored for future payments.**
{% endhint %}

## Can I auto charge clients?&#x20;

If you want to auto charge clients, simply enable the option when you're creating the subscription or the invoice (at the "payment" step).\
\
**Once enabled:**  \
If your client doesn’t have a saved payment method, they’ll need to pay the invoice (or the first invoice of your subscription) and **their payment method will be stored for future payments.**

## Which currencies are supported?&#x20;

At the moment, we don't handle multi-currency for the same Hubflo account which means invoices and payments will all be set in your default currency.

## How to enable the Stripe integration:

(First, you need to create a [Stripe](https://hubflo.mxpalm.com/658eaf8e338435c1c576684c/l/wVkAegXbyv8N7Cke8?rn=!!!RECIPIENT_NAME_ENC!!!\&re=!!!EMAIL_ADDR_ENC!!!\&sc=!!!IS_SENDER_COPY!!!) account if you haven't already)

### **1- Set up on your Stripe account**

1. In your Stripe [Dashboard](https://hubflo.mxpalm.com/658eaf8e338435c1c576684c/l/pKLAUuFA0nxmH77FT?rn=!!!RECIPIENT_NAME_ENC!!!\&re=!!!EMAIL_ADDR_ENC!!!\&sc=!!!IS_SENDER_COPY!!!), click on _<mark style="background-color:yellow;">“Developers”</mark>_ then select the _<mark style="background-color:yellow;">“Webhooks”</mark>_ tab
2. Click on _<mark style="background-color:yellow;">“add an endpoint”</mark>_
3. Paste this URL in the field “URL”: [**`https://app.hubflo.com/stripe/checkout_completed`**](https://app.hubflo.com/stripe/checkout_completed)
4. Then click on _<mark style="background-color:yellow;">"Select events"</mark>_ below and <mark style="background-color:yellow;">select:</mark> <mark style="background-color:yellow;"></mark><mark style="background-color:yellow;">**`checkout.session.completed`**</mark> <mark style="background-color:yellow;"></mark><mark style="background-color:yellow;">> validate</mark>
5. Now click on the _<mark style="background-color:yellow;">tab “</mark>_[_<mark style="background-color:yellow;">API Key</mark>_](https://hubflo.mxpalm.com/658eaf8e338435c1c576684c/l/fd0KoN6tQN1YbNuKQ?rn=!!!RECIPIENT_NAME_ENC!!!\&re=!!!EMAIL_ADDR_ENC!!!\&sc=!!!IS_SENDER_COPY!!!)_<mark style="background-color:yellow;">”</mark>_
6. Click on _<mark style="background-color:yellow;">“create a secret key”</mark>_ and then click on the Token to copy it

### 2- Activate the integration on Hubflo

1. Go back to Hubflo: **Go to settings (top right) > Integrations > Stripe > Click on "activate"**
2. Paste your **Stripe API Token** and submit

<figure><img src="https://3144867014-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9ew7cBYQ1xKkg1CvUVDc%2Fuploads%2FhWIasiA6UmXAyKXhN4aa%2FCleanShot%202024-01-11%20at%2018.41.15%402x.png?alt=media&#x26;token=896b50ac-e291-41dc-9a1a-d44c7d1789ec" alt="" width="375"><figcaption></figcaption></figure>



**You’re good to go!**
