| Field | Type | Required | Description |
|---|---|---|---|
object |
CommercePaymentMethodResponseObject | ✔️ | String representing the object's type. Objects of the same type share the same value. |
id |
String | ✔️ | Unique identifier for the payment method. |
payerId |
String | ✔️ | Unique identifier for the payer. |
paymentType |
PaymentType | ✔️ | The payment method type. |
isDefault |
Optional<Boolean> | ➖ | Whether this is the default payment method for the payer. |
gateway |
String | ✔️ | The payment gateway. |
gatewayExternalId |
String | ✔️ | External ID in the payment gateway. |
gatewayExternalAccountId |
Optional<String> | ✔️ | External account ID in the payment gateway. |
last4 |
Optional<String> | ✔️ | Last 4 digits of the card (for card payment methods). |
status |
CommercePaymentMethodResponseStatus | ✔️ | Status of the payment method. |
walletType |
JsonNullable<String> | ➖ | Type of wallet (if applicable). |
cardType |
Optional<String> | ✔️ | Type of card (if applicable). |
expiryYear |
JsonNullable<Long> | ➖ | Card expiration year (for card payment methods). |
expiryMonth |
JsonNullable<Long> | ➖ | Card expiration month (for card payment methods). |
createdAt |
Optional<Long> | ➖ | Unix timestamp (in milliseconds) when the payment method was created. |
updatedAt |
Optional<Long> | ➖ | Unix timestamp (in milliseconds) when the payment method was last updated. |
isRemovable |
Optional<Boolean> | ➖ | Whether this payment method can be removed. |