Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion _define.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
'Paypal integration', //Short description
'Johan Cwiklinski', //Author
'2.2.0', //Version
'1.2.0', //Galette compatible version
'1.2.1', //Galette compatible version
'paypal', //routing name and translation domain
'2025-10-09', //Release date
[ //Permissions needed
Expand Down
6 changes: 2 additions & 4 deletions lib/GalettePaypal/Controllers/PaypalController.php
Original file line number Diff line number Diff line change
Expand Up @@ -434,8 +434,7 @@ public function notify(Request $request, Response $response): Response

//all goes well, we can proceed
if ($real_contrib) {
$store = false;
$valid = $contrib->check($post, [], []);
$valid = $contrib->setNoCheckLogin()->check($post, [], []);
if ($valid !== true) {
Analog::log(
'An error occurred while storing a new contribution from Paypal payment:'
Expand All @@ -446,8 +445,7 @@ public function notify(Request $request, Response $response): Response
return $response->withStatus(500, 'Internal error');
}

$store = $contrib->store();
if ($store === true) {
if ($contrib->store()) {
//contribution has been stored :)
Analog::log(
'Paypal payment has been successfully registered as a contribution',
Expand Down
2 changes: 1 addition & 1 deletion lib/GalettePaypal/PluginGalettePaypal.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ public static function getDashboardsContents(): array
global $preferences;
$contents = [];

if ($preferences->showPublicPages($login)) {
if ($preferences->showPublicPage($login, 'pref_publicpages_visibility_generic')) {
$contents[] = [
'label' => _T("Payment form", "paypal"),
'route' => [
Expand Down