Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F117766442
D5628.1775232595.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
875 B
Referenced Files
None
Subscribers
None
D5628.1775232595.diff
View Options
diff --git a/src/app/Providers/Payment/Mollie.php b/src/app/Providers/Payment/Mollie.php
--- a/src/app/Providers/Payment/Mollie.php
+++ b/src/app/Providers/Payment/Mollie.php
@@ -624,6 +624,22 @@
return $availableMethods;
}
+ /**
+ * Returns the full URL used when returning from the Mollie checkout page (e.g. the wallet page).
+ * Depending on the request origin it will return a URL for the User or Reseller UI.
+ * For some mobile clients it will return a special scheme URL.
+ */
+ public static function redirectUrl(): string
+ {
+ $user_agent = strtolower((string) \request()->headers->get('User-Agent'));
+
+ if (str_contains($user_agent, 'aphyaccount-app')) {
+ return 'aphy-app://payment-return';
+ }
+
+ return parent::redirectUrl();
+ }
+
/**
* Get a payment.
*
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Apr 3, 4:09 PM (20 h, 50 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
18824665
Default Alt Text
D5628.1775232595.diff (875 B)
Attached To
Mode
D5628: Support special Mollie checkout redirect URL for mobile apps
Attached
Detach File
Event Timeline