Payment variables

You can include information about payments made through Apple Pay in messages that you send to users. You need to access the data through the variables set in the Payment interaction because this information is not held in the session. There are five variables:
Variable Purpose
Payment data variable For the payment data used in the Apple Pay payment requests. Set on the Details page of the Payment interaction.

For a full list of the variables that could be in the payment data, see JSON format for payment data (Apple Pay).

paymentMethodUpdate_<number> For payment method updates from Apple Pay. Set on the Advanced tab of the Payment interaction. Use this to get the user's final payment method.
shippingContactUpdate_<number> For shipping contact updates from Apple Pay. Set on the Advanced tab of the Payment interaction. Use this to get the shipping contact details as entered by the user.
shippingMethodUpdate_<number> For shipping method updates from Apple Pay. Set on the Advanced tab of the Payment interaction. Use this to get the user's chosen shipping method.
orderTrackingUrl_<number> For the final payment details from Apple Pay. Set on the Advanced tab of the Payment interaction. Use this to get the final payment details, such as the summary items.
Note: Alternatively this data may be available through a different variable. This depends on how the order tracking URL action is designed.

Accessing initial payment data

For example if the Payment data variable is called customerPayment then you could access initial payment values like this:

  • {customerPayment.total.amount} – the total amount to pay
  • {customerPayment.currencyCode} – the currency of the transaction

Accessing final payment data

For example to get details of the final shipping method selected by the customer then you could use the following:

{shippingMethodUpdate_c9e379b0-5d17-11e9-a418-a306dcc20dd2.shippingMethod.detail}