Skip to content

Commit 92641f3

Browse files
committed
Paypal quick patches
1 parent 1821c29 commit 92641f3

File tree

3 files changed

+39
-12
lines changed

3 files changed

+39
-12
lines changed

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@
1919
"laravel/socialite": "^4.3",
2020
"laravel/tinker": "^2.0",
2121
"laravel/ui": "^2.0",
22-
"livewire/livewire": "^1.3"
22+
"livewire/livewire": "^1.3",
23+
"srmklive/paypal": "~1.0"
2324
},
2425
"require-dev": {
2526
"facade/ignition": "^2.0",

composer.lock

Lines changed: 7 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

config/paypal.php

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<?php
2+
/**
3+
* PayPal Setting & API Credentials
4+
* Created by Raza Mehdi <[email protected]>.
5+
*/
6+
7+
return [
8+
'mode' => env('PAYPAL_MODE', 'sandbox'), // Can only be 'sandbox' Or 'live'. If empty or invalid, 'live' will be used.
9+
'sandbox' => [
10+
'username' => env('PAYPAL_SANDBOX_API_USERNAME', ''),
11+
'password' => env('PAYPAL_SANDBOX_API_PASSWORD', ''),
12+
'secret' => env('PAYPAL_SANDBOX_API_SECRET', ''),
13+
'certificate' => env('PAYPAL_SANDBOX_API_CERTIFICATE', ''),
14+
'app_id' => 'APP-80W284485P519543T', // Used for testing Adaptive Payments API in sandbox mode
15+
],
16+
'live' => [
17+
'username' => env('PAYPAL_LIVE_API_USERNAME', ''),
18+
'password' => env('PAYPAL_LIVE_API_PASSWORD', ''),
19+
'secret' => env('PAYPAL_LIVE_API_SECRET', ''),
20+
'certificate' => env('PAYPAL_LIVE_API_CERTIFICATE', ''),
21+
'app_id' => '', // Used for Adaptive Payments API
22+
],
23+
24+
'payment_action' => 'Sale', // Can only be 'Sale', 'Authorization' or 'Order'
25+
'currency' => env('PAYPAL_CURRENCY', 'USD'),
26+
'billing_type' => 'MerchantInitiatedBilling',
27+
'notify_url' => '', // Change this accordingly for your application.
28+
'locale' => '', // force gateway language i.e. it_IT, es_ES, en_US ... (for express checkout only)
29+
'validate_ssl' => true, // Validate SSL when creating api client.
30+
];

0 commit comments

Comments
 (0)