I have developed php laravel 5 web application. I need to connect with XERO account software. this application is public application. further domain is change with each account. Use sub domain for each application. How do I set callback URL?
Assuming you are using the Xero recommended PHP files from here:
https://github.com/XeroAPI/XeroOAuth-PHP/blob/master/public.php
You need to amend the following constant accordingly:
define ( "OAUTH_CALLBACK", 'http://localhost/XeroOAuth-PHP/public.php' );
Something like:
define ( "OAUTH_CALLBACK", "http://". $subdomain . "drilltracker.com" );