Installation and configuration
Set up HAQM Pay for FoxyCart
Associate your HAQM Pay account with FoxyCart on the Get Started with HAQM Pay page.
To associate your HAQM Pay account with Foxycart:
- Click the Get Started button to begin the guided registration process.
- Create or sign in to your HAQM Pay account on Seller Central.
- Create a Login with HAQM profile:
- The Business Name and Application Description are shown when buyers sign in on your site.
- The Privacy Policy URL is required and should link to a page on your site that describes your privacy policy.
- The Allowed login domains should be the secure URL that the checkout will be served from (for example: http://mystore.foxycart.com).
- Check the consent box to allow FoxyCart to make API calls on your account.
- Click I Agree to submit your consent.
Set up your HAQM Pay credentials in FoxyCart
- Sign in to the FoxyCart admin page.
- In a new tab, click Settings > Payment.
- Scroll down the page and check the Accept payments using your HAQM account check box.
- Note the Seller ID, Client ID and MWS Auth Token fields. The next few steps show how to populate these fields using values from your HAQM Pay account in Seller Central.
- Sign in to your Seller Central account.
- Select HAQM Pay (Production View) from the Marketplace Switcher drop-down box at the top of the screen.
Note: If you have reduced the size of your browser window, the Marketplace Switcher may appear as a double-arrow icon. - In the main menu, choose Integration > MWS Access Key.
- Copy your Seller ID from Seller Central to the Seller ID field on the FoxyCart admin configuration page.
- Copy your Client ID from Seller Central to the Client ID field on the FoxyCart admin configuration page.
- Verify that your solution provider in Seller Central is listed as FoxyCart.
- In Seller Central, in MWS Account Information, click the Show Secret button under Secret Access Key. Copy your MWS Secret Access Key to the MWS Auth Token field on the FoxyCart admin configuration page.
Set up the Instant Payment Notifications Settings
Important: This step must be completed for your HAQM Pay account. Without it, transactions may fail to complete correctly.
The Instant Payment Notification (IPN) settings feature allows FoxyCart to be informed about any delayed payment status changes that may occur at HAQM.
To add this setting:
- Sign in to your Seller Central account.
- Select HAQM Pay (Production View) from the Marketplace Switcher drop-down box at the top of the screen.
Note: If you have reduced the size of your browser window, the Marketplace Switcher may appear as a double-arrow icon. - Click Integration Settings under Settings in the main menu.
- Enter one of the following for the Integrator URL setting:
- http://FOXYCART-STORE-DOMAIN/ipn.php.
- If your FoxyCart store domain is foxycart.com, your IPN URL is http://mystore.foxycart.com/ipn.php
- If you have a custom SSL subdomain for your store (for example, mystore.com), your IPN URL is http://secure.mystore.com/ipn.php.
Whitelist your FoxyCart domain
By default, web browsers block JavaScript calls from one origin that attempt to call a script on another origin. To use FoxyCart to make calls on your behalf, you must add your FoxyCart checkout domain to your HAQM Pay account.
- Sign in to your Seller Central account.
- Select Login with HAQM from the Marketplace Switcher dropdown at the top of the page.
- From the Applications section on the left side of the page, select your store.
- Under the Web Settings section, click the Edit button.
- Add your FoxyCart checkout domain.
For example, if your checkout is at http://yourstore.foxycart.com/checkout, the value for Allowed JavaScript Origins would be http://yourstore.foxycart.com/. - Add each domain used by your site under Allowed Javascript Origins by clicking Add Another.
Test HAQM Pay and Login with HAQM in FoxyCart
The HAQM Pay Sandbox mode enables you to thoroughly test HAQM Pay in FoxyCart before going live. When you test in Sandbox mode, you can simulate the buyer experience as they navigate through the HAQM Pay widgets on your website.
You can also simulate error conditions that help you to better manage your buyer's experience in the event that something goes wrong during the checkout experience. For example, you can test what happens when shipping addresses that violate your company's business rules are used.
To use the Sandbox mode, you need to set up an HAQM Pay Sandbox account. For more information see the Creating test accounts in Seller Central for HAQM Pay video.