Stripe
Stripe helps in integrating payment into your FlutterFlow app. Using this payment service you can easily sell products directly inside your application and manage transactions easily.
While using Stripe as the payment provider, users can buy products using Credit Card, Apple Pay, or Google Pay.

Stripe demo
Before starting to set up payments, make sure you have:
FlutterFlow uses Firebase Cloud Functions to process a transaction using the Stripe payment provider.
Integrating the Stripe Payments in your app comprises the following steps:
Setting up the Stripe payment includes acquiring the keys from your Stripe account and adding them to your Stripe integration inside the FlutterFlow.
You should always try out payments in test mode before releasing them to your production application. Hence the below instruction guides you on getting the test keys.
Follow the steps below to set up payment using Stripe:
- From the dashboard page, click Developers.
- Enable Test Mode (top right side of your screen), if you want to try out the payments inside your app.
- Select API keys from the left menu.
- Go to the FlutterFlow project, and navigate to Settings and Integrations > In App Purchases & Subscriptions > Stripe. Use the toggle to enable Stripe Payments.
- Copy the Publishable Key and Secret Key from the Stripe API keys page and paste them into the respective fields inside FlutterFlow. If you are using Stripe in test mode, make sure you paste them inside the Test Credentials section.
- Under the Additional Settings, you need to specify the following:
- 1.Merchant Display Name (Required): Enter a name for the merchant (you) that the user will see while performing the payment.
- 2.Merchant Country Code (Required): Enter your country code.
- 3.Apple Merchant ID (Optional): You need to enter this if you want to accept payments through Apple Pay as well. The instructions for using Apple Pay are in this section.
- Click Deploy.

Setup Stripe payment
This would deploy the Stripe payment service as a Firebase Cloud Function. Now, you are ready to trigger payments inside your app.
Setting up Apple Pay comprises the following steps:
To create Apple Merchant ID:
- Under Identifiers, select Merchant IDs.
- Click the Add button (+) in the upper-right corner.
- Enter a Description and specify an Identifier. The identifier is usually defined in the format,
merchant
followed by the Package Name of your app (you'll find it inside the Settings and Integrations page of FlutterFlow), for example:merchant.com.domainname.appname
. - Click Continue.
- Review the settings, and click Register.
- Click Done.
- Now, again under Identifiers, select Apps IDs.
- Select your app's identifier from the list.
- Under Capabilities, check the Apple Pay Payment Processing option.
- Click Configure.
- Select the merchant account that you just created, and click Continue.
- Click Save and then Confirm in the dialog.
.gif?alt=media&token=b73edefe-992f-4376-8a2d-ef9ba2e4750c)
Creating Apple Merchant ID
To upload a payment certificate in Stripe:
- Expand the Apple Pay tab under the Wallets section.
- Under iOS certificates, click + Add new application.
- This will download the Certificate Signing Request (CSR) file on your system, click Continue.
- Select the Merchant ID with which you want to associate this certificate, and click Create Certificate.
- Follow the instructions to upload the CSR file that you downloaded from Stripe.
- To enable the certificate, click Activate. Then click Download to save it locally.
- Go back to the Stripe page where the dialog box is displayed, and click Continue.
- Upload the new certificate file.
- Once uploaded, you should see the certificate listed under iOS certificates.
To add Apple Merchant ID in FlutterFlow:
- Go to the FlutterFlow project, and navigate to Settings and Integrations > In App Purchases & Subscriptions > Stripe.
- Under the Additional Settings, enter your Apple Merchant ID.

Adding Apple Merchant ID in FlutterFlow
In order to initiate a payment using Stripe, you have to use the Stripe Payment Action. Know how to define this action by going to the following page:
You can test Stripe payments on mobile and the Web before deployment. To do that:
- Go to the FlutterFlow project, and navigate to Settings and Integrations > In App Purchases & Subscriptions > Stripe.
- Make sure the Is Production is disabled.
- Make sure you have entered the correct Test Credentials such as Publishable Key and Secret Key.

Testing payment
Before you release the app to production, complete the following steps:
- Disable the Test Mode (top right side of your screen).
- Select API keys from the left menu and copy the Publishable Key and Secret Key.
- Go to the FlutterFlow project, and navigate to Settings and Integrations > In App Purchases & Subscriptions > Stripe. Use the toggle to enable Stripe Payments.
- Use the toggle to enable Stripe Payments.
- Under the Production Credentials section, paste the Publishable Key and Secret Key.
Last modified 6mo ago