Skip to content

Enable Stripe payments with Payum

Stripe is a comprehensive payment platform that offers a suite of tools to handle online and in-person payments, subscriptions, fraud prevention, and more. By using Payum to integrate Stripe into your application, you can securely process payments with credit cards, bank transfers, and alternative payment methods.

Before you can proceed with integrating Stripe, sign up for a Stripe account and obtain the API keys required for integration.

Install the Stripe package:

composer require payum/stripe php-http/guzzle7-adapter

Then, add the following configuration to your YAML configuration file (payum.yaml or similar):

1
2
3
4
5
6
payum:
    gateways:
        strp_checkout:
            factory: stripe_checkout
            publishable_key: <publishable_key>
            secret_key: <secret_key>

Tip

You can replace strp_checkout with a different unique identifier.

Ensure that the publishable_key and secret_key fields contain the Stripe API keys.

You can now provide language translations for the Stripe payment platform name. To do it, within the ibexa_payment_type namespace in your translation files, use the provided translation key structure within your translation files:

1
2
3
4
5
ibexa:
    payment_method:
        type:
            strp_checkout:
                name: "Translated Stripe Checkout name"