Stripe

Setup guide

Amberflo provides an out-of-the-box integration with Stripe for payment processing.

The invoice amount is sent to Stripe which handles payment collection.
Amberflo monitors the lifecycle and updates the status of Invoices in Amberflo in real time as it changes in Stripe.

To configure the Stripe integration, use the main navigation menu on the left to select Settings, then choose Payments. Select whether you integrate with Stripe in test or production mode.

Customers can be created automatically in stripe (through amberflo APIs) or if you have already stripe customers, you can update the amberflo customer object with the customer if from stripe by setting the stripeId customer trait.
The amberflo customer object will have a trait called striped that is used to associate between the amberflo customer object and stripe's

{
    "customerName": "Monsters, Inc.",
    "enabled": true,
    "updateTime": 1648767962572,
    "traits": {
        "stripeId": "cus_LCEP3LBELibfSM"
    },
    "createTime": 1631836633987,
    "customerEmail": "",
    "description": "",
    "id": "54a43bba-915d-4512-a0bd-9d9debe5555",
    "customerId": "54a43bba-915d-4512-a0bd-9d9debe5555"
}

If you choose to atomically create the stripe customer, you can either use amberflo SDK or the API https://docs.amberflo.io/reference/post_customers with autoCreateCustomerInStripe set to true.
In the UI, you can toggle the option to create in stripe (below image)

If you already have the Customer in Stripe and you would like to set up the Amberflo Customer with the payment information. Copy the created Customer ID (cus_XXXXXX) from Stripe into the Amberflo Customer tab to update the payment information.

Set up the default payment method in Stripe. For testing, you can use dummy credit cards.

📘

Further Reading