update README and config samples to include URL parameter

This commit is contained in:
Markus Petzsch 2020-06-24 20:30:12 +02:00
parent f5b7bd19f4
commit d98cf73166
4 changed files with 5 additions and 3 deletions

View File

@ -1,4 +1,4 @@
# WORK IN PROGRESS: BtcPay PHP Client (Do not use for production yet!)
# BtcPay PHP Client
[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)](https://raw.githubusercontent.com/btcpayserver/php-btcpay-client-v2/master/LICENSE)
[![Packagist](https://img.shields.io/packagist/v/btcpayserver/sdk.svg?style=flat-square)](https://packagist.org/packages/btcpayserver/sdk)

View File

@ -3,6 +3,7 @@
"Environment": "",
"EnvConfig": {
"Test": {
"Url": "",
"PrivateKeyPath": "",
"PrivateKeySecret": "",
"ApiTokens": {

View File

@ -8,6 +8,7 @@ BitPayConfiguration:
merchant: null
payroll: null
Prod:
Url: null
PrivateKeyPath: null
ApiTokens:
merchant: null

View File

@ -209,7 +209,7 @@ $config = [
"Environment" => $env,
"EnvConfig" => [
'Test' => [
"Url" => $isProd ? null : $yourUrl,
"Url" => $isProd ? null : $yourUrl."/",
"PrivateKeyPath" => $isProd ? null : __DIR__."/".$privateKeyname,
"PrivateKeySecret" => $isProd ? null : $yourMasterPassword,
"ApiTokens" => [
@ -218,7 +218,7 @@ $config = [
],
],
'Prod' => [
"Url" => $isProd ? $yourUrl : null,
"Url" => $isProd ? $yourUrl."/" : null,
"PrivateKeyPath" => $isProd ? __DIR__."/".$privateKeyname : null,
"PrivateKeySecret" => $isProd ? $yourMasterPassword : null,
"ApiTokens" => [