LogoLogo
v3.3.x
v3.3.x
  • Introduction
  • Prerequisites
  • Trust1Connector JS SDK
  • Changelog
  • Core
    • Concept
    • Quick-Migration Guide
    • Integration in Web Applications
    • Core Service
    • Consent
    • Status codes / error handeling
    • Configuration
    • Authenticated client
    • Downloading latest Trust1Connector
  • Miscellaneous
    • Troubleshooting
    • Installation FAQ
  • Token
    • Token typing models
    • Generic token
    • Belgian eID
    • Aventra MyEID PKI
    • Idemia Cosmo One v8.2
    • Oberthur Cosmo One v7.3
    • Diplad (BeLawyer)
    • Chambersign
    • Certigna
    • Jcop3
    • Airbus
  • Payment
    • Payment typing models
    • EMV
    • Crelan
  • FIle
    • File exchange
  • HSM
    • Remote loading
  • PKCS11
    • PKCS11 Keystore
    • PKCS11 Objects
Powered by GitBook
On this page
  • Introduction
  • Models

Was this helpful?

Export as PDF
  1. Payment

Payment typing models

Sample code uses ES6 language features such as arrow functions and promises. For compatibility with IE11, code written with these features must be either transpiled using tools like Babel or refactored accordingly using callbacks.

Introduction

This page describes all generic payment models used.

Models

export class PaymentModuleDescriptionResponse extends DataObjectResponse {
  constructor(public data: PaymentModuleDescription, public success: boolean) {
    super(data, success);
  }
}

export class PaymentModuleDescription {
  constructor(
      public desc: string
  ) {}
}


export class PaymentVerifyPinResponse extends DataObjectResponse {
  constructor(public data: PaymentVerifyPinResponseData, public success: boolean) {
    super(data, success);
  }
}

export class PaymentVerifyPinResponseData {
  constructor(
      public verified: boolean
  ) {}
}

export class PaymentReadData {
  constructor(
      public applications: Array<PaymentApplication>,
  ) {}
}

export class PaymentApplication {
  constructor(
      public aid?: string,
      public name?: string,
      public priority?: number,
  ) {}
}


export class PaymentReadDataResponse extends DataObjectResponse {
  constructor(public data: PaymentReadData, public success: boolean) {
    super(data, success);
  }
}

export class PaymentReadApplicationData {
  constructor(
      public country?: string,
      public countryCode?: string,
      public effectiveDate?: string,
      public expirationDate?: string,
      public language?: string,
      public name?: string,
      public pan?: string,
  ) {}
}

export class PaymentReadApplicationDataResponse extends DataObjectResponse {
  constructor(public data: PaymentReadApplicationData, public success: boolean) {
    super(data, success);
  }
}

export class PaymentSignResponseData {
  constructor(public success: boolean, public data?: string, public cardSignature?: string, public readerSignature?: string) {
  }
}

export class PaymentSignResponse {
  constructor(public data: PaymentSignResponseData, public success: boolean) {}
}

PreviousAirbusNextEMV

Last updated 4 years ago

Was this helpful?