public class PaymentMethodCreateParams extends ApiRequestParams
Modifier and Type | Class and Description |
---|---|
static class |
PaymentMethodCreateParams.AuBecsDebit |
static class |
PaymentMethodCreateParams.BillingDetails
Add all map key/value pairs to `extraParams` map.
|
static class |
PaymentMethodCreateParams.Builder |
static class |
PaymentMethodCreateParams.CardDetails
State, county, province, or region.
|
static class |
PaymentMethodCreateParams.Fpx
Add all map key/value pairs to `extraParams` map.
|
static class |
PaymentMethodCreateParams.Ideal |
static class |
PaymentMethodCreateParams.SepaDebit |
static class |
PaymentMethodCreateParams.Token
The card number, as a string without any separators.
|
static class |
PaymentMethodCreateParams.Type
IBAN of the bank account.
|
ApiRequestParams.EnumParam
EXTRA_PARAMS_KEY
Modifier and Type | Method and Description |
---|---|
static PaymentMethodCreateParams.Builder |
builder() |
PaymentMethodCreateParams.AuBecsDebit |
getAuBecsDebit()
If this is an
au_becs_debit PaymentMethod, this hash contains details about the bank
account. |
PaymentMethodCreateParams.BillingDetails |
getBillingDetails()
Billing information associated with the PaymentMethod that may be used or required by
particular types of payment methods.
|
java.lang.Object |
getCard()
If this is a
card PaymentMethod, this hash contains the user's card details. |
java.lang.String |
getCustomer()
The
Customer to whom the original PaymentMethod is attached. |
java.util.List<java.lang.String> |
getExpand()
Specifies which fields in the response should be expanded.
|
java.util.Map<java.lang.String,java.lang.Object> |
getExtraParams()
Map of extra parameters for custom features not available in this client library.
|
PaymentMethodCreateParams.Fpx |
getFpx()
If this is an
fpx PaymentMethod, this hash contains details about the FPX payment
method. |
PaymentMethodCreateParams.Ideal |
getIdeal()
If this is an
ideal PaymentMethod, this hash contains details about the iDEAL payment
method. |
java.util.Map<java.lang.String,java.lang.String> |
getMetadata()
Set of key-value pairs that you can attach to an object.
|
java.lang.String |
getPaymentMethod()
The PaymentMethod to share.
|
PaymentMethodCreateParams.SepaDebit |
getSepaDebit()
If this is a
sepa_debit PaymentMethod, this hash contains details about the SEPA debit
bank account. |
PaymentMethodCreateParams.Type |
getType()
The type of the PaymentMethod.
|
toMap
public static PaymentMethodCreateParams.Builder builder()
public PaymentMethodCreateParams.AuBecsDebit getAuBecsDebit()
au_becs_debit
PaymentMethod, this hash contains details about the bank
account.public PaymentMethodCreateParams.BillingDetails getBillingDetails()
public java.lang.Object getCard()
card
PaymentMethod, this hash contains the user's card details. For
backwards compatibility, you can alternatively provide a Stripe token (e.g., for Apple Pay,
Amex Express Checkout, or legacy Checkout) into the card hash with format card: {token:
"tok_visa"}
. When creating with a card number, you must meet the requirements for PCI compliance. We
strongly recommend using Stripe.js instead of interacting with this API directly.public java.lang.String getCustomer()
Customer
to whom the original PaymentMethod is attached.public java.util.List<java.lang.String> getExpand()
public java.util.Map<java.lang.String,java.lang.Object> getExtraParams()
@SerializedName
value. Instead, each
key/value pair is serialized as if the key is a root-level field (serialized) name in this
param object. Effectively, this map is flattened to its parent instance.public PaymentMethodCreateParams.Fpx getFpx()
fpx
PaymentMethod, this hash contains details about the FPX payment
method.public PaymentMethodCreateParams.Ideal getIdeal()
ideal
PaymentMethod, this hash contains details about the iDEAL payment
method.public java.util.Map<java.lang.String,java.lang.String> getMetadata()
metadata
.public java.lang.String getPaymentMethod()
public PaymentMethodCreateParams.SepaDebit getSepaDebit()
sepa_debit
PaymentMethod, this hash contains details about the SEPA debit
bank account.public PaymentMethodCreateParams.Type getType()
payment_method
is specified (see the Cloning
PaymentMethods guide)