This guide will help you set up your Magento 2 integration on SureDone.


Step 1 - Get SureDone ready for Magento 2 and create a Magento 2 instance:


  1. Navigate to the plugin section in Settings > Plugins
  2. Select Magento 2





Step 2 - Get Magento 2 ready for Suredone


Create a SureDone integration on Magento 2

  1. Navigate to the Integrations page from your Magento 2 admin dashboard:




    2. In the side bar of your Magento 2 Admin Dashboard, select System > Integrations to get to the integrations pageand press the Add New Integration button.


Configure the integration

  1. Under the Integration Info section
    1. Name your integration (e.g. SureDone Integration 1)
    2. Email not required
    3. Callback URL: https://app.suredone.com/oauth/magentotwo
    4. Identity Link URL: https://app.suredone.com/oauth/magentotwo
    5. Password: your admin password. This doesn't set a password for the integration, this is just to authorize the creation of the integration.



        2. Under the API section select All from the Resource Access drop down.


        

        3. Save and let it take you back to the integrations page.



Step 3 - Hook them up!

Activate your SureDone integration

  1. On the integrations page, find your new SureDone integration. It should have the value Inactive under the status column.
  2. Disable popup blockers for this page.
  3. Click Activate and then Allow. If you have a pop up blocker, Magento 2 will ask that you disable it at this point
  4. If you aren't logged into SureDone, a pop up will appear prompting you to log into SureDone. Log in.
  5. Select the Magento Instance that you want to authorize on SureDone. Usually this will be the one you created at the start. After submitting, you can close this pop up.
  6. If it was succesfully authorized, the status column will say Active and the link to activate will read Reauthorize.




Single Product Editor


Product URL Key


The product URL key is the user facing slug. It can be manually set by entering a custom URL key in the appropriate Product URL Key field. If no custom URL key is provided, then we would mimic Magento 2's behavior and use the Title field to generate the URL Key. A preview of this key is visible through the UI. This preview is not clickable since at the time of editing it does not necessarily reflect the current product status or product URL. The SKU field will be the clickable link that takes you to the product page.




Orders


Importing Orders

For importing orders, you would need to make sure you would specify the statuses that you want to pull in from your Magento 2 server in the plugin settings Sync on Order Status field. This includes any custom order statuses you may have introduced to your workflow. e.g. pending*processing*complete will pull in all pending, processing or complete orders from Magento 2 that have appeared after your last sync time. In addition to the normal flow for importing orders, imported orders will set the following fields [1]

  • paymentstatus: COMPLETE
  • paymentdate: <current local time>
  • status: READY