code-corps / code-corps/code-corps-api

API does not handle card / charge errors

Offen
#551 2 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Elixir
Sterne
234
Forks
82
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

# Problem

We have just a match error for card declines right now. We should provide a more appropriate response to the user since there's no error handling specific to the card being declined at all.

```elixir
no match of right hand side value: {:error, %Stripe.APIErrorResponse{code: "card_declined", message: "Your card was declined.", status_code: 402, type: "card_error"}}
```

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.