Page MenuHomePhorge

D5628.1775232595.diff
No OneTemporary

Authored By
Unknown
Size
875 B
Referenced Files
None
Subscribers
None

D5628.1775232595.diff

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

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)

Event Timeline