The module provides integration with the Binance Pay payment gateway, enabling Magento 2 stores to accept payments through BinancePay. This module allows customers to use the BinancePay payment method during checkout, offering a seamless and secure payment experience. Additionally, the module supports refund functionality, allowing store administrators to process refunds directly from the Magento admin panel.
- Integrates Binance Pay as a payment method in Magento 2.
- Secure payment transactions with webhook integration.
- Handles payment success and error cases.
- Asynchronous processing using RabbitMQ for smooth payment workflows.
- Refund functionality
- Magento 2.4.x
- PHP 8.2 or higher
- Binance Pay merchant account
- RabbitMQ installed and configured
-
Clone or Download the Module
Download the module from the repository and place it in the Magento 2
app/code/Internship/BinancePay
directory. -
Enable the Module
Run the following commands to enable the module:
bin/magento module:enable Internship_BinancePay bin/magento setup:upgrade bin/magento setup:di:compile bin/magento setup:static-content:deploy -f
- Go to the Magento Admin Panel: Navigate to Stores > Configuration > Sales > Payment Methods.
- Configure BinancePay Settings: Locate the BinancePay section and configure the settings.
To ensure that your Magento 2 store can handle payment notifications from Binance Pay, you need to set up a webhook in the Binance Pay developer dashboard:
Go to the Binance Pay Developer Dashboard:
Navigate to the Binance Pay Developer Dashboard
and select the Webhooks
section.
Add a new webhook with the following URL:
https://<your-magento-domain>/binancepay/checkout/webhook
Replace <your-magento-domain>
with your actual Magento domain.
This URL will handle incoming payment notifications from Binance Pay.
Make sure RabbitMQ is installed and configured in your Magento 2 environment. Start the Magento Consumer for Order Creation:
bin/magento queue:consumers:start binance.order.creation &
For support or questions, please contact the author:
Author: Andrii Tomkiv
Email: tomkivandrii18@gmail.com
LICENSE. For more information, see the LICENSE file.