Skip to content
This repository has been archived by the owner on Feb 4, 2024. It is now read-only.

Commit

Permalink
Merge pull request #2216 from cgdsoftware/fix/paypal-implementation
Browse files Browse the repository at this point in the history
Paypal implementatioin
  • Loading branch information
curtisdelicata authored Feb 9, 2023
2 parents 19fdc3b + d9150da commit 65dd1e1
Show file tree
Hide file tree
Showing 3 changed files with 100 additions and 9 deletions.
15 changes: 8 additions & 7 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,6 @@
"php": ">=8.1.0",
"cgdprojects/laravel-gedcom": "^3.4",
"cgdprojects/laravel-gelato": "^1.0",
"constantable/laravel-scout-sphinx": "^2.7",
"doctrine/dbal": "^3.1",
"familytree365/recordsapi": "dev-master",
"flowgistics/laravel-xml": "^1.1",
"fruitcake/laravel-cors": "^3.0",
"guzzlehttp/guzzle": "^7.2",
"cgdsoftware/calendar": "^3.0",
"cgdsoftware/comments": "^4.0",
"cgdsoftware/control-panel-api": "^3.0",
Expand All @@ -25,7 +19,13 @@
"cgdsoftware/tasks": "^2.0",
"cgdsoftware/teams": "^4.0",
"cgdsoftware/tutorials": "^5.0",
"laravel/cashier": "^14.0",
"constantable/laravel-scout-sphinx": "^2.7",
"doctrine/dbal": "^3.1",
"familytree365/recordsapi": "dev-master",
"flowgistics/laravel-xml": "^1.1",
"fruitcake/laravel-cors": "^3.0",
"guzzlehttp/guzzle": "^7.2",
"laravel/cashier": "^14.7",
"laravel/horizon": "^5.0",
"laravel/octane": "^1.2",
"laravel/sanctum": "^2.14.1",
Expand All @@ -37,6 +37,7 @@
"predis/predis": "^2.0",
"sentry/sentry-laravel": "^2.0.0",
"spatie/laravel-ray": "^1.26",
"srmklive/paypal": "^3.0",
"stancl/tenancy": "^3.5",
"symfony/http-client": "^6.0",
"symfony/mailgun-mailer": "^6.0"
Expand Down
69 changes: 67 additions & 2 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

25 changes: 25 additions & 0 deletions config/paypal.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?php
/**
* PayPal Setting & API Credentials
* Created by Raza Mehdi <srmk@outlook.com>.
*/

return [
'mode' => env('PAYPAL_MODE', 'sandbox'), // Can only be 'sandbox' Or 'live'. If empty or invalid, 'live' will be used.
'sandbox' => [
'client_id' => env('PAYPAL_SANDBOX_CLIENT_ID', ''),
'client_secret' => env('PAYPAL_SANDBOX_CLIENT_SECRET', ''),
'app_id' => 'APP-80W284485P519543T',
],
'live' => [
'client_id' => env('PAYPAL_LIVE_CLIENT_ID', ''),
'client_secret' => env('PAYPAL_LIVE_CLIENT_SECRET', ''),
'app_id' => env('PAYPAL_LIVE_APP_ID', ''),
],

'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.
'locale' => env('PAYPAL_LOCALE', 'en_US'), // force gateway language i.e. it_IT, es_ES, en_US ... (for express checkout only)
'validate_ssl' => env('PAYPAL_VALIDATE_SSL', true), // Validate SSL when creating api client.
];

0 comments on commit 65dd1e1

Please sign in to comment.