Optional
deviceOptional
paymentA description of the payment method.
Optional
paymentThe previous PaymentMethodNonce or undefined
if there is no previous payment method
or the previous payment method was com.braintreepayments.api.GooglePayCardNonce.
Optional
paymentThe 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.
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 asTransaction.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.