[ Web Proxy ]
URL:
Viewing: https://developer.squareup.com/reference/sdks/web/payments/objects/ChargeCardVerificationDetails [Back]  [Original]

ChargeCardVerificationDetails Object - Square Web Payments SDK Reference

#
ChargeCardVerificationDetails

The verification details parameter, passed to the card.tokenize() function, for cases in which the buyer is being charged.

Properties

#
amount string

The total cost of the purchase given as a string representation float with decimal places representing the lowest denominations of the currency. This follows the W3 Payment Request API standard - https://www.w3.org/TR/payment-request/#dfn-valid-decimal-monetary-value

For example, a total of "10" is represented as "10.00" or "10" for currencies with fractional denominations (such as USD), while the total is represented as "10" in currencies without fractional denominations, such as JPY.

#
billingContact BillingContact

Contact information for the buyer.

#
currencyCode string

3-letter ISO 4217 currency code.

#
customerInitiated boolean

Indicates whether the customer initiated the payment.

#
intent "CHARGE" | "CHARGE_AND_STORE"

Transactional intent of the payment.

#
sellerKeyedIn boolean

Indicates that the seller keyed in payment details on behalf of the customer. This is used to flag a payment as Mail Order / Telephone Order (MOTO).

chargeCardVerificationDetails.js
JS
JavaScript
Copy

const verificationDetails = {

  amount: '1.00',

  currencyCode: 'GBP',

  intent: 'CHARGE',

  billingContact: {

    givenName: 'John',

    familyName: 'Doe',

    email: '[email protected]',

    phone: '3214563987',

    addressLines: ['123 Main Street', 'Apartment 1'],

    city: 'London',

    state: 'LND',

    countryCode: 'GB',

    postalCode: 'WC2N 5DU',

  },

  customerInitiated: true,

  sellerKeyedIn: false,

};

Web Proxy Viewer  |  New URL  |  Original Page