Class: DatacapGooglePay

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

Methods

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

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