What Is My Google Callback URL?

A Google Checkout callback URL is a website address located on your server that handles XML messages from Google. The feature must be enabled via your Google Checkout account while your server must be properly set up to accept these callbacks. The callback feature is part of the Google Checkout Application Programming Interface, which lets you thoroughly integrate the service into your existing or new e-commerce website.

  1. Set Up Your Server

    • To get Google Checkout notification and callbacks, you must set your server to use Secure Socket Layer or Transport Layer Security encryption protocol by using a security certificate. A security certificate is necessary to protect the consumer shopping on your e-commerce website. As well, your accepted messages to the server should only be authenticated with HTTP Basic Authentication.

    Notification Response

    • Google Checkout requires that the callback URL and your server respond via an HTTP response. It must come in the form of a notification-acknowledgment message, which looks similar to this:

      <?xml version="1.0" encoding="UTF-8"?>
      <notification-acknowledgment xmlns="http://checkout.google.com/schema/2" />

    Access and Parse Data

    • Google Checkout posts a notification message to your server after receiving the notification-acknowledgment message. This second message contains all the relevant data about the buyer's order. Your server needs to access and parse the raw POST data sent back from Google. If the data is in binary format, then your server must first convert it to string format before it's parsed.

    Enabling Callback URL

    • To enable and set the callback URL, go to your Google Checkout Merchant account at checkout.google.com/sell and log in. Go to the "Settings" tab and click the "Integration" option. Type the full callback URL you set up on your server in the "API Callback URL" field. Click the "Save" button to enable the callback feature.

Related Searches:

References

Resources

Comments

Related Ads

Featured