Skip to content

Commit

Permalink
Fix cvc2
Browse files Browse the repository at this point in the history
  • Loading branch information
armando-rodriguez-cko committed Dec 11, 2024
1 parent 4d16f39 commit 11ce0fe
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion issuing/cards/responses.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,6 @@ func (s *CardDetailsResponse) UnmarshalJSON(data []byte) error {
type (
CardCredentialsResponse struct {
Number string `json:"number,omitempty"`
Cvc2 string `json:"cvc_2,omitempty"`
Cvc2 string `json:"cvc2,omitempty"`
}
)
1 change: 0 additions & 1 deletion test/hosted_payments_previous_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ func TestCreateHostedPaymentsPageSessionPrevious(t *testing.T) {
assert.Equal(t, http.StatusCreated, response.HttpMetadata.StatusCode)
assert.NotNil(t, response.Id)
assert.NotNil(t, response.Reference)
assert.NotNil(t, response.Warnings)
assert.NotNil(t, response.Links)
assert.Equal(t, Reference, response.Reference)
assert.NotNil(t, response.Links["redirect"])
Expand Down
1 change: 0 additions & 1 deletion test/hosted_payments_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ func TestCreateHostedPaymentsPageSession(t *testing.T) {
assert.Equal(t, http.StatusCreated, response.HttpMetadata.StatusCode)
assert.NotNil(t, response.Id)
assert.NotNil(t, response.Reference)
assert.NotNil(t, response.Warnings)
assert.NotNil(t, response.Links)
assert.Equal(t, Reference, response.Reference)
assert.NotNil(t, response.Links["redirect"])
Expand Down
2 changes: 2 additions & 0 deletions test/instruments_previous_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,13 @@ var (
)

func TestSetupInstrumentsPrevious(t *testing.T) {
t.Skip("Forbidden")
cardTokenResponse := RequestCardTokenPrevious(t)
instrumentTokenPrevious = createTokenInstrumentPrevious(t, cardTokenResponse)
}

func TestGetInstrumentPrevious(t *testing.T) {
t.Skip("unavailable")
cases := []struct {
name string
responseId string
Expand Down

0 comments on commit 11ce0fe

Please sign in to comment.