juspay/hyperswitch

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

开放

#1,599 创建于 2023年7月4日

 (0 条评论) (0 个反应) (0 位负责人)Rust (4,676 个派生)batch import
A-payment-methodsC-researchhelp wanted

仓库指标

星标
 (42,690 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

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...

贡献者指南