From b667be33fe1856742de163621451627ab3a2514e Mon Sep 17 00:00:00 2001 From: Nathaniel Allred Date: Mon, 20 Sep 2021 14:39:15 -0500 Subject: [PATCH] Last 4 credit card digits as a string (#17996) --- model/cloud.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/model/cloud.go b/model/cloud.go index ffd85a2a55..5c396dc9b7 100644 --- a/model/cloud.go +++ b/model/cloud.go @@ -104,7 +104,7 @@ type Address struct { // PaymentMethod represents methods of payment for a customer. type PaymentMethod struct { Type string `json:"type"` - LastFour int `json:"last_four"` + LastFour string `json:"last_four"` ExpMonth int `json:"exp_month"` ExpYear int `json:"exp_year"` CardBrand string `json:"card_brand"` @@ -169,7 +169,7 @@ type CWSWebhookPayload struct { type FailedPayment struct { CardBrand string `json:"card_brand"` - LastFour int `json:"last_four"` + LastFour string `json:"last_four"` FailureMessage string `json:"failure_message"` }