Class PaymentMethod
Represents a credit card or a bank account.
Implements
Inherited Members
Namespace: EasyPost.Models.API
Assembly: EasyPost.dll
Syntax
public class PaymentMethod : EasyPostObject, IEasyPostObject
Properties
| Improve this Doc View SourceBankName
The name of the bank associated with the payment method. This is only available for bank accounts.
Declaration
public string? BankName { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<System.String> |
Brand
The brand of the credit card stored in the payment method. This is only available for credit cards.
Declaration
public string? Brand { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<System.String> |
Country
The country of the bank associated with the payment method. This is only available for bank accounts.
Declaration
public string? Country { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<System.String> |
DisabledAt
When the payment method was last disabled.
Declaration
public string? DisabledAt { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<System.String> |
ExpMonth
The expiration month of the credit card stored in the payment method. This is only available for credit cards.
Declaration
public int? ExpMonth { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<System.Int32> |
ExpYear
The expiration year of the credit card stored in the payment method. This is only available for credit cards.
Declaration
public int? ExpYear { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<System.Int32> |
Last4
The last 4 digits of the credit card or bank account stored in the payment method.
Declaration
public string? Last4 { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<System.String> |
Name
The name on the credit card stored in the payment method. This is only available for credit cards.
Declaration
public string? Name { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<System.String> |
RequiresMandateCollection
Whether the payment method requires mandate collection or not.
Declaration
public bool? RequiresMandateCollection { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<System.Boolean> |
Type
Gets what type of payment method this is (credit card, bank account, etc.)
Declaration
public PaymentMethodType Type { get; }
Property Value
| Type | Description |
|---|---|
| PaymentMethodType |
Verified
Whether the bank account in the payment method has been verified. This is only available for bank accounts.
Declaration
public bool? Verified { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<System.Boolean> |