Skip to content

Commit

Permalink
Update payment.php config
Browse files Browse the repository at this point in the history
  • Loading branch information
r-kujawa committed Apr 17, 2024
1 parent b7c5d70 commit 511f567
Showing 1 changed file with 12 additions and 14 deletions.
26 changes: 12 additions & 14 deletions config/payment.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,32 +2,30 @@

return [

'name' => 'Checkout',

/*
|--------------------------------------------------------------------------
| Payment Test Mode
| Checkout Test Mode
|--------------------------------------------------------------------------
|
| When set to true, it will pass the provider & account into the testing
| gateway so you can mock your requests as you wish. This is very
| useful when you are running tests in a CI/CD environment.
| When set to true, the provider & account will be shared with the fake payment
| request so you can mock your responses as you wish. This is very useful for
| local & testing environments where a sandbox is limited or non-existent.
|
*/
'test_mode' => false,

'test_mode' => env('PAYMENT_TEST_MODE', false),

/*
|--------------------------------------------------------------------------
| Payment Mocking
| Checkout Testing
|--------------------------------------------------------------------------
|
| Here you can override the location and/or class name of your fake payment
| request & response classes. Also, feel free to add any additional config
| that may assist you in defining your mocked checkout responses.
| This option allows you to define the location of the fake payment
| request & response classes you would like to leverage when test_mode
| is set to true. Also, feel free to add any other settings here.
|
*/
'mocking' => [
'request_class' => \App\Services\Payment\FakePaymentRequest::class,
'response_class' => \App\Services\Payment\FakePaymentResponse::class,
],
'test_gateway' => \App\Services\Payment\FakePaymentRequest::class,

];

0 comments on commit 511f567

Please sign in to comment.