Payments are experiencing issues due to temporary restrictions in Russia. If your payment does not go through, please submit a support request.Our support team is available 24/7 — we are always here to help with hosting and server issues.We are now accepting requests for dedicated server rental and colocation services in our data center.Reminder: we recommend enabling backups for additional data protection.A new VPS/VDS lineup with NVMe storage and improved performance is now available.Maintenance work on some servers has been completed. All services are operating normally.

MODULE FOR 1C-BITRIX

Dev2Fun

Stripe payment module

The module integrates with the Stripe payment system to accept payments. It supports Stripe API version 2023-08-16 and operates in both test (demo mode) and live (live mode) environments. The system utilizes payment templates.

5.00/5 · 1 ratings

1C-Bitrix Marketplace: 5/5 · 1 ratings

Technical details

Published
11 April 2017
Updated
13 November 2023
Version
1.5.2
Installed
500–999 times
Responsive design
Yes
Composite support
Yes
Compatible with Sites24
Yes
Developer
Dev2Fun

What this solution does

The module integrates with the Stripe payment system to accept payments. It supports Stripe API version 2023-08-16 and operates in both test (demo mode) and live (live mode) environments.

The system utilizes payment templates. Included options are CUSTOM, the default template for Debit Card, Credit Card, SEPA, SOFORT, and GIROPAY payments, and REDIRECT, which immediately redirects the user to the Stripe payment page without displaying buttons on the site.

To use custom templates, place the files in one of the following directories relative to the site root:

/local/php_interface/sale_payment/stripe/templates/

/bitrix/php_interface/sale_payment/stripe/templates/

If files with the same name exist in multiple directories, the first listed path takes precedence.

Automatic payment confirmation is configured via webhooks. Copy the stripeWebhook.php file from the module root to a publicly accessible URL location. In the Stripe dashboard, navigate to Developers -> Webhooks, add a new endpoint, and within the endpoint settings under the webhook details block, click update details.

In the opened window, specify support for the events charge.succeeded and checkout.session.completed, then click the update endpoint button. In the Signing secret block, click click to reveal and copy the secret key. Go to the site admin panel, open the Stripe payment system settings, and paste the copied key into the Webhook token field. Perform a test payment.

Supported events:

OnBeforeStripeCharge — triggered after customer creation. Parameters passed: &$arCreateFields (an array passed to \Stripe\Charge::create) and $customer (an object from \Stripe\Customer::create).

OnBeforeUpdateOrder — triggered after receiving the payment status. Parameters passed: &$arFields (an array of fields for CSaleOrder::Update), $charge (an object from \Stripe\Charge::create), and $orderID (the order identifier).

OnBeforeSuccessOutput — triggered before displaying the success message. Parameters passed: &$output (a string or HTML code displaying the result), $arFields (an array of order fields, the same as used in CSaleOrder::Update), and $orderID (the order identifier).

OnBeforeErrorOutput — triggered before displaying the error message. Parameters passed:

The Stripe payment module by Dev2Fun uses the following parameters for handling errors and order data.

The variable &$error accepts a string or HTML code to display an error message.

The variable $errorText contains the text description of the error.

The array $arFields includes order fields identical to those passed to the CSaleOrder::Update method.

The variable $orderID represents the identifier of the current order.

For remarks or suggestions to improve the module functionality, contact the technical support service.

There is also an option to express gratitude to the author of the development.

When needed, General iT can implement “Stripe payment module”, configure the module and verify it against the current website setup.

UPDATE HISTORY

What’s new

25 releases
1.5.2 (14.09.2023)Latest update

- Improved support for custom order identifiers

- Added special_order_id template with improved support for custom order identifiers

- Improved error handling

1.5.1 (22.08.2023)

- Fixed webhook processing for STRIPE API version 2023-08-16

1.5.0 (21.08.2023)

- Integration rewritten using Stripe SDK version 12 with support for PHP 8.0, PHP 8.1, PHP 8.2

- Added support for GET parameter redirect (?redirect=1), which redirects to the payment page on stripe.com

- Added redirect template named redirect.

Location: /bitrix/php_interface/include/sale_payment/stripe/templates/redirect/templates.php

- Redirect status is 303 See Other

- Webhook processing from stripe.com has been rewritten

1.4.0 (02.08.2023)

- Added support for PHP 8.0

- Fixed a bug during initial loading (which broke the admin panel on the Payment Systems page)

1.3.12 (01.04.2022)

- Added support for specifying URLs for successful payment and return

- Added a separate field for specifying a test token for webhooks

- In the webhook handler, PSA_NAME has been changed to NAME. Now the handler name must necessarily contain Stripe, stripe, or stripe2

USER EXPERIENCE

Solution reviews

How does this solution work in a real project? Share your experience and help others choose.

Be the first to share your experience

There are no reviews of this solution on git.ru yet. Tell us what worked well and what could be improved.

Verified purchaseAdd a key if you wish. A verified review gets a badge, priority placement and more rating weight.

Open to every clientJust sign in to your account. A key is optional; all reviews are moderated.

YOUR EXPERIENCE MATTERS

Your review

YOUR PROJECT INFRASTRUCTURE

A home for your website

BEFORE YOU ORDER

Let’s go through the details.

Is installation free?
The solution itself is free. Installation, configuration and customisation services are agreed separately. A compatible platform and an appropriate platform licence are required.
How do I check compatibility?
Compare the supported editions and solution version in the technical details with your project. Before installing on a live website, we recommend making a backup and checking the solution in a test environment.
Can you help with implementation?
We can help install the module, check its settings and verify how it works in your project. Compatibility with other customisations and the scope of work are assessed before we begin.

GENERAL iT

Let’s discuss your project

Получатель: ООО «Дженерал Ай Ти Рус»

1C-BITRIX

Install solution

Enter a domain with or without https://. The installer will open in your website control panel in a new tab.

Solution screenshots

Solution screenshot