feat(processors): Alipay, WeChat Pay, Razorpay and PayPay amount views

Aperta
#166 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
42/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
typescript
Ambito
payments

Direzione di ricerca

Start from the existing Stripe and Adyen processor views in the repository and copy their structure for each new processor. Each view needs a to* and from* pair with the same rounding behaviour, and the processor documentation quotes belong in the tests. Done when all four processors have passing tests that check their documented amount formats.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

area: core

Processor views like the Stripe and Adyen ones, built from each processor's own API documentation:

  • Alipay: total_amount as a yuan decimal string with two decimals, and its range limits
  • WeChat Pay: amount.total as an integer in fen (分), CNY only for most merchant types
  • Razorpay: integer amounts in the currency's smallest unit (paise), with its per-currency exceptions
  • PayPay: integer yen
  • to* and from* for each, exact, with the same rounding rules as the existing processor views, and the docs quotes in the tests
Lingua principale
TypeScript
Stelle
0
Fork
0
Merge medio
35m
PR unite (30g)
242

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di public/ducat

Tutte le issue di public/ducat

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.