Integration
Last updated
Last updated
In order to offer international checkout to your buyers, Glopal will have to interact with a cart during a customer’s session. This is the main integration point. This section describes what are the possible ways to do a cart transfer so international checkout can be initiated.
Shopify, Bigcommerce, Magento - those are platforms that Glopal offers plugins for. This fast and easy integration supports a cart transfer by default and you don’t have to do any bespoke development.
If for any reason, there is a failure in the data from merchant cart to Glopal checkout, the customer will be redirected to the merchant's domestic checkout to complete their order.
If your platform is not among the listed platforms supported through the plugin, Glopal offers an easy-to-use Checkout API that you can use to transfer the buyer’s cart and redirect the buyer to the Glopal Checkout.
Integration with Glopal Checkout API should happen on the server-side. In the checkout funnel, you can decide the appropriate step when a buyer should be redirected to the Glopal Checkout to complete the purchase. Checkout API expects to receive information about the buyer's cart content and a checkout experience (country, language, currency) to be presented. In the successful response, API returns URL to redirect buyer into Glopal Checkout.
Glopal will share with you a secret API key for authentication.
Checkout will be presented to the visitor in the French language, with USD price converted to EUR and localized in the "calculated prices" mode according to predefined price localization rules.
If the total cost calculation feature is activated, duties and taxes will be calculated and charged on top of the items (and shipping method price). Note that total cost calculation may require additional data attributes or pre-existing integration/setup.
If the above options are unsuitable for your needs, you can expose the cart content in a machine-readable form so that Glopal will facilitate the cart transfer from the localized site.
Your platform must support a public endpoint that can be fetched in the session scope (passing a set of HTTP cookies) exposing cart information with enough details to allow cart transfer to the international checkout.
Cart content should contain the list of items that have been added to the cart, including:
product name
SKU
price and quantity
discount amounts
Glopal will then facilitate mapping the cart response into the Checkout API, as presented above. Please see the Checkout API description for more information on expected fields and values.
The response should be signed for integrity and authentication.
The response may be encrypted for confidentiality unless information included in the response (product, price, cart quantity) is not already public to the visitor and is not confidential.
Accepts cart content, returning checkout 'id' and 'cart_url' where buyer should be redirected to complete the checkout
Cart transfer content
"mystore"
Link used for return back from the checkout.
"https://mystore.com"
Success response
"908dac6c-c9cd-4f0e-8a16-9916a5176845"
Url to redirect a buyer for completing the checkout. Note that this is not a resource, but a temporary redirection url that can expire. Caller is not supposed to store, parse or modify the url. Destination host and path may change without a notice.
"https://mystore.glopal.com/fr-FR/api/cart/redirect/0068af0ae088778c94fc992576d8f"