0

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?

  1. PHP Laravel 5 web application.
  2. Public application.
  3. URL is changed for each account. (Eg:- http://dissanayaka2344.drilltracker.com/ , http://demov3.drilltracker.com/)
  4. Need to connect with Xero.
  5. How I provide callback URL.
RamenChef
  • 5,557
  • 11
  • 31
  • 43
Charith Amila
  • 65
  • 1
  • 9

1 Answers1

0

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" );

Kelly
  • 76
  • 1
  • 8