Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F117752327
D5028.1775188872.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
616 B
Referenced Files
None
Subscribers
None
D5028.1775188872.diff
View Options
diff --git a/src/app/Http/Controllers/API/V4/PaymentsController.php b/src/app/Http/Controllers/API/V4/PaymentsController.php
--- a/src/app/Http/Controllers/API/V4/PaymentsController.php
+++ b/src/app/Http/Controllers/API/V4/PaymentsController.php
@@ -393,6 +393,10 @@
if (empty($mandate['isValid'])) {
\Log::warning("Top-up for wallet {$wallet->id}: mandate invalid");
+ if ($mandate['isPending'] !== true) {
+ \Log::warning("Disabling mandate");
+ $wallet->setSetting('mandate_disabled', '1');
+ }
return false;
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Apr 3, 4:01 AM (16 h, 38 m ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
18822509
Default Alt Text
D5028.1775188872.diff (616 B)
Attached To
Mode
D5028: Disable the mandate if we retrieve a valid one
Attached
Detach File
Event Timeline