public class PayPalAccountBuilder extends PaymentMethodBuilder<PayPalAccountBuilder>
OPERATION_NAME_KEY, OPTIONS_KEY| Constructor and Description |
|---|
PayPalAccountBuilder() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
build(org.json.JSONObject base,
org.json.JSONObject paymentMethodNonceJson) |
protected void |
buildGraphQL(android.content.Context context,
org.json.JSONObject base,
org.json.JSONObject input) |
PayPalAccountBuilder |
clientMetadataId(java.lang.String clientMetadataId)
Used by PayPal wrappers to construct a request to create a PayPal account.
|
java.lang.String |
getApiPath() |
java.lang.String |
getResponsePaymentMethodType() |
PayPalAccountBuilder |
intent(java.lang.String intent)
Used by PayPal wrappers to construct a request to create a PayPal account.
|
PayPalAccountBuilder |
merchantAccountId(java.lang.String merchantAccountId)
Used to set a non-default merchant account id.
|
PayPalAccountBuilder |
oneTouchCoreData(org.json.JSONObject otcData)
Used by PayPal wrappers to construct a request to create a PayPal account.
|
build, buildGraphQL, getDefaultIntegration, getDefaultSource, integration, setSessionId, source, validate, writeToParcelpublic PayPalAccountBuilder clientMetadataId(java.lang.String clientMetadataId)
clientMetadataId - Application clientMetadataId created by
com.paypal.android.sdk.onetouch.core.PayPalOneTouchCore#getClientMetadataId(Context).PayPalAccountBuilderpublic PayPalAccountBuilder oneTouchCoreData(org.json.JSONObject otcData)
otcData - The data provided by OneTouchCore.PayPalAccountBuilderpublic PayPalAccountBuilder intent(java.lang.String intent)
intent - Can be either PayPalRequest.INTENT_AUTHORIZE or PayPalRequest.INTENT_SALE.PayPalAccountBuilderpublic PayPalAccountBuilder merchantAccountId(java.lang.String merchantAccountId)
merchantAccountId - String merchant account idPayPalAccountBuilderprotected void build(org.json.JSONObject base,
org.json.JSONObject paymentMethodNonceJson)
throws org.json.JSONException
build in class PaymentMethodBuilder<PayPalAccountBuilder>org.json.JSONExceptionprotected void buildGraphQL(android.content.Context context,
org.json.JSONObject base,
org.json.JSONObject input)
buildGraphQL in class PaymentMethodBuilder<PayPalAccountBuilder>public java.lang.String getApiPath()
getApiPath in class PaymentMethodBuilder<PayPalAccountBuilder>public java.lang.String getResponsePaymentMethodType()
getResponsePaymentMethodType in class PaymentMethodBuilder<PayPalAccountBuilder>