Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(payment): errors balance #754

Merged
merged 1 commit into from
Dec 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions docs/payment/payment-how-to-use-api-to-approve-a-payment.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,15 @@ Num exemplo, essa será a nossa resposta:
}
}
```

## Saldo insuficiente ao aprovar pagamentos via API
Ao tentar realizar a aprovação de um pagamento via API e estiver sem saldo será retornado o seguinte erro:

```ts
{
"error": "Você não possui saldo o suficiente para realizar esse pagamento"
}
```

Na plataforma o pagamento continuará com o status solicitado sendo possível realizar a aprovação do mesmo quando houver saldo suficiente.

8 changes: 8 additions & 0 deletions docs/payment/payment-how-to-use.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,11 @@ Para realizar Pagamentos em sua empresa siga os passos abaixo:
- Clique em `Aprovar`

![approve payment](/img/payment/approve-payment.png)

## Saldo insuficiente ao aprovar pagamentos via Plataforma
Ao tentar realizar a aprovação de um pagamento via plataforma e estiver sem saldo o modal será exibido com a seguinte informação:

![Modal de aprovação de pagamentos com a informação de saldo insuficiente](__assets__/payment-how-to-use-modal-without-balance.png)

Na plataforma o pagamento continuará com o status solicitado sendo possível realizar a aprovação do mesmo quando houver saldo suficiente.

4 changes: 0 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -8105,10 +8105,6 @@ postcss@^8.3.11, postcss@^8.4.13, postcss@^8.4.14, postcss@^8.4.7:
version "8.4.16"
resolved "https://registry.yarnpkg.com/postcss/-/postcss-8.4.16.tgz#33a1d675fac39941f5f445db0de4db2b6e01d43c"
integrity sha512-ipHE1XBvKzm5xI7hiHCZJCSugxvsdq2mPnsq5+UF+VHCjiBvtDrlxJfMBToWaP9D5XlgNmcFGqoHmUn0EYEaRQ==
dependencies:
nanoid "^3.3.4"
picocolors "^1.0.0"
source-map-js "^1.0.2"

preact@^10.0.0:
version "10.10.2"
Expand Down