public class DropInResult
extends java.lang.Object
implements android.os.Parcelable
DropInActivity or calling
fetchDropInResult(AppCompatActivity, String, DropInResultListener).| Modifier and Type | Class and Description |
|---|---|
static interface |
DropInResult.DropInResultListener
Listener used with
fetchDropInResult(AppCompatActivity, String, DropInResultListener) |
| Modifier and Type | Field and Description |
|---|---|
static android.os.Parcelable.Creator<DropInResult> |
CREATOR |
static java.lang.String |
EXTRA_DROP_IN_RESULT
The key used to return
DropInResult in an Intent in
AppCompatActivity#onActivityResult(int, int, Intent) |
| Modifier | Constructor and Description |
|---|---|
|
DropInResult() |
protected |
DropInResult(android.os.Parcel in) |
| Modifier and Type | Method and Description |
|---|---|
int |
describeContents() |
static void |
fetchDropInResult(AppCompatActivity activity,
java.lang.String clientToken,
DropInResult.DropInResultListener listener)
Called to get a user's existing payment method, if any.
|
java.lang.String |
getDeviceData() |
PaymentMethodNonce |
getPaymentMethodNonce() |
PaymentMethodType |
getPaymentMethodType() |
void |
writeToParcel(android.os.Parcel dest,
int flags) |
public static final java.lang.String EXTRA_DROP_IN_RESULT
DropInResult in an Intent in
AppCompatActivity#onActivityResult(int, int, Intent)public static final android.os.Parcelable.Creator<DropInResult> CREATOR
public DropInResult()
protected DropInResult(android.os.Parcel in)
public PaymentMethodType getPaymentMethodType()
PaymentMethodType or null if there was no
previous payment method. If the type is PaymentMethodType.GOOGLE_PAYMENT the Android
Pay flow will need to be performed by the user again at the time of checkout,
getPaymentMethodNonce() will return null in this case.public PaymentMethodNonce getPaymentMethodNonce()
PaymentMethodNonce or null if there is no previous
payment method or the previous payment method was
com.braintreepayments.api.models.GooglePaymentCardNonce.public java.lang.String getDeviceData()
String of device data. Returned when specified with
DropInRequest.collectDeviceData(boolean) that device data should be collected.public static void fetchDropInResult(AppCompatActivity activity,
java.lang.String clientToken,
DropInResult.DropInResultListener listener)
activity - the current AppCompatActivityclientToken - A client token from your server. Note that this method will only return a
result if the client token contains a customer id.listener - The DropInResult.DropInResultListener to handle the error or DropInResult
response.public int describeContents()
describeContents in interface android.os.Parcelablepublic void writeToParcel(android.os.Parcel dest,
int flags)
writeToParcel in interface android.os.Parcelable