Show / Hide Table of Contents

Class PaymentMethod

Represents a credit card or a bank account.

Inheritance
System.Object
EphemeralEasyPostObject
EasyPostObject
PaymentMethod
Implements
IEasyPostObject
Inherited Members
EasyPostObject.CreatedAt
EasyPostObject.Id
EasyPostObject.UpdatedAt
EasyPostObject.Prefix
EasyPostObject.AsDictionary()
EasyPostObject.ToString()
EasyPostObject.Equals(Nullable<Object>)
EasyPostObject.GetHashCode()
EphemeralEasyPostObject.Mode
EphemeralEasyPostObject.AsJson()
Namespace: EasyPost.Models.API
Assembly: EasyPost.dll
Syntax
public class PaymentMethod : EasyPostObject, IEasyPostObject

Properties

| Improve this Doc View Source

BankName

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>
| Improve this Doc View Source

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>
| Improve this Doc View Source

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>
| Improve this Doc View Source

DisabledAt

When the payment method was last disabled.

Declaration
public string? DisabledAt { get; set; }
Property Value
Type Description
System.Nullable<System.String>
| Improve this Doc View Source

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>
| Improve this Doc View Source

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>
| Improve this Doc View Source

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>
| Improve this Doc View Source

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>
| Improve this Doc View Source

RequiresMandateCollection

Whether the payment method requires mandate collection or not.

Declaration
public bool? RequiresMandateCollection { get; set; }
Property Value
Type Description
System.Nullable<System.Boolean>
| Improve this Doc View Source

Type

Gets what type of payment method this is (credit card, bank account, etc.)

Declaration
public PaymentMethodType Type { get; }
Property Value
Type Description
PaymentMethodType
| Improve this Doc View Source

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>

Implements

IEasyPostObject
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX