テスト環境のセットアップ
本番前にテストアカウントを設定します:
前提条件
- モバイルまたはデスクトップにBitPayウォレットアプリをインストールします。Windowsダウンロード:Microsoft Store
- BTCウォレットを作成 - セットアップ時にtestnetモードを有効にします。
テスト用Bitcoinを取得する
- 新しく作成したウォレットを開き、Receiveタブに移動します。
- ウォレットアドレスをコピーします。
- bitcoinfaucet.uo1.netにアクセスし、アドレスにテストBTCを送信します。
- 十分なテスト残高が貯まるまで数回繰り返します。
テスト用BitPayマーチャントアカウントを作 成する
- test.bitpay.comでアカウントを作成します。
- Payment Tools → Settlements Tab → Add Settlement Currency に移動します。
- BTCテストウォレットアドレスを貼り付けます。
警告
You will NOT need to paste wallet IDs in the production environment. This is only for the test account.
ペアリングキーを生成する
このURLにアクセスしてペアキーを作成します(値を置き換えてください):
http://YOURDOMAIN.COM/modules/bitpay_gateway/libraries/vendor/bitpay/php-client/examples/tutorial/pair.php?paring_code=YOURPARINGCODE
ヒント
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.
モジュール設定でTest Modeを有効にして保存します。
支払いをテストする
- Perfexでサンプル請求書を作成します。
- 支払いボタンに移動します。
- Pay in app を押す - BitPayウォレットが開いて請求書をチェックアウトします。
- 支払いを確認します。