mirror of
				https://github.com/juspay/hyperswitch.git
				synced 2025-11-04 05:59:48 +08:00 
			
		
		
		
	feat(payment_charges): add support for collecting and refunding charges on payments (#4628)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com> Co-authored-by: Narayan Bhat <48803246+Narayanbhat166@users.noreply.github.com> Co-authored-by: Shankar Singh C <83439957+ShankarSinghC@users.noreply.github.com> Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: YongJoon Kim <penubokim@gmail.com> Co-authored-by: Sanchith Hegde <22217505+SanchithHegde@users.noreply.github.com> Co-authored-by: chikke srujan <121822803+srujanchikke@users.noreply.github.com> Co-authored-by: Hrithikesh <61539176+hrithikesh026@users.noreply.github.com> Co-authored-by: Chethan Rao <70657455+Chethan-rao@users.noreply.github.com> Co-authored-by: Sampras Lopes <Sampras.lopes@juspay.in>
This commit is contained in:
		@ -218,6 +218,7 @@ pub async fn generate_sample_data(
 | 
			
		||||
            fingerprint_id: None,
 | 
			
		||||
            session_expiry: Some(session_expiry),
 | 
			
		||||
            request_external_three_ds_authentication: None,
 | 
			
		||||
            charges: None,
 | 
			
		||||
            frm_metadata: Default::default(),
 | 
			
		||||
        };
 | 
			
		||||
        let payment_attempt = PaymentAttemptBatchNew {
 | 
			
		||||
@ -295,6 +296,7 @@ pub async fn generate_sample_data(
 | 
			
		||||
                profile_id: payment_intent.profile_id.clone(),
 | 
			
		||||
                updated_by: merchant_from_db.storage_scheme.to_string(),
 | 
			
		||||
                merchant_connector_id: payment_attempt.merchant_connector_id.clone(),
 | 
			
		||||
                charges: None,
 | 
			
		||||
            })
 | 
			
		||||
        } else {
 | 
			
		||||
            None
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user