-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #167 from Naoray/support-laravel-10
Support laravel 10
- Loading branch information
Showing
53 changed files
with
628 additions
and
463 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ vendor | |
coverage | ||
phpunit.xml | ||
.phpunit.result.cache | ||
.phpunit.cache | ||
.idea | ||
.phpstorm.meta.php | ||
.php-cs-fixer.cache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,81 +1,78 @@ | ||
{ | ||
"name": "mollie/laravel-cashier-mollie", | ||
"description": "Laravel Cashier provides an expressive, fluent interface to Mollie's subscription billing services.", | ||
"keywords": [ | ||
"mollie", | ||
"laravel", | ||
"subscriptions", | ||
"recurring", | ||
"billing", | ||
"SEPA", | ||
"Apple Pay", | ||
"credit card", | ||
"debit card", | ||
"Europe" | ||
], | ||
"homepage": "https://github.com/mollie/laravel-cashier-mollie", | ||
"license": "MIT", | ||
"authors": [ | ||
{ | ||
"name": "Mollie.com", | ||
"email": "support@mollie.com", | ||
"homepage": "https://www.mollie.com", | ||
"role": "Owner" | ||
}, | ||
{ | ||
"name": "Sander van Hooft", | ||
"email": "sander@sandorian.com", | ||
"homepage": "https://www.sandorian.com", | ||
"role": "Developer" | ||
} | ||
], | ||
"require": { | ||
"php": "^7.4|^8.0", | ||
"ext-json": "*", | ||
"ext-intl": "*", | ||
"dompdf/dompdf": "^2.0", | ||
"illuminate/database": "^8.0|^9.0", | ||
"illuminate/support": "^8.0|^9.0", | ||
"mollie/laravel-mollie": "^2.9", | ||
"mollie/mollie-api-php": "^2.27", | ||
"moneyphp/money": "^3.2|^4.0.3", | ||
"nesbot/carbon": "^2.31" | ||
}, | ||
"require-dev": { | ||
"guzzle/http": "^3.9", | ||
"guzzlehttp/guzzle": "^7.0", | ||
"laravel/legacy-factories": "^1.0", | ||
"mockery/mockery": "^1.4", | ||
"orchestra/testbench": "^6.0|^7.0", | ||
"phpunit/phpunit": "^8.5|^9.3", | ||
"vlucas/phpdotenv": "^5.2" | ||
}, | ||
"autoload": { | ||
"files": [ | ||
"src/Helpers/helpers.php" | ||
], | ||
"psr-4": { | ||
"Laravel\\Cashier\\": "src" | ||
} | ||
}, | ||
"autoload-dev": { | ||
"psr-4": { | ||
"Laravel\\Cashier\\Tests\\": "tests" | ||
} | ||
}, | ||
"extra": { | ||
"laravel": { | ||
"providers": [ | ||
"Laravel\\Cashier\\CashierServiceProvider" | ||
] | ||
} | ||
"name": "mollie/laravel-cashier-mollie", | ||
"description": "Laravel Cashier provides an expressive, fluent interface to Mollie's subscription billing services.", | ||
"keywords": [ | ||
"mollie", | ||
"laravel", | ||
"subscriptions", | ||
"recurring", | ||
"billing", | ||
"SEPA", | ||
"Apple Pay", | ||
"credit card", | ||
"debit card", | ||
"Europe" | ||
], | ||
"homepage": "https://github.com/mollie/laravel-cashier-mollie", | ||
"license": "MIT", | ||
"authors": [ | ||
{ | ||
"name": "Mollie.com", | ||
"email": "support@mollie.com", | ||
"homepage": "https://www.mollie.com", | ||
"role": "Owner" | ||
}, | ||
"config": { | ||
"sort-packages": true | ||
}, | ||
"minimum-stability": "dev", | ||
"prefer-stable": true, | ||
"scripts": { | ||
"test": "./vendor/bin/phpunit tests" | ||
{ | ||
"name": "Sander van Hooft", | ||
"email": "sander@sandorian.com", | ||
"homepage": "https://www.sandorian.com", | ||
"role": "Developer" | ||
} | ||
], | ||
"require": { | ||
"php": "^8.0", | ||
"ext-json": "*", | ||
"ext-intl": "*", | ||
"dompdf/dompdf": "^2.0", | ||
"illuminate/database": "^9.0|^10", | ||
"illuminate/support": "^9.0|^10", | ||
"mollie/laravel-mollie": "^2.22", | ||
"mollie/mollie-api-php": "^2.27", | ||
"moneyphp/money": "^4.1", | ||
"nesbot/carbon": "^2.31" | ||
}, | ||
"require-dev": { | ||
"guzzlehttp/guzzle": "^7.0", | ||
"mockery/mockery": "^1.4", | ||
"orchestra/testbench": "^7.0|^8.0", | ||
"phpunit/phpunit": "^9.5" | ||
}, | ||
"autoload": { | ||
"files": [ | ||
"src/Helpers/helpers.php" | ||
], | ||
"psr-4": { | ||
"Laravel\\Cashier\\": "src" | ||
} | ||
}, | ||
"autoload-dev": { | ||
"psr-4": { | ||
"Laravel\\Cashier\\Tests\\": "tests" | ||
} | ||
}, | ||
"extra": { | ||
"laravel": { | ||
"providers": [ | ||
"Laravel\\Cashier\\CashierServiceProvider" | ||
] | ||
} | ||
}, | ||
"config": { | ||
"sort-packages": true | ||
}, | ||
"minimum-stability": "stable", | ||
"prefer-stable": true, | ||
"scripts": { | ||
"test": "./vendor/bin/phpunit tests" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,24 @@ | ||
<?php | ||
|
||
use Illuminate\Support\Facades\Route; | ||
use Laravel\Cashier\Cashier; | ||
use Laravel\Cashier\Http\Controllers\AftercareWebhookController; | ||
use Laravel\Cashier\Http\Controllers\FirstPaymentWebhookController; | ||
use Laravel\Cashier\Http\Controllers\WebhookController; | ||
|
||
Route::namespace('\Laravel\Cashier\Http\Controllers')->group(function () { | ||
Route::name('webhooks.mollie.default')->post( | ||
Cashier::webhookUrl(), | ||
'WebhookController@handleWebhook' | ||
[WebhookController::class, 'handleWebhook'] | ||
); | ||
|
||
Route::name('webhooks.mollie.aftercare')->post( | ||
Cashier::aftercareWebhookUrl(), | ||
'AftercareWebhookController@handleWebhook' | ||
[AftercareWebhookController::class, 'handleWebhook'] | ||
); | ||
|
||
Route::name('webhooks.mollie.first_payment')->post( | ||
Cashier::firstPaymentWebhookUrl(), | ||
'FirstPaymentWebhookController@handleWebhook' | ||
[FirstPaymentWebhookController::class, 'handleWebhook'] | ||
); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.