Class: DatacapApplePay

Type Definitions

DatacapToken

Type:
object
Properties:
Name Type Description
Token String Token of user-entered account data.
Brand String Card brand of account represented by token.
ExpirationMonth String Expiration month of account represented by token.
ExpirationYear String Expiration year of account represented by token.
Last4 String Last four digits of account represented by token
Customer Object Details of Apple Pay customer
  FirstName String Customer first name.
  LastName String Customer last name.
  Address Array Array of strings containing street address lines.
  City String Customer city.
  State String Customer state.
  Zip String Customer zip code.
  Phone String Customer phone number.
  Email String Customer email address.

Methods

(static) init(callbackFunction, tokenKey, merchantName, applePayMerchantID, amount) → {DatacapToken}

Display the Apple Pay button and wait for a Datacap Token.
Parameters:
Name Type Description
callbackFunction function Then function which to call with Apple Pay tokenization results.
tokenKey String A Datacap token key.
merchantName String The name of the merchant to display on the Apple Pay sheet.
applePayMerchantID String Apple Pay Merchant Identifier provided by Datacap upon boarding.
amount String The amount to display on the Apple Pay sheet.
Returns:
A DatacapToken object containing the token properties of the tokenized Apple Pay card.
Type
DatacapToken