juspay/hyperswitch

research(connector-errors): When should we not save a card

Open

#1599 aperta il 4 lug 2023

Vedi su GitHub
 (0 commenti) (0 reazioni) (0 assegnatari)Rust (4676 fork)batch import
A-payment-methodsC-researchhelp wanted

Metriche repository

Star
 (42.690 star)
Metriche merge PR
 (Merge medio 6g 22h) (213 PR mergiate in 30 g)

Descrizione

Currently we don't save a card when we receive an error from the connector

However This could be any error such as insufficient balance, card network down etc...

We should be saving cards if the card info is valid & it's a third party card...

However parsing this info from the connector errors is tricky.. for e.g if a payment was failed was it due to wrong card details or was it due to some other error....

We need to analyze the errors returned by connectors & find out where such knowledge/info can be extracted...

Guida contributor