java.lang.Object | |
↳ | com.google.android.gms.wallet.PaymentMethodTokenizationParameters.Builder |
Builder to create a PaymentMethodTokenizationParameters
.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Adds tokenization specific parameters.
| |||||||||||
Sets payment method tokenization type.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Adds tokenization specific parameters.
This method is useful when in addition to tokenization type integrator needs to use custom options.
For example when integrator wants to use Stripe for tokenization the following parameters should be used:
Gateway name (lowercase): name: "gateway" value: "stripe" Stripe publishable key: name: "stripe:publishableKey" value: "pk_..." Stripe SDK version: name: "stripe:version" value: "version of Stripe SDK used by the integrator's app" Sample configuration: PaymentMethodTokenizationParameters parameters = PaymentMethodTokenizationParameters.newBuilder() .setPaymentMethodTokenizationType( PaymentMethodTokenizationType.PAYMENT_GATEWAY) .addParameter("gateway", "stripe") .addParameter("stripe:publishableKey", "pk_1234") .addParameter("stripe:version", "1.5") .buid();
Parameters | |
---|---|
name |
String :
the name of the parameter |
value |
String :
the value of the parameter |
Returns | |
---|---|
PaymentMethodTokenizationParameters.Builder |
Throws | |
---|---|
|
IllegalArgumentException} when either name or value is empty |
Sets payment method tokenization type. See PaymentMethodTokenizationType
for suported
tokenization types.
Parameters | |
---|---|
tokenizationType |
int
|
Returns | |
---|---|
PaymentMethodTokenizationParameters.Builder |