Skip to content

Commit

Permalink
Add SDK Config.
Browse files Browse the repository at this point in the history
Signed-off-by: Raza Mehdi <[email protected]>
  • Loading branch information
srmklive committed Jun 24, 2024
1 parent 8ea8a6a commit 9faa4b5
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion config/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,19 @@
'client_secret' => env('PAYPAL_LIVE_CLIENT_SECRET', ''),
'app_id' => env('PAYPAL_LIVE_APP_ID', ''),
],

'sdk' => [
'components' => [
'buttons' => env('PAYPAL_COMPONENT_BUTTONS', true),
'card-fields' => env('PAYPAL_COMPONENT_CARD', true),
'funding-eligibility' => env('PAYPAL_COMPONENT_FUNDING', true),
],
'funding_sources' => env('PAYPAL_FUNDING_SOURCES', 'card,venmo'),
'transactions' => [
'intent' => env('PAYPAL_TRANSACTION_INTENT', 'capture'),
'commit' => env('PAYPAL_COMMIT_TRANSACTION', true),
],
'vault' => env('PAYPAL_VAULT', true),
],
'payment_action' => env('PAYPAL_PAYMENT_ACTION', 'Sale'), // Can only be 'Sale', 'Authorization' or 'Order'
'currency' => env('PAYPAL_CURRENCY', 'USD'),
'notify_url' => env('PAYPAL_NOTIFY_URL', ''), // Change this accordingly for your application.
Expand Down

0 comments on commit 9faa4b5

Please sign in to comment.