Pricing and Billing
Payments - Stripe Integration
5 min
stripe integration setup guide amberflo offers a built in integration with stripe to support automated payment processing when an invoice is generated in amberflo, the total amount is sent to stripe, which handles the payment collection amberflo continuously monitors the payment lifecycle and updates the invoice status in real time based on changes in stripe configuration steps to configure stripe integration in the amberflo ui, use the main navigation menu on the left to go to settings select payments choose whether to connect to stripe in test mode or production mode associating customers between amberflo and stripe you have two options for associating customers use the amberflo sdk or api to create a customer set the autocreatecustomerinstripe flag to true when calling the create customer api in the ui, you can also toggle the option to automatically create customers in stripe (see image below) if you already have customers in stripe, you can link them by updating the amberflo customer object set the stripeid trait on the amberflo customer to match the customer id from stripe the stripeid trait is used to associate the amberflo customer with its corresponding customer in stripe { 	"customername" "monsters, inc ", 	"enabled" true, 	"updatetime" 1648767962572, 	"traits" { 	 "stripeid" "cus lcep3lbelibfsm", "paymentprovidername" "stripe" 	}, 	"createtime" 1631836633987, 	"customeremail" "", 	"description" "", 	"id" "54a43bba 915d 4512 a0bd 9d9debe5555", 	"customerid" "54a43bba 915d 4512 a0bd 9d9debe5555" } if you choose to automatically create the stripe customer, you can either use the amberflo sdk or the api create a customer with autocreatecustomerinstripe set to true in the ui, you can toggle the option to create in stripe (image below) 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 for testing documentation on stripe, click here