CardHolder Name

Hi there,

We are trying to obtain the "cardHoldername" key from the "Payment Data Keys" - https://developer.apple.com/library/content/documentation/PassKit/Reference/PaymentTokenJSON/PaymentTokenJSON.html#//apple_ref/doc/uid/TP40014929-CH8

The application receives and decrypts the "paymentData" successfuly but the "cardHoldername" is not present. The decrypted JSON (below) :

{
“applicationPrimaryAccountNumber”=>”[FILTERED]”, “applicationExpirationDate”=>”231231", "currencyCode"=>"840", 
"transactionAmount"=>5500, "deviceManufacturerIdentifier"=>"040010030273", "paymentDataType"=>"3DSecure",
 "paymentData"=>{"onlinePaymentCryptogram"=>"AlDFpJgAGixq3OKgsKGqMAABAAA=", "eciIndicator"=>"7"}
}

We've tried adding the requiredBillingContactFields: [‘postalAddress’, ‘name’, ‘phone’,’email’] to the ApplePaySession request, there were no changes - no "cardHoldername" was included in the "paymentData".


Any help appreciated,


Thank you

emil marcetta

If you scroll down the page you linked, the table describing the entries lists this:

"Optional. Cardholder name."

for the cardholderName entry.


You can't force the field to be present.

CardHolder Name
 
 
Q