blesta / stripe_payments
Stripe Payments
Package info
github.com/blesta/gateway-stripepayments
Type:blesta-gateway-merchant
pkg:composer/blesta/stripe_payments
Requires
- blesta/composer-installer: ~1.0
- stripe/stripe-php: ^7.128
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
- dev-master
- 2.1.x-dev
- 2.1.0
- 2.0.x-dev
- 2.0.4
- 2.0.3
- 2.0.2
- 2.0.1
- 2.0.0
- 1.10.x-dev
- 1.10.8
- 1.10.7
- 1.10.6
- 1.10.5
- 1.10.4
- 1.10.3
- 1.10.2
- 1.10.1
- 1.10.0
- 1.9.x-dev
- 1.9.1
- 1.9.0
- 1.8.x-dev
- 1.8.0
- 1.7.x-dev
- 1.7.2
- 1.7.1
- 1.7.0
- 1.6.x-dev
- 1.6.1
- 1.6.0
- 1.5.x-dev
- 1.5.0
- 1.4.x-dev
- 1.4.0
- 1.3.x-dev
- 1.3.1
- 1.3.0
- 1.2.x-dev
- 1.2.1
- 1.2.0
- 1.1.x-dev
- 1.1.0
- 1.0.x-dev
- 1.0.4
- 1.0.3
- 1.0.2
- 1.0.1
- 1.0.0
- 0.3.x-dev
- 0.3.2
- 0.3.1
- 0.3.0
- 0.2.0
- dev-CORE-6311-1.10
- dev-CORE-6311
- dev-CORE-6305
- dev-CORE-6299
- dev-fix-confirm-resubmit
- dev-CORE-6155
- dev-CORE-6141-513
- dev-CORE-6126
- dev-CORE-6166
- dev-CORE-6127
- dev-CORE-6125
- dev-release/2.0.2
- dev-CORE-6061-513
- dev-CORE-6061
- dev-CORE-6038
- dev-feature/CORE-5847-update-payment-gateway-admin-views
- dev-CORE-5776
- dev-CORE-5784
- dev-CORE-5747
- dev-CORE-5133
- dev-CORE-5339
- dev-CORE-5368
- dev-CORE-5176
- dev-CORE-4832
- dev-CORE-4774
- dev-CORE-4592
- dev-CORE-4559
- dev-CORE-4545
- dev-CORE-4548
- dev-CORE-4542
- dev-fix-jquery-submission-triggers
This package is auto-updated.
Last update: 2026-11-10 22:19:50 UTC
README
This is a merchant gateway for Blesta that integrates with Stripe, using tools like Stripe.js, Elements, and PaymentIntents to ensure a secure process for storing and charging cards.
Install the Gateway
-
You can install the gateway via composer:
composer require blesta/stripe_payments -
Upload the source code to a /components/gateways/merchant/stripe_payments/ directory within your Blesta installation path.
For example:
/var/www/html/blesta/components/merchant/stripe_payments/ -
Log in to your admin Blesta account and navigate to
Settings > Payment Gateways
-
Find the Stripe Payments gateway and click the "Install" button to install it
-
You're done!
Connecting Stripe with OAuth (Stripe Connect)
As of v2.1.0 (Blesta 6.0+), the recommended way to configure the gateway is to connect your Stripe account directly instead of copying API keys:
- Navigate to
Settings > Payment Gateways > Stripe Payments
-
Click Connect with Stripe and complete the authorization on Stripe's site. To use a sandbox, choose Set up in sandbox/test mode instead.
-
On return, the gateway shows the connected Stripe account with a Live or Test badge. Credentials are managed automatically from then on — there are no keys to copy or rotate.
If you prefer API keys, expand Use API keys instead and enter your publishable and secret keys as before.
Switching an existing gateway to Stripe Connect
A gateway already configured with API keys shows a Switch to Stripe Connect button. The conversion only completes when the Stripe account you authorize is the same account your existing secret key points at (and in the same live/test mode); otherwise it is refused and nothing changes. On success the stored API keys are removed and your clients' saved payment methods continue to work unchanged.
Switch to Stripe Connect never changes the Stripe account: authorizing a different
account there is refused and the gateway keeps running on its API keys. Gateways
configured with a restricted key (rk_...) cannot be converted in place.
Connecting a different Stripe account
To move a gateway that uses API keys to another Stripe account (or to connect one that uses a restricted key), click Use a Different Account and confirm. Whichever account you authorize is connected, in the same live/test mode as the stored keys, and the stored API keys are removed.
Saved cards, bank accounts and Stripe customers belong to the Stripe account they were created in, so after connecting a different account, charging them and refunding earlier payments will fail and clients will need to add their payment methods again. The confirmation shows how many saved payment methods are affected. To return to the original account, use Reconnect and choose it; its saved payment methods work again.
Reconnecting
A connected gateway offers Reconnect, which sends you to Stripe to authorize again, in live mode by default (choose Use test mode in the dialog for a sandbox). Use it to move a test-mode gateway to live or to connect a different Stripe account. The current connection keeps working until the new authorization completes; if you abandon it or it's refused, nothing changes. Once the new connection is saved, the previous one is disconnected at Stripe, unless it was the same account in the same mode.
If disconnecting the previous account fails, the gateway settings show a warning naming that account with a Retry button. Blesta also retries automatically on the next reconnect or disconnect. You can instead remove the connection from your Stripe dashboard.
Saved payment methods only work with the Stripe account, and the mode, they were created in.
Disconnecting and revoking
Disconnect revokes Blesta's access to your Stripe account and leaves the gateway unconfigured — it does not fall back to previously stored API keys. Your clients' saved payment methods remain in your Stripe account and resolve again if you reconnect to the same account. You can also revoke access from the Stripe dashboard; the gateway discovers this on its next API call and returns to the unconfigured state.
Webhook setup is unchanged
Webhooks are not affected by how the gateway authenticates. Configure the webhook URL shown on the gateway settings page in your own Stripe account for "payment_intent" and "charge" events, exactly as before.
Blesta Compatibility
| Blesta Version | Module Version |
|---|---|
| < v4.9.0 | v1.1.0 |
| >= v4.9.0 | v1.2.0 |
| >= v6.0.0 | v2.1.0 |