interface Result {
    deviceData?: string;
    paymentDescription?: string;
    paymentMethodNonce?: PaymentMethodNonce;
    paymentMethodType?: CdvPurchase.Braintree.DropIn.PaymentMethod;
}

Properties

deviceData?: string

A deviceData string that represents data about a customer's device.

This is generated from Braintree's advanced fraud protection service.

deviceData should be passed into server-side calls, such as Transaction.sale. This enables you to collect data about a customer's device and correlate it with a session identifier on your server.

Collecting and passing this data with transactions helps reduce decline rates and detect fraudulent transactions.

paymentDescription?: string

A description of the payment method.

  • For cards, the last four digits of the card number.
  • For PayPal, the email address associated with the account.
  • For Venmo, the username associated with the account.
  • For Apple Pay, the text "Apple Pay".
paymentMethodNonce?: PaymentMethodNonce

The previous PaymentMethodNonce or undefined if there is no previous payment method or the previous payment method was com.braintreepayments.api.GooglePayCardNonce.

The previously used PaymentMethod or undefined if there was no previous payment method. If the type is PaymentMethod#GOOGLE_PAY the Google Pay flow will need to be performed by the user again at the time of checkout, #paymentMethodNonce() will be undefined in this case.