For development and testing, BitPay users can access test.bitpay.com, a mirror of our production site running on testnet.
Developers must complete the normal signup process, but accounts on this server will be auto-approved.
Before you begin testing, note that any API requests must be directed to test.bitpay.com as base API url, and any clients must complete the client pairing process against this server as well. Finally, a testnet-compatible wallet must be used to make test payments.
Below are some helpful pointers for getting started with test.bitpay.com:
Merchant Account Setup
Complete the following steps to setup your merchant account for testing:
Sign up for a BitPay testnet account. Make sure to verify your email and fill in your business information & settlement information. See "Settlement Testing" below for what information to enter.
Pair your client with your BitPay merchant account. If you are using one of your BitPay's plugin or code library, detailed steps are described in the corresponding documentation.
Getting a Testnet Bitcoin Wallet
Not every wallet have testnet support for most of the currencies available on the BitPay platform. We recommend testing with our open source wallet BitPay, but any testnet-compatible wallet can be used.
Visit bitpay.com/wallet and download the wallet for your chosen laptop or desktop OS, mobile platform, or browser.
Once you have created your first standard wallet in the app, click on the + icon on the wallet's home screen, then select the Simple Wallet option followed by the currency for the wallet.
On the next screen, under the Advanced Options enable the testnet option.
Click on the Create button.
Nice work! Your wallet is active and is now ready for testing.
Getting a Testnet ETH Wallet
If you are testing ETH payments, we recommend the MetaMask wallet.
Add the MetaMask wallet extension to your Chrome browser.
Follow the instructions to create and back up a wallet. Your wallet will automatically be set to use the main Ethereum network.
Click the dropdown network selector in the upper right-hand corner of your wallet's screen to select "Kovan Test Network".
Getting Testnet Bitcoin
Open your BitPay wallet and click on the "Receive" tab. Scroll through your wallets to find your testnet wallet. You'll see an address at which you can receive funds. Copy this address to your clipboard.
Find a testnet faucet and paste your testnet wallet address into the request form provided. We recommend the following testnet faucets:
Select the send option for the testnet faucet, then return to your wallet to see the newly deposited test funds!
Getting Testnet ETH
Open your MetaMask wallet and click on the "Deposit" button.
Copy the address string shown beneath the QR code. This is your testnet wallet address.
Find a testnet faucet for the Kovan Testnet and paste your testnet wallet address into the request form provided. We recommend the following testnet faucet:
Once you submit your address to the testnet faucet, you should receive ETH testnet funds shortly.
Settlement Testing (BTC Only)
In order to recycle your Bitcoin testnet coins, set your test.bitpay.com settlement address to your testnet wallet's receiving address (note: most testnet Bitcoin addresses begin with the prefix
n rather than the prefix
3 of mainnet Bitcoin addresses) and set payment at 100% BTC.
Setting up your merchant account this way allows the Bitcoin you send for payment to be circulated back to you when merchant payouts are run.
Testing may involve not only the integration of the BitPay service and the payment of invoices but also how you handle common payment exceptions.
You should consider testing the following kinds of transactions:
A fully paid invoice, paid on time (within 15 minutes of invoice generation)
A fully paid invoice, paid late (after 1 hour, after 24 hours)
An underpaid invoice (pay an amount less than the invoice requires.)
An overpaid invoice (pay an amount more than the invoice requires.)
An invoice with and without wallet fees: