Skip to content

ApplePay tokenInformation is XML-mapped incorrectly #196

@maxim

Description

@maxim

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`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions