Skip to content

Commit

Permalink
Update docs api key references
Browse files Browse the repository at this point in the history
  • Loading branch information
bobbyiliev committed Mar 29, 2024
1 parent b1a2cbe commit 8e0dd38
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"
JWT_SECRET=Jrsweag3Mf0srOqDizRkhjWm5CEFcrBy

PADDLE_VENDOR_ID=
PADDLE_VENDOR_AUTH_CODE=
PADDLE_API_KEY=
PADDLE_ENV=sandbox
PADDLE_PUBLIC_KEY=

Expand Down
3 changes: 2 additions & 1 deletion wave/docs/configurations.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ return [

'paddle' => [
'vendor' => env('PADDLE_VENDOR_ID', ''),
'auth_code' => env('PADDLE_VENDOR_AUTH_CODE', ''),
'auth_code' => env('PADDLE_API_KEY', ''),
'client_side_token' => env('PADDLE_CLIENT_SIDE_TOKEN', ''),
'env' => env('PADDLE_ENV', 'sandbox')
]

Expand Down
4 changes: 2 additions & 2 deletions wave/docs/features/billing.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ Inside of your Paddle Dashboard you'll see a button under the **Developer Tools*

Along with the **API Auth Code**, you'll also need to get your **Client Side Token**.

On this page you'll find your **Seller ID** and your **API Auth Code**. These are the credentials that you will need to add to your `.env` file for `PADDLE_VENDOR_ID`, `PADDLE_VENDOR_AUTH_CODE` and `PADDLE_CLIENT_SIDE_TOKEN`:
On this page you'll find your **Seller ID** and your **API Auth Code**. These are the credentials that you will need to add to your `.env` file for `PADDLE_VENDOR_ID`, `PADDLE_API_KEY` and `PADDLE_CLIENT_SIDE_TOKEN`:

```
PADDLE_VENDOR_ID=9999
PADDLE_VENDOR_AUTH_CODE=YOUR_REALLY_LONG_API_KEY_HERE
PADDLE_API_KEY=YOUR_REALLY_API_KEY_HERE
PADDLE_CLIENT_SIDE_TOKEN=YOUR_CLIENT_SIDE_TOKEN
PADDLE_ENV=sandbox
```
Expand Down
1 change: 1 addition & 0 deletions wave/src/Http/Controllers/SubscriptionController.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ public function checkout(Request $request){
for ($i = 0; $i < $retryCount; $i++) {
$response = Http::withToken($this->api_key)->get($this->paddle_url . '/transactions/' . $request->checkout_id);

\Illuminate\Support\Facades\Log::info($response->body());
if ($response->successful()) {
$resBody = json_decode($response->body());
if (isset($resBody->data->status) && !is_null($resBody->data->subscription_id)) {
Expand Down

0 comments on commit 8e0dd38

Please sign in to comment.