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

API does not handle card / charge errors

Open
#551 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Elixir
Stars
234
Forks
82
PR merge metrics
No merged PRs in 30d

Description

# 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"}}
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.