メインコンテンツまでスキップ

テスト環境のセットアップ

本番前にテストアカウントを設定します:

前提条件

  1. モバイルまたはデスクトップにBitPayウォレットアプリをインストールします。Windowsダウンロード:Microsoft Store
  2. BTCウォレットを作成 - セットアップ時にtestnetモードを有効にします。

テスト用Bitcoinを取得する

  1. 新しく作成したウォレットを開き、Receiveタブに移動します。
  2. ウォレットアドレスをコピーします。
  3. bitcoinfaucet.uo1.netにアクセスし、アドレスにテストBTCを送信します。
  4. 十分なテスト残高が貯まるまで数回繰り返します。

テスト用BitPayマーチャントアカウントを作成する

  1. test.bitpay.comでアカウントを作成します。
  2. Payment Tools → Settlements Tab → Add Settlement Currency に移動します。
  3. 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を有効にして保存します。

支払いをテストする

  1. Perfexでサンプル請求書を作成します。
  2. 支払いボタンに移動します。
  3. Pay in app を押す - BitPayウォレットが開いて請求書をチェックアウトします。
  4. 支払いを確認します。