File tree 5 files changed +8
-8
lines changed
5 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ Copy the default file using `cp phpunit.xml.dist phpunit.xml` and add the follow
10
10
11
11
<env name="PADDLE_SANDBOX" value="true"/>
12
12
<env name="PADDLE_SELLER_ID" value="Your Paddle seller ID"/>
13
- <env name="PADDLE_AUTH_CODE " value="Your Paddle auth code "/>
13
+ <env name="PADDLE_API_KEY " value="Your Paddle api key "/>
14
14
<env name="PADDLE_TEST_PRICE" value="Identifier for a random one off price"/>
15
15
16
16
After setting these variables, you can run your tests by executing the ` vendor/bin/phpunit ` command.
Original file line number Diff line number Diff line change 43
43
run : vendor/bin/phpunit
44
44
env :
45
45
PADDLE_SELLER_ID : ${{ secrets.PADDLE_SELLER_ID }}
46
- PADDLE_AUTH_CODE : ${{ secrets.PADDLE_AUTH_CODE }}
46
+ PADDLE_API_KEY : ${{ secrets.PADDLE_API_KEY }}
47
47
PADDLE_WEBHOOK_SECRET : ${{ secrets.PADDLE_WEBHOOK_SECRET }}
48
48
PADDLE_TEST_PRICE : ${{ secrets.PADDLE_TEST_PRICE }}
Original file line number Diff line number Diff line change 7
7
| Paddle Keys
8
8
|--------------------------------------------------------------------------
9
9
|
10
- | The Paddle seller ID and auth code will allow your application to call
11
- | the Paddle API. The "public" key is typically used when interacting
12
- | with Paddle.js while the "secret " key accesses private endpoints.
10
+ | The Paddle seller ID and API key will allow your application to call
11
+ | the Paddle API. The seller key is typically used when interacting
12
+ | with Paddle.js, while the "API " key accesses private endpoints.
13
13
|
14
14
*/
15
15
16
16
'seller_id ' => env ('PADDLE_SELLER_ID ' ),
17
17
18
- 'auth_code ' => env ('PADDLE_AUTH_CODE ' ),
18
+ 'api_key ' => env ('PADDLE_AUTH_CODE ' ) ?? env ( ' PADDLE_API_KEY ' ),
19
19
20
20
'retain_key ' => env ('PADDLE_RETAIN_KEY ' ),
21
21
Original file line number Diff line number Diff line change 18
18
</testsuites >
19
19
<php >
20
20
<env name =" DB_CONNECTION" value =" testing" />
21
- <env name =" PADDLE_AUTH_CODE " value =" fake" />
21
+ <env name =" PADDLE_API_KEY " value =" fake" />
22
22
<env name =" PADDLE_SANDBOX" value =" true" />
23
23
</php >
24
24
</phpunit >
Original file line number Diff line number Diff line change @@ -115,7 +115,7 @@ public static function webhookUrl()
115
115
*/
116
116
public static function api ($ method , $ uri , array $ payload = [])
117
117
{
118
- if (empty ($ apiKey = config ('cashier.auth_code ' ))) {
118
+ if (empty ($ apiKey = config ('cashier.api_key ' , config ( ' cashier. auth_code ') ))) {
119
119
throw new Exception ('Paddle API key not set. ' );
120
120
}
121
121
You can’t perform that action at this time.
0 commit comments