Below content is applicable to both Atomic and AX2:
Cybersource expects payment information from Apple Pay to be encoded using a Base 64 encoding. Using a different encoding will cause the requests to error.
In the response from Apple, integrators should read in the entire content of the paymentData object, encode this using a Base 64 encoding and send the result in the apple_pay.encrypted_payment_data field in the call to APEXX.
N.B. Integrators must be using the CSR downloaded from the Cybersource Business Centre associated with their merchant ID in order for Cybersource to properly decrypt the payload.
{
"organisation":"org_id",
"currency":"GBP",
"amount":1000,
"capture_now":false,
"merchant_reference":"mref",
"apple_pay":{
"encrypted_payment_data":"Base64Encoded_paymentData",
"ephemeral_public_key":"public_key",
"applepay_transaction_id":"txn_id"
}
}
This in turn populates the paymentInformation.fluidData.value field in the request to Cybersource.