public class PaymentMethodCreateParams extends ApiRequestParams
Modifier and Type | Class and Description |
---|---|
static class |
PaymentMethodCreateParams.Alipay |
static class |
PaymentMethodCreateParams.AuBecsDebit
Add all map key/value pairs to `extraParams` map.
|
static class |
PaymentMethodCreateParams.BacsDebit
Add all map key/value pairs to `extraParams` map.
|
static class |
PaymentMethodCreateParams.Bancontact
Sort code of the bank account.
|
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.Eps
Add all map key/value pairs to `extraParams` map.
|
static class |
PaymentMethodCreateParams.Fpx
Add all map key/value pairs to `extraParams` map.
|
static class |
PaymentMethodCreateParams.Giropay |
static class |
PaymentMethodCreateParams.Ideal
Add all map key/value pairs to `extraParams` map.
|
static class |
PaymentMethodCreateParams.InteracPresent |
static class |
PaymentMethodCreateParams.Oxxo
Add all map key/value pairs to `extraParams` map.
|
static class |
PaymentMethodCreateParams.P24
Add all map key/value pairs to `extraParams` map.
|
static class |
PaymentMethodCreateParams.SepaDebit |
static class |
PaymentMethodCreateParams.Sofort
IBAN of the bank account.
|
static class |
PaymentMethodCreateParams.Token
The card number, as a string without any separators.
|
static class |
PaymentMethodCreateParams.Type |
ApiRequestParams.EnumParam
EXTRA_PARAMS_KEY
Modifier and Type | Method and Description |
---|---|
static PaymentMethodCreateParams.Builder |
builder() |
PaymentMethodCreateParams.Alipay |
getAlipay()
If this is an
Alipay PaymentMethod, this hash contains details about the Alipay payment
method. |
PaymentMethodCreateParams.AuBecsDebit |
getAuBecsDebit()
If this is an
au_becs_debit PaymentMethod, this hash contains details about the bank
account. |
PaymentMethodCreateParams.BacsDebit |
getBacsDebit()
If this is a
bacs_debit PaymentMethod, this hash contains details about the Bacs Direct
Debit bank account. |
PaymentMethodCreateParams.Bancontact |
getBancontact()
If this is a
bancontact PaymentMethod, this hash contains details about the Bancontact
payment method. |
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. |
PaymentMethodCreateParams.Eps |
getEps()
If this is an
eps PaymentMethod, this hash contains details about the EPS payment
method. |
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.Giropay |
getGiropay()
If this is a
giropay PaymentMethod, this hash contains details about the Giropay
payment method. |
PaymentMethodCreateParams.Ideal |
getIdeal()
If this is an
ideal PaymentMethod, this hash contains details about the iDEAL payment
method. |
PaymentMethodCreateParams.InteracPresent |
getInteracPresent()
If this is an
interac_present PaymentMethod, this hash contains details about the
Interac Present payment method. |
java.util.Map<java.lang.String,java.lang.String> |
getMetadata()
Set of key-value pairs that you can attach
to an object.
|
PaymentMethodCreateParams.Oxxo |
getOxxo()
If this is an
oxxo PaymentMethod, this hash contains details about the OXXO payment
method. |
PaymentMethodCreateParams.P24 |
getP24()
If this is a
p24 PaymentMethod, this hash contains details about the P24 payment
method. |
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.Sofort |
getSofort()
If this is a
sofort PaymentMethod, this hash contains details about the SOFORT payment
method. |
PaymentMethodCreateParams.Type |
getType()
The type of the PaymentMethod.
|
toMap
public static PaymentMethodCreateParams.Builder builder()
public PaymentMethodCreateParams.Alipay getAlipay()
Alipay
PaymentMethod, this hash contains details about the Alipay payment
method.public PaymentMethodCreateParams.AuBecsDebit getAuBecsDebit()
au_becs_debit
PaymentMethod, this hash contains details about the bank
account.public PaymentMethodCreateParams.BacsDebit getBacsDebit()
bacs_debit
PaymentMethod, this hash contains details about the Bacs Direct
Debit bank account.public PaymentMethodCreateParams.Bancontact getBancontact()
bancontact
PaymentMethod, this hash contains details about the Bancontact
payment method.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 providing 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 PaymentMethodCreateParams.Eps getEps()
eps
PaymentMethod, this hash contains details about the EPS payment
method.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.Giropay getGiropay()
giropay
PaymentMethod, this hash contains details about the Giropay
payment method.public PaymentMethodCreateParams.Ideal getIdeal()
ideal
PaymentMethod, this hash contains details about the iDEAL payment
method.public PaymentMethodCreateParams.InteracPresent getInteracPresent()
interac_present
PaymentMethod, this hash contains details about the
Interac Present payment method.public java.util.Map<java.lang.String,java.lang.String> getMetadata()
metadata
.public PaymentMethodCreateParams.Oxxo getOxxo()
oxxo
PaymentMethod, this hash contains details about the OXXO payment
method.public PaymentMethodCreateParams.P24 getP24()
p24
PaymentMethod, this hash contains details about the P24 payment
method.public java.lang.String getPaymentMethod()
public PaymentMethodCreateParams.SepaDebit getSepaDebit()
sepa_debit
PaymentMethod, this hash contains details about the SEPA debit
bank account.public PaymentMethodCreateParams.Sofort getSofort()
sofort
PaymentMethod, this hash contains details about the SOFORT payment
method.public PaymentMethodCreateParams.Type getType()