feat(async_refund): add sync feature to async refund (#93)

This commit is contained in:
Nishant Joshi
2022-12-12 12:46:04 +05:30
committed by GitHub
parent affa9fc35a
commit ea219dc893
6 changed files with 179 additions and 67 deletions

View File

@ -60,7 +60,12 @@ pub(crate) async fn refund_retrieve(
&req,
refund_id,
|state, merchant_account, refund_id| {
refunds::refund_retrieve_core(state, merchant_account, refund_id)
refunds::refund_response_wrapper(
state,
merchant_account,
refund_id,
refunds::refund_retrieve_core,
)
},
api::MerchantAuthentication::ApiKey,
)