Jake B.
Well-known member
Going to resurrect this suggestion I made on the xf2demo board during developer previews. Basically, suggestion is to change:
to something along the lines of:
This will allow me to set:
without actually being redirected to my ngrok subdomain, getting logged out, and exceeding my request limit while testing payment processes
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