A method of payment for a customer.

PaymentMethodNonce represents the common interface of all payment method nonces, and can be handled by a server interchangeably.

interface PaymentMethodNonce {
    isDefault: boolean;
    nonce: string;
    type?: string;
}

Properties

Properties

isDefault: boolean

true if this payment method is the default for the current customer, false otherwise.

nonce: string

The nonce generated for this payment method by the Braintree gateway.

The nonce will represent this PaymentMethod for the purposes of creating transactions and other monetary actions.

type?: string

The type of the tokenized data, e.g. PayPal, Venmo, MasterCard, Visa, Amex.

(iOS Only)