public class PaymentMethod
PaymentMethod
objects represent your customer's payment instruments. They can be used
with class PaymentIntent
s to collect payments, or saved to Customer objects to store instrument
details for future payments.
For more information, see the official Stripe docs: Payment methods Attach payment method
Use of this SDK is subject to the Stripe Terminal Terms: https://stripe.com/terminal/legal
class PaymentIntent
,
Payment methods,
Attach payment methodModifier and Type | Method and Description |
---|---|
java.lang.String |
component1()
Unique identifier for the object.
|
CardDetails |
component3()
A
|
java.lang.String |
component5()
The ID of the Customer to which this
|
boolean |
component6()
Has the value
|
java.util.Map<java.lang.String,java.lang.String> |
component7()
Return any metadata that was attached to this PaymentMethod upon creation
|
PaymentMethod |
copy(java.lang.String id,
java.lang.String objectType,
CardDetails cardDetails,
long created,
java.lang.String customer,
boolean livemode,
java.util.Map<java.lang.String,java.lang.String> metadata,
java.lang.String type)
PaymentMethod objects represent your customer's payment instruments. They can be used
with class PaymentIntent s to collect payments, or saved to Customer objects to store instrument
details for future payments. |
boolean |
equals(java.lang.Object p) |
CardDetails |
getCardDetails()
A
|
java.lang.String |
getCustomer()
The ID of the Customer to which this
|
java.lang.String |
getId()
Unique identifier for the object.
|
boolean |
getLivemode()
Has the value
|
java.util.Map<java.lang.String,java.lang.String> |
getMetadata()
Return any metadata that was attached to this PaymentMethod upon creation
|
int |
hashCode() |
java.lang.String |
toString() |
@NotNull public java.lang.String getId()
Unique identifier for the object.
@Nullable public CardDetails getCardDetails()
A
class CardDetails
object containing more details about the payment method
class CardDetails
@Nullable public java.lang.String getCustomer()
The ID of the Customer to which this
class PaymentMethod
is saved. This will not be set when theclass PaymentMethod
has not been saved to a Customer.
class PaymentMethod
,
class PaymentMethod
public boolean getLivemode()
Has the value
true
if the object exists in live mode or the value false
if the objectexists in test mode.
@Nullable public java.util.Map<java.lang.String,java.lang.String> getMetadata()
Return any metadata that was attached to this PaymentMethod upon creation
@NotNull public java.lang.String component1()
Unique identifier for the object.
@Nullable public CardDetails component3()
A
class CardDetails
object containing more details about the payment method
class CardDetails
@Nullable public java.lang.String component5()
The ID of the Customer to which this
class PaymentMethod
is saved. This will not be set when theclass PaymentMethod
has not been saved to a Customer.
class PaymentMethod
,
class PaymentMethod
public boolean component6()
Has the value
true
if the object exists in live mode or the value false
if the objectexists in test mode.
@Nullable public java.util.Map<java.lang.String,java.lang.String> component7()
Return any metadata that was attached to this PaymentMethod upon creation
@NotNull public PaymentMethod copy(@NotNull java.lang.String id, @Nullable java.lang.String objectType, @Nullable CardDetails cardDetails, long created, @Nullable java.lang.String customer, boolean livemode, @Nullable java.util.Map<java.lang.String,java.lang.String> metadata, @Nullable java.lang.String type)
PaymentMethod
objects represent your customer's payment instruments. They can be used
with class PaymentIntent
s to collect payments, or saved to Customer objects to store instrument
details for future payments.
For more information, see the official Stripe docs: Payment methods Attach payment method
Use of this SDK is subject to the Stripe Terminal Terms: https://stripe.com/terminal/legal
class PaymentIntent
,
Payment methods,
Attach payment method@NotNull public java.lang.String toString()
public int hashCode()
public boolean equals(@Nullable java.lang.Object p)