From 9faa4b5f84134e496ce796e715ce9f6f1ab0497f Mon Sep 17 00:00:00 2001 From: Raza Mehdi Date: Mon, 24 Jun 2024 13:30:20 +0500 Subject: [PATCH] Add SDK Config. Signed-off-by: Raza Mehdi --- config/config.php | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/config/config.php b/config/config.php index 11c45abe..03e79c88 100644 --- a/config/config.php +++ b/config/config.php @@ -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.