Getting Started
Overviewโ
The BitPay module for Perfex CRM integrates the BitPay payment gateway into your Perfex CRM installation, enabling you to accept Bitcoin payments directly from your clients. The module supports both test mode (for development and verification) and live mode (for production transactions).
Requirementsโ
Before installing the module, ensure you have the following:
- A working installation of Perfex CRM
- Administrator access to the Perfex CRM backend
- The downloaded module archive from Themesic
- The BitPay app installed on your device (mobile or desktop) for wallet management
- A BitPay merchant account (test or live, depending on your setup stage)
Installationโ
The BitPay module is installed differently from most Perfex CRM modules. You must extract the files directly into your Perfex CRM root directory โ do not use the Modules upload menu.
Follow these steps to install the BitPay module:
- Extract the downloaded archive to a location on your computer.
- Inside the extracted folder, locate the file named
upload.zip. - Extract the contents of
upload.zipdirectly into the root directory of your Perfex CRM installation. - Log in to your Perfex CRM Admin panel.
- Navigate to SETUP โ Modules.
- Locate the BitPay module in the list and press Activate.
- Navigate to Settings to begin configuration.
Test Mode Setupโ
Before going live, it is strongly recommended to test the integration using BitPay's sandbox environment. This involves setting up both a client wallet and a merchant account in test mode.
Client Wallet Setupโ
- Download the BitPay app for your operating system (mobile or desktop).
- Create a new BTC wallet within the app.
- Enable testnet mode in the wallet settings.
- Copy the wallet's RECEIVE address.
- Visit bitcoinfaucet.uo1.net and paste your receive address to obtain test Bitcoin funds.
Test funds are free and allow you to simulate real transactions without spending actual Bitcoin.
Merchant Account Setupโ
- Create a test BitPay merchant account at test.bitpay.com.
- Once logged in, navigate to Payment Tools โ Settlements Tab.
- Click Add Settlement Currency.
- Paste your BTC test wallet address (the receive address from the previous step) into the settlement currency field and save.
Pairing with Perfex CRMโ
-
In your test BitPay merchant dashboard, generate a pairing code.
-
To generate the pair key, open the following URL in your browser (replace the placeholders with your actual values):
http://YOURDOMAIN.COM/modules/bitpay_gateway/libraries/vendor/bitpay/php-client/examples/tutorial/pair.php?paring_code=YOURPARINGCODE -
From the response, copy only the token value.
-
Go to your Perfex CRM module settings and paste the token into the appropriate field.
-
Enable the Test Mode toggle in the module settings.
-
Press Save.
A pairing code can only be used once. If you need to re-pair, generate a new pairing code from the BitPay dashboard.
Once test mode is configured, you can generate an invoice in Perfex CRM and complete a payment using your test wallet to verify the full payment flow.
Going Liveโ
When you are satisfied with your test results, follow these steps to switch to live mode:
- Create a live BitPay merchant account at bitpay.com (if you have not already).
- Repeat the Merchant Account Setup and Pairing steps above, but use the live BitPay dashboard at
bitpay.cominstead oftest.bitpay.com.
In live mode, you do not need to paste a wallet address in the Settlement Currency area โ BitPay handles settlement routing automatically for production accounts.
- Paste the new live token into your Perfex CRM module settings.
- Disable the Test Mode toggle.
- Press Save.
Your Perfex CRM installation is now ready to accept real Bitcoin payments through BitPay.
If you encounter any issues during installation or configuration, please contact support at https://themesic.com/support.