Forum Discussion

TeamSpirit's avatar
5 years ago

Woocommerce to myob integration with myob plugin

Hello Team,

 

please help me to solve woocommerce to myob integration issue 

 

step 1:

i was install plugin in wordpress and activate it 

step 2:

from developer tab i was generate key and secret key , i was add same instruction which provided byusing plugin help instuction

App Name: MYOB Redirect URL: https://subdomain.maindomain.com.au/wp-content/plugins/myob-integration/MYOB-cronjob.php Website address: https://subdomain.maindomain.com.au/

step 3:

then i was add key and secret in wordpress plugin then press allow access button, when i was press allow access button it redirect to "your authorised application" heading, second line Allow access to your myob Account?,  in box first line is MYOB is requesting permission to access the following from your MYOB Account 

 

two button is there 1) Allow access 2)No thanks 

 

i was click on Allow access button then after its redirecting to wordpress  MYOB-cronjob.php  

Now issue is appear

page show 

" Invalid URL for MYOB authorization. " and create link which says  " return to plugin page  " when i was click on return to plugin page its redirect to wordpres plugin page and Company File dropdown is blank , Income Account is blank , Tax Code is blank ,Freight Tax Code is blank.

 

i have myob essentials myob account

i have parchase plugin

 

please help me for solve a proble or please guide me for correct way where i was misplace , wrong way

 

 

  

 

 

  • Tana's avatar
    Tana
    MYOB Staff

    Hi there.

    Thank you for reaching out to us via the forum.

    The error "Invalid URL for MYOB authorization" suggests the URL you are using to Authorise isn't correct.

    Before clicking "Allow Access" the system should give you the option to login to your MY.MYOB account (developer registration), the URL for sending this information is:

    https://secure.myob.com/oauth2/account/authorize?client_id={{api_key}}&redirect_uri={{redirect_url}}&response_type=code&scope=CompanyFile la.global 


    After clicking "Allow Access" the system will look for your "Redirect URI" in order to navigate back to your application.
    In your setup, we may want to look at "redirect URI" header and make sure this is the correct address.




    The suport note below will take you through each step.
    https://apisupport.myob.com/hc/en-us/articles/360001459455-How-to-Complete-End-User-Authentication-with-OAuth2-0

    Also this support note shows video of the Authorisation being completed using the POSTMAN software, you may be able to reference the steps with your own app.
    https://developer.myob.com/api/accountright/accountright-postman-collection/


    If you continue to have trouble, create a support ticket using the link below and we will investigate further.
    https://developer.myob.com/contact/

    Kind regards