feat(core): added multiple payment_attempt support for payment_intent (#439)

Co-authored-by: Nishant Joshi <nishant.joshi@juspay.in>
This commit is contained in:
Abhishek
2023-03-30 23:49:51 +05:30
committed by GitHub
parent 4d1013c611
commit 35d3e27724
29 changed files with 374 additions and 509 deletions

View File

@ -214,9 +214,9 @@ async fn get_payment_attempt_from_object_reference_id(
.await
.change_context(errors::WebhooksFlowError::ResourceNotFound),
api::ObjectReferenceId::PaymentId(api::PaymentIdType::PaymentAttemptId(ref id)) => db
.find_payment_attempt_by_merchant_id_attempt_id(
&merchant_account.merchant_id,
.find_payment_attempt_by_attempt_id_merchant_id(
id,
&merchant_account.merchant_id,
merchant_account.storage_scheme,
)
.await