fix(processors): enforce the documented amount limits, and Klarna's tax_rate

Open
#329 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
48/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
typescript
Domain
backend

Research direction

Start with docs/reference/limitations.md and the existing processor tests, which the issue says include provider documentation quotes. Check how those tests cover Checkout.com amount limits and PayPal signs, then inspect the Klarna processor for the tax_rate conversion in both directions. Done means the documented rules are enforced, the API shape for Checkout.com zero amounts and PayPal sign handling is decided, and tests include provider documentation quotes.

Written by the indexing model from the issue text.

Description

area: core

From docs/reference/limitations.md (Alex, 2026-11-13: worth doing soon).

  • Checkout.com: amounts greater than zero and at most nine digits (the docs), with 0 allowed only where the API allows it (card verification): decide the API shape
  • PayPal: the sign. The text says amounts are positive and the schema allows a minus sign; decide and enforce
  • Klarna: a tax_rate helper (a percentage with two implicit decimals: 2000 = 20%), both ways, exact
  • each with a quote from the provider's docs in the test, as the existing processor tests have
Dominant language
TypeScript
Stars
0
Forks
0
Avg merge
35m
Merged PRs (30d)
242

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from public/ducat

All issues in public/ducat

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.