mirror of
				https://github.com/juspay/hyperswitch.git
				synced 2025-10-30 01:27:31 +08:00 
			
		
		
		
	feat(payments_v2): add payment_confirm_intent api endpoint (#6263)
Co-authored-by: hrithikesh026 <hrithikesh.vm@juspay.in> Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com> Co-authored-by: sai-harsha-vardhan <harsha111hero@gmail.com> Co-authored-by: Shankar Singh C <83439957+ShankarSinghC@users.noreply.github.com> Co-authored-by: spritianeja03 <146620839+spritianeja03@users.noreply.github.com> Co-authored-by: Spriti Aneja <spriti.aneja@juspay.in>
This commit is contained in:
		| @ -123,11 +123,11 @@ impl From<api_models::payments::AmountDetails> for payments::AmountDetails { | ||||
|             order_amount: amount_details.order_amount().into(), | ||||
|             currency: amount_details.currency(), | ||||
|             shipping_cost: amount_details.shipping_cost(), | ||||
|             tax_details: Some(diesel_models::TaxDetails { | ||||
|                 default: amount_details | ||||
|                     .order_tax_amount() | ||||
|                     .map(|order_tax_amount| diesel_models::DefaultTax { order_tax_amount }), | ||||
|                 payment_method_type: None, | ||||
|             tax_details: amount_details.order_tax_amount().map(|order_tax_amount| { | ||||
|                 diesel_models::TaxDetails { | ||||
|                     default: Some(diesel_models::DefaultTax { order_tax_amount }), | ||||
|                     payment_method_type: None, | ||||
|                 } | ||||
|             }), | ||||
|             skip_external_tax_calculation: payments::TaxCalculationOverride::from( | ||||
|                 amount_details.skip_external_tax_calculation(), | ||||
| @ -137,6 +137,8 @@ impl From<api_models::payments::AmountDetails> for payments::AmountDetails { | ||||
|             ), | ||||
|             surcharge_amount: amount_details.surcharge_amount(), | ||||
|             tax_on_surcharge: amount_details.tax_on_surcharge(), | ||||
|             // We will not receive this in the request. This will be populated after calling the connector / processor | ||||
|             amount_captured: None, | ||||
|         } | ||||
|     } | ||||
| } | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Narayan Bhat
					Narayan Bhat