Cloud Payments Documentation

Welcome to the Cloud Payments developer hub. You'll find comprehensive guides and documentation to help you start working with Cloud Payments as quickly as possible.

Get Started    API Reference

Amex Express Checkout

To add Amex Express Checkout to your ecommerce website or application:

  1. Add the Amex Express Checkout iframe and Javascript Integration to your website or application.
  2. Submit the auth_code, wallet_id, transaction_id and card_type from the request to Cloud Payments via our Credit Card Tokenization API or our Purchases API.

The Cloud Payments WooCommerce plugin has been updated to include Amex Express Checkout out of the box. For setup simply ensure you have the latest version of the plugin and then enable Amex Express Checkout from within WooCommerce Settings → Checkout → Amex Express Checkout.

Setting up your Amex Express Checkout Profile

There is nothing to do here - your merchant account is already setup with Amex Express Checkout when your Amex Internet Merchant Facility is setup in the Gateway.

Add the Amex Express Checkout Button

To display the Amex Express Checkout button within your website add the following HTML to embed the button within a transparent iframe:

<iframe src="[username]/[nonce]/[currency]/[amount]/x?tokenize_only=true&amp;postmessage=true"
  style="position:relative; margin-top: -20px; top: 15px;">

Within the iframe src attribute, replace the following values:



Your Cloud Payments gateway username


A unique ID or reference for the checkout or session


The 3-letter currency code for the transaction


The total amount for the transaction

Add the Javascript

Once a customer completes the Amex Express Checkout process a message will be returned to the webpage hosting the iframe with the parameters required by the Gateway to complete the transaction. The following Javascript will receive this message and inject the values into a form to be submitted to your website:

jQuery(function() {
  jQuery(window).on('message onmessage', function(e) {
    var payment =;
    var form = jQuery('#checkout-form');
    // Display 'loading' indicator here
    for(var key in payment) {
      form.append("<input type='hidden' name='" + key + "' value='" + payment[key] + "' />");


Submit the auth_code, wallet_id, transaction_id and card_type to Cloud Payments for Tokenization of Purchase Transactions

Once you have received a successful Amex Express Checkout from the Javascript Integration there are two methods of making use of the Payment Details:

  • Tokenize the card details for checkout workflows such as requiring confirmation or calculation of shipping costs based on the address details returned from Amex Express Checkout
  • Perform a purchase with the credentials for workflows which do no need the shipping details before determining the final value of the transaction (e.g. digital products without shipping, access to online services etc)

Both options use the standard Cloud Payments Gateway API for Purchases and Credit Cards, however instead of providing card details (card holder, card number, expiry date, security code) a wallet payload is included in the request as seen below (credit card request):

  "wallet": {
    "type": "AMEX",
    "auth_code": "08d9cba9-5b51-4b60-8139-af1117a4be8d",
    "transaction_id": "746af2a72d31e5f6cc8f14c68452b8c3",
    "wallet_id": "01",
    "card_type": "AMEX"

For both a Credit Card and Purchase request a wallet payload will be included in the response which includes:

  • email address
  • first and last name
  • address
    • line 1
    • line 2
    • city
    • state
    • postcode
    • phone number
  • card source reference (the Amex Express Checkout transaction_id)

An example response from tokenizing a credit card with a Amex Express Checkout credentials can be seen below:

  "successful": true,
  "response": {
    "token": "95p4npi2",
    "card_holder": "John Smith",
    "card_number": "376070XXXXX1008",
    "card_expiry": "2018-12-31T23:59:59+11:00",
    "card_type": "AMEX",
    "card_category": "Credit",
    "card_subcategory": "Credit",
    "authorized": true,
    "transaction_count": 0,
    "alias": null,
    "wallet": {
      "name": {
        "first": "John",
        "last": "Smith"
      "address": {
        "line_1": "50 Martin Place",
        "line_2": "2nd Floor",
        "city": "Sydney",
        "state": "NSW",
        "postcode": "2000",
        "country": "AU",
        "phone": "61282231111"
      "email": "",
      "card_source_reference": "746af2a72d31e5f6cc8f14c68452b8c3"
  "errors": [],
  "test": true

For more details on creating purchases using the Amex Express Checkout credentials please see the Create a purchase, with a wallet document. If the merchant needs to retrieve the customers details prior to performing a transaction a tokenization request can be made in stead of a purchase request. For more details please see Tokenization with Wallet.

Further Help

If you require any further assistance with your Amex Express Checkout integration please contact Cloud Payments Support with your questions and we will be more then happy to assist or provide guidance where possible.

Amex Express Checkout

Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.