UNPKG

pcp-server-nodejs-sdk

Version:

[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=PAYONE-GmbH_PCP-server-nodeJS-SDK&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=PAYONE-GmbH_PCP-server-nodeJS-SDK) [![Coverage](https://sonarcloud.io/api/pr

47 lines (46 loc) 2.54 kB
import type { ApplePayPaymentDataHeader } from './ApplePayPaymentDataHeader.js'; /** * An object that contains the user's payment credentials. * You access the payment token of an authorized payment request using the token property of the ApplePayPayment object. */ export interface ApplePayPaymentData { /** * A base64 encoded string that contains custom data with the following structure: * * Payment Data Keys: * The decrypted payment data in the `data` value contains the following keys and values: * * - **applicationPrimaryAccountNumber** (string): Device-specific account number of the card that funds this transaction. * - **applicationExpirationDate** (string, date as a string): Card expiration date in the format YYMMDD. * - **currencyCode** (string): ISO 4217 numeric currency code, as a string to preserve leading zeros. * - **transactionAmount** (number): Transaction amount. * - **cardholderName** (string, optional): Cardholder name. * - **deviceManufacturerIdentifier** (string): Hex-encoded device manufacturer identifier. * - **paymentDataType** (string): Either "3DSecure" or "EMV". * - **paymentData** (dictionary): Detailed payment data; see Detailed Payment Data Keys (3D Secure) and Detailed Payment Data Keys (EMV). * - **authenticationResponses** (list): For a multitoken request, a list of submerchant responses that contain cryptograms. * - **merchantTokenIdentifier** (string): For a merchant token request, the provisioned merchant token identifier from the payment network. * - **merchantTokenMetadata** (MerchantTokenMetadata): For a merchant token request, this data contains card art and the token's last four digits and expiration date. * * The encoded string must be decoded and parsed according to the expected structure to access the individual values. * */ data?: string; /** * Additional version-dependent information you use to decrypt and verify the payment */ header?: ApplePayPaymentDataHeader; /** * detached PKCS #7 signature, Base64 encoded as a string. * Signature of the payment and header data. * The signature includes the signing certificate, its intermediate CA certificate, and information about the signing algorithm. * */ signature?: string; /** * Version information about the payment token * The token uses EC_v1 for ECC-encrypted data and RSA_v1 for RSA-encrypted data. * */ version?: string; }