In GetTransactionDetails, when receiving transaction -> payment -> tokenInformation (when using Apple Pay) it's supposed to have fields as follows:
<tokenInformation>
<tokenSource>Apple Payments</tokenSource>
<tokenNumber>XXXX1234</tokenNumber>
<expirationDate>XXXX</expirationDate>
</tokenInformation>
Authorize server returns it correctly.
The problem is, this Ruby SDK parses it wrong, resulting in a plain string:
puts response.transaction.payment.tokenInformation
"Apple PaymentsXXXX1234XXXX"
It seems that you forgot to specify the type for tokenInformation in your PaymentMaskedType.
class PaymentMaskedType
include ROXML
xml_accessor :creditCard, as: CreditCardMaskedType
xml_accessor :bankAccount, as: BankAccountMaskedType
xml_accessor :tokenInformation # <-- it should say `as: TokenMaskedType`
In
GetTransactionDetails, when receiving transaction -> payment ->tokenInformation(when using Apple Pay) it's supposed to have fields as follows:Authorize server returns it correctly.
The problem is, this Ruby SDK parses it wrong, resulting in a plain string:
It seems that you forgot to specify the type for
tokenInformationin yourPaymentMaskedType.