Configure Stripe integration

Nicolas Audet
Nicolas Audet
  • Updated

Overview

Integrating Stripe within gaiia allows your customers to pay for their invoices by using either a credit card, bank payment using Automated Clearing House (ACH) or bank payment using BACS Direct Debit (for UK customers).

By default, bank payment will be disabled. To enable them, follow this guide , and then follow these steps: Enable bank payments for Stripe

Additionally, you can also charge a fee to your customers for either credit card or bank payments, check this article: Adding a processing fee for Credit Card and ACH payments

Please Note: Ensure that the “Test mode” is not enabled when pulling the necessary information. Please also ensure that you do not point your Stripe “test mode” environment to your production instance. gaiia is able to provide a testing instance if you wish to test the webhooks.

Screenshot 2024-10-01 at 9.44.43 AM.png

 

Steps

A. Prepare your Stripe API keys

  1. Navigate to Stripe's website

  2. Click on the Developers button in the upper-right corner

  3. Select the API keys tab

  4. In the Standard keys section, click on Reveal next to the following keys, and copy them in your message:
    • Publishable key
    • Secret key

      stripe-integration-get-api-keys.png

  5. Toggle the Test mode radio button in the upper-right corner

    stripe-integration-set-test-mode.png

  6. Repeat step 5, those test keys will be used for your gaiia sandbox instance

  7. Toggle off the Test mode radio button in the upper-right corner for your production instance

 

B. Configuring the webhook

  1. Select the Webhooks tab

  2. Click Add endpoint

    stripe-integration-add-endpoint.png

  3. Set Endpoint URL to:

    • https://6bpu8a02c8.execute-api.us-east-1.amazonaws.com/production/on-stripe-webhook-event?billingSettingsId=gaiia billing setting ID

      stripe-integration-configure-endpoint.png

      Your gaiia billing setting ID can be found by navigating to gaiia's Settings (Admin) page > Billing tab > Settings > Currency Settings > scroll down to Other settings

  4. Click on Select events, and select the following events:

    • charge.dispute.closed
    • charge.dispute.created
    • charge.dispute.funds_reinstated
    • charge.dispute.funds_withdrawn
    • charge.dispute.updated
    • charge.refund.updated
    • customer.source.expiring
    • customer.source.updated
    • payment_method.automatically_updated
    • radar.early_fraud_warning.created
    • radar.early_fraud_warning.updated
    • source.canceled
  5. Optionally, if you are located in the US and need ACH - Direct debit support or located in the UK and need BACS Direct Debit support, also add these events:

    • payment_intent.canceled
    • payment_intent.succeeded
    • payment_intent.payment_failed
    • setup_intent.canceled
    • setup_intent.setup_failed
    • setup_intent.succeeded
    • setup_intent.requires_action
    • checkout.session.completed
    • mandate.updated
  6. Confirm by clicking Add endpoint

  7. Copy the webhook Signing secret in your message by clicking Reveal

    stripe-integration-get-secret.png

  8. Toggle the Test mode radio button in the upper-right corner
  9. Repeat from steps 2 to 7 to configure the sandbox webhook

 

C. Finishing the process

  1. Navigate to the Payments page in the left-hand navigation bar
  2. Select Fraud & Risk
  3. In Rules, enable Block if CVC verification fails
  4. Once you have everything you need, navigate to the Integrations page under the Admin section of gaiia
  5. Under the App directory tab, find the Stripe integration in the list and click the Install button
  6. Use the "Select payment type" step to define what type of payments you will support and click the Next button
  7. On the configuration step, enter all of the details that you captured from the steps above
  8. Click the Connect button to complete the process

Screenshot 2024-10-09 at 9.42.20 AM.png

Related to

Was this article helpful?

Have more questions? Submit a request