mirror of
				https://github.com/juspay/hyperswitch.git
				synced 2025-11-01 02:57:02 +08:00 
			
		
		
		
	fix(connector): [Checkout] Fix incoming webhook event mapping (#1197)
This commit is contained in:
		| @ -762,7 +762,7 @@ impl From<CheckoutTransactionType> for api::IncomingWebhookEvent { | |||||||
|     fn from(transaction_type: CheckoutTransactionType) -> Self { |     fn from(transaction_type: CheckoutTransactionType) -> Self { | ||||||
|         match transaction_type { |         match transaction_type { | ||||||
|             CheckoutTransactionType::PaymentApproved => Self::PaymentIntentSuccess, |             CheckoutTransactionType::PaymentApproved => Self::PaymentIntentSuccess, | ||||||
|             CheckoutTransactionType::PaymentDeclined => Self::PaymentIntentSuccess, |             CheckoutTransactionType::PaymentDeclined => Self::PaymentIntentFailure, | ||||||
|             CheckoutTransactionType::PaymentRefunded => Self::RefundSuccess, |             CheckoutTransactionType::PaymentRefunded => Self::RefundSuccess, | ||||||
|             CheckoutTransactionType::PaymentRefundDeclined => Self::RefundFailure, |             CheckoutTransactionType::PaymentRefundDeclined => Self::RefundFailure, | ||||||
|             CheckoutTransactionType::DisputeReceived |             CheckoutTransactionType::DisputeReceived | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user
	 Prasunna Soppa
					Prasunna Soppa