Lack of interest Allow callback base URL to be set in src/config.php

This suggestion has been closed automatically because it did not receive enough votes over an extended period of time. If you wish to see this, please search for an open suggestion and, if you don't find any, post a new one.

Jake B.

Well-known member
Going to resurrect this suggestion I made on the xf2demo board during developer previews. Basically, suggestion is to change:

PHP:
public function getCallbackUrl()
{
   return \XF::app()->options()->boardUrl . '/payment_callback.php?_xfProvider=' . $this->providerId;
}

to something along the lines of:

PHP:
public function getCallbackUrl()
{
    return (!empty(\XF::config('paymentCallbackBaseUrl')) ? \XF::config('paymentCallbackBaseUrl') : \XF::app()->options()->boardUrl) . '/payment_callback.php?_xfProvider=' . $this->providerId;
}

This will allow me to set:

Code:
$config['paymentCallbackBaseUrl'] = 'https://mysubdomain.ngrok.io/xf21';

without actually being redirected to my ngrok subdomain, getting logged out, and exceeding my request limit while testing payment processes :)
 
Upvote 2
This suggestion has been closed. Votes are no longer accepted.
Back
Top Bottom