mirror of
				https://github.com/juspay/hyperswitch.git
				synced 2025-10-31 18:17:13 +08:00 
			
		
		
		
	feat(compatibility): add mandates support in stripe compatibility (#897)
Co-authored-by: Sahkal Poddar <sahkal.poddar@juspay.in> Co-authored-by: Sarthak Soni <sarthak.soni@juspay.in> Co-authored-by: Sarthak Soni <76486416+Sarthak1799@users.noreply.github.com> Co-authored-by: Abhishek Marrivagu <abhi.codes10@gmail.com>
This commit is contained in:
		| @ -30,8 +30,6 @@ pub async fn construct_refund_router_data<'a, F>( | ||||
|     refund: &'a storage::Refund, | ||||
|     creds_identifier: Option<String>, | ||||
| ) -> RouterResult<types::RefundsRouterData<F>> { | ||||
|     let db = &*state.store; | ||||
|  | ||||
|     let connector_label = helpers::get_connector_label( | ||||
|         payment_intent.business_country, | ||||
|         &payment_intent.business_label, | ||||
| @ -40,7 +38,7 @@ pub async fn construct_refund_router_data<'a, F>( | ||||
|     ); | ||||
|  | ||||
|     let merchant_connector_account = helpers::get_merchant_connector_account( | ||||
|         db, | ||||
|         state, | ||||
|         merchant_account.merchant_id.as_str(), | ||||
|         &connector_label, | ||||
|         creds_identifier, | ||||
| @ -234,7 +232,6 @@ pub async fn construct_accept_dispute_router_data<'a>( | ||||
|     merchant_account: &storage::MerchantAccount, | ||||
|     dispute: &storage::Dispute, | ||||
| ) -> RouterResult<types::AcceptDisputeRouterData> { | ||||
|     let db = &*state.store; | ||||
|     let connector_id = &dispute.connector; | ||||
|     let connector_label = helpers::get_connector_label( | ||||
|         payment_intent.business_country, | ||||
| @ -243,7 +240,7 @@ pub async fn construct_accept_dispute_router_data<'a>( | ||||
|         connector_id, | ||||
|     ); | ||||
|     let merchant_connector_account = helpers::get_merchant_connector_account( | ||||
|         db, | ||||
|         state, | ||||
|         merchant_account.merchant_id.as_str(), | ||||
|         &connector_label, | ||||
|         None, | ||||
| @ -296,7 +293,6 @@ pub async fn construct_submit_evidence_router_data<'a>( | ||||
|     dispute: &storage::Dispute, | ||||
|     submit_evidence_request_data: types::SubmitEvidenceRequestData, | ||||
| ) -> RouterResult<types::SubmitEvidenceRouterData> { | ||||
|     let db = &*state.store; | ||||
|     let connector_id = &dispute.connector; | ||||
|     let connector_label = helpers::get_connector_label( | ||||
|         payment_intent.business_country, | ||||
| @ -305,7 +301,7 @@ pub async fn construct_submit_evidence_router_data<'a>( | ||||
|         connector_id, | ||||
|     ); | ||||
|     let merchant_connector_account = helpers::get_merchant_connector_account( | ||||
|         db, | ||||
|         state, | ||||
|         merchant_account.merchant_id.as_str(), | ||||
|         &connector_label, | ||||
|         None, | ||||
| @ -356,7 +352,6 @@ pub async fn construct_upload_file_router_data<'a>( | ||||
|     connector_id: &str, | ||||
|     file_key: String, | ||||
| ) -> RouterResult<types::UploadFileRouterData> { | ||||
|     let db = &*state.store; | ||||
|     let connector_label = helpers::get_connector_label( | ||||
|         payment_intent.business_country, | ||||
|         &payment_intent.business_label, | ||||
| @ -364,7 +359,7 @@ pub async fn construct_upload_file_router_data<'a>( | ||||
|         connector_id, | ||||
|     ); | ||||
|     let merchant_connector_account = helpers::get_merchant_connector_account( | ||||
|         db, | ||||
|         state, | ||||
|         merchant_account.merchant_id.as_str(), | ||||
|         &connector_label, | ||||
|         None, | ||||
| @ -418,7 +413,7 @@ pub async fn construct_defend_dispute_router_data<'a>( | ||||
|     merchant_account: &storage::MerchantAccount, | ||||
|     dispute: &storage::Dispute, | ||||
| ) -> RouterResult<types::DefendDisputeRouterData> { | ||||
|     let db = &*state.store; | ||||
|     let _db = &*state.store; | ||||
|     let connector_id = &dispute.connector; | ||||
|     let connector_label = helpers::get_connector_label( | ||||
|         payment_intent.business_country, | ||||
| @ -427,7 +422,7 @@ pub async fn construct_defend_dispute_router_data<'a>( | ||||
|         connector_id, | ||||
|     ); | ||||
|     let merchant_connector_account = helpers::get_merchant_connector_account( | ||||
|         db, | ||||
|         state, | ||||
|         merchant_account.merchant_id.as_str(), | ||||
|         &connector_label, | ||||
|         None, | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Sahkal Poddar
					Sahkal Poddar