Test Environment Setup
Before going live, configure a test account:
Prerequisitesโ
- Install BitPay wallet app on your mobile or desktop. Windows download: Microsoft Store
- Create a BTC wallet - enable testnet mode during setup.
Get Test Bitcoinโ
- Open your newly created wallet and go to the Receive tab.
- Copy your wallet address.
- Visit bitcoinfaucet.uo1.net and send test BTC to your address.
- Repeat several times to build up a sufficient test balance.
Create Test BitPay Merchant Accountโ
- Create an account at test.bitpay.com.
- Navigate to Payment Tools โ Settlements Tab โ Add Settlement Currency.
- Paste your BTC test wallet address.
warning
You will NOT need to paste wallet IDs in the production environment. This is only for the test account.
Generate Pairing Keyโ
Create a pair key by visiting this URL (replace with your values):
http://YOURDOMAIN.COM/modules/bitpay_gateway/libraries/vendor/bitpay/php-client/examples/tutorial/pair.php?paring_code=YOURPARINGCODE
tip
Copy only the token from the response and paste it into the module's settings in Perfex CRM. Pairing codes can only be used once.
Enable Test Mode in the module settings and save.
Test a Paymentโ
- Create a sample invoice in Perfex.
- Navigate to the payment button.
- Press Pay in app - your BitPay wallet will open to check out the invoice.
- Confirm payment.