sora-xor / sora-card

Designing a Better World Through Decentralized Technologies
4 stars 1 forks source link

Make application and retry fees dynamically fetched #90

Closed Tieumsan closed 11 months ago

Tieumsan commented 1 year ago

Problem Statement

The fee to pay for the KYC application to get the card might change over the product lifecycle. If we have a value hard-coded on all the client applications, this might bring inconsistencies and misunderstanding the next time we update the application fee (€).

Solution

Rather than relying on hard-coded values, it would make sense to enable to fetch the application fee from the backend.

Requirements

Backend

Client Applications

See data structures in backend task and documentation.

Alexey-N-Chernyshov commented 1 year ago

Added endpoint /fees that returns: {"application_fee":"29","retry_fee":"3.80"}