Drupal Commerce module
Accept crypto payments in Drupal Commerce
A Drupal Commerce module that adds an ArionPay payment gateway. Customers pay on the ArionPay page, and the money is paid straight to your own wallet.
What it does
ArionPay for Drupal Commerce
Read more
When ArionPay confirms the full payment, the module records one completed payment whose remote id is the ArionPay invoice id, and Commerce places the order. An order is never placed unpaid.- Off-site gateway: the customer pays on the ArionPay page
- Records one completed payment, with the ArionPay invoice id as remote id
- Asks ArionPay directly when the customer comes back, which also covers a lost webhook
- An order is never placed unpaid
- Secrets can be set in settings.php to keep them out of exported configuration
- Test and Live modes: a test invoice is never recorded in Live mode, nor a real one in Test mode
- The zip brings its own copy of the ArionPay PHP library
Requirements and licence
- Works with
- Drupal 10.3 and 11 with Commerce 2.40+ or 3.x · PHP 8.1 or newer
- Tested
- Drupal 11 with Commerce 3.3.14 and PHP 8.3
- Cost
- The plugin is free. ArionPay charges 0.5% per payment, with no monthly fee.
- Source
- Open source (GPL v2 or later) on GitHub, version 1.0.0.
Setup
Set it up in 4 steps
Step 1
Add the module
Unzip commerce_arionpay-1.0.0.zip into web/modules/contrib/, then enable Commerce ArionPay in Extend.
Step 2
Add the gateway
Go to Commerce > Configuration > Payment gateways > Add payment gateway and choose ArionPay (crypto).
Step 3
Paste your keys
Fill in the API key (pk_), API secret (sk_) and webhook signing secret (whsec_). The secrets are never shown again; leave the fields empty to keep them.
Step 4
Test, then go live
Set Mode to Test to make test invoices with pretend money, then switch to Live for real payments. In your ArionPay store settings, Old ArionPay (v1) integration compatibility must be off.
After the setup
How orders change
- At Review the customer presses Pay and complete purchase and goes to the ArionPay page. The order stays a locked draft until it is paid.
- When ArionPay confirms the full payment, the module records one completed payment and Commerce places the order.
- If the invoice is not paid yet when the customer comes back, the customer goes back to the ArionPay page, which shows the payment's progress.
- A payment that is not exact goes to Payment Radar. A small difference inside your store's payment tolerance (default 1%) is accepted automatically; anything else you decide.
- A late payment is still recorded.
- A second paid invoice for an already paid order is still recorded, with a warning in the log: refund it from your wallet.
16 coins and tokens on 9 networks
All coins- BTCBitcoin
- ETHEthereum
- USDTEthereum
- USDCEthereum
- BNBBNB Smart Chain
- USDTBNB Smart Chain
- USDCBNB Smart Chain
- POLPolygon
- USDTPolygon
- USDCPolygon
- TRXTRON
- USDTTRON
- LTCLitecoin
- DOGEDogecoin
- BCHBitcoin Cash
- DASHDash
Questions about ArionPay for Drupal Commerce
Short answers before you install it.