Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Instructions

  1. Set up a Redirect URL and Notification URL on your application

  2. Configure Square Terminal in the Backend

  3. Set up Pusher Sockets

...

1. Set up a Redirect URL and Notification URL on your application

Before configuring Square Terminal in the Backend, you need to set up a Redirect URL and Notification URL on your application.

  • Redirect URL

    The redirect URL is the endpoint for your application or web page that processes the seller authorization response and manages the seller’s OAuth tokens. You need to add this URL to your application using the Developer Dashboard.

    To set up the redirect URL, go to the Developer Dashboard, choose Open for your application, in the left pane, choose OAuth. In the Redirect URL box, enter the URL that redirects the seller authorization to your application, then choose Save (or you can get the redirect URL quickly by copying the redirect URL that is auto-generated by your domain into the Guide section of Square Terminal in the Backend page, then paste it to the Redirect URL box.

  • Notification URL

Applications need at least one reachable notification URL to receive and process webhook events from Square. Notification URLs are specified on the Webhooks page of your application in the Developer Dashboard.

To set up a notification URL, you need to define an endpoint that will direct webhook event notifications to your application by going to the Webhooks page of your application in the Developer Dashboard, click on the Subscriptions Add subscriptions button, on the Subscriptions popup, enter your notification URL into the URL box (or you can get the notification URL quickly by copying the notification URL that is auto-generated by your domain into the Guide section of Square Terminal in the Backend page then paste it to the URL box).

...