Skip to content

Commit

Permalink
Change env prefix from COINBASE_ to COINBASE_COMMERCE_
Browse files Browse the repository at this point in the history
  • Loading branch information
antimech committed Jan 3, 2024
1 parent ce94a95 commit 212d090
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ First, you need to configure the environment variables. Copy the default phpunit
$ cp phpunit.xml.dist phpunit.xml
```

Edit `phpunit.xml` file, fill the `COINBASE_API_KEY` and `COINBASE_WEBHOOK_SECRET` env variables according to the data from your Coinbase Commerce account.
Edit `phpunit.xml` file, fill the `COINBASE_COMMERCE_API_KEY` and `COINBASE_COMMERCE_WEBHOOK_SECRET` env variables according to the data from your Coinbase Commerce account.

Now run phpunit:
```bash
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ This is the contents of the config file that will be published at `config/coinba

```php
return [
'api_key' => env('COINBASE_API_KEY'),
'api_version' => env('COINBASE_API_VERSION', '2018-03-22'),
'api_key' => env('COINBASE_COMMERCE_API_KEY'),
'api_version' => env('COINBASE_COMMERCE_API_VERSION', '2018-03-22'),

'webhook_secret' => env('COINBASE_WEBHOOK_SECRET'),
'webhook_secret' => env('COINBASE_COMMERCE_WEBHOOK_SECRET'),
'webhook_jobs' => [
// 'charge:created' => \App\Jobs\CoinbaseWebhooks\HandleCreatedCharge::class,
// 'charge:confirmed' => \App\Jobs\CoinbaseWebhooks\HandleConfirmedCharge::class,
Expand Down
6 changes: 3 additions & 3 deletions config/coinbase.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php

return [
'api_key' => env('COINBASE_API_KEY'),
'api_version' => env('COINBASE_API_VERSION', '2018-03-22'),
'api_key' => env('COINBASE_COMMERCE_API_KEY'),
'api_version' => env('COINBASE_COMMERCE_API_VERSION', '2018-03-22'),

'webhook_secret' => env('COINBASE_WEBHOOK_SECRET'),
'webhook_secret' => env('COINBASE_COMMERCE_WEBHOOK_SECRET'),
'webhook_jobs' => [
// 'charge:created' => \App\Jobs\CoinbaseWebhooks\HandleCreatedCharge::class,
// 'charge:confirmed' => \App\Jobs\CoinbaseWebhooks\HandleConfirmedCharge::class,
Expand Down
6 changes: 3 additions & 3 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
</source>

<php>
<env name="COINBASE_API_KEY" value="paste-api-key-here"/>
<env name="COINBASE_API_VERSION" value="2018-03-22"/>
<env name="COINBASE_WEBHOOK_SECRET" value="paste-webhook-secret-here"/>
<env name="COINBASE_COMMERCE_API_KEY" value="paste-api-key-here"/>
<env name="COINBASE_COMMERCE_API_VERSION" value="2018-03-22"/>
<env name="COINBASE_COMMERCE_WEBHOOK_SECRET" value="paste-webhook-secret-here"/>
</php>
</phpunit>

0 comments on commit 212d090

Please sign in to comment.