mirror of
				https://github.com/juspay/hyperswitch.git
				synced 2025-11-04 05:59:48 +08:00 
			
		
		
		
	feat(connector): [PowerTranz] Use connector_response_reference_id as reference to merchant (#2413)
Co-authored-by: kritiksh <kritiksh@adobe.com>
This commit is contained in:
		@ -123,7 +123,7 @@ impl TryFrom<&types::PaymentsAuthorizeRouterData> for PowertranzPaymentsRequest
 | 
				
			|||||||
                .to_string(),
 | 
					                .to_string(),
 | 
				
			||||||
            three_d_secure,
 | 
					            three_d_secure,
 | 
				
			||||||
            source,
 | 
					            source,
 | 
				
			||||||
            order_identifier: item.payment_id.clone(),
 | 
					            order_identifier: item.connector_request_reference_id.clone(),
 | 
				
			||||||
            // billing_address,
 | 
					            // billing_address,
 | 
				
			||||||
            // shipping_address,
 | 
					            // shipping_address,
 | 
				
			||||||
            extended_data,
 | 
					            extended_data,
 | 
				
			||||||
@ -239,6 +239,7 @@ pub struct PowertranzBaseResponse {
 | 
				
			|||||||
    iso_response_code: String,
 | 
					    iso_response_code: String,
 | 
				
			||||||
    redirect_data: Option<String>,
 | 
					    redirect_data: Option<String>,
 | 
				
			||||||
    response_message: String,
 | 
					    response_message: String,
 | 
				
			||||||
 | 
					    order_identifier: String,
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
impl ForeignFrom<(u8, bool, bool)> for enums::AttemptStatus {
 | 
					impl ForeignFrom<(u8, bool, bool)> for enums::AttemptStatus {
 | 
				
			||||||
@ -297,7 +298,7 @@ impl<F, T>
 | 
				
			|||||||
        let connector_transaction_id = item
 | 
					        let connector_transaction_id = item
 | 
				
			||||||
            .response
 | 
					            .response
 | 
				
			||||||
            .original_trxn_identifier
 | 
					            .original_trxn_identifier
 | 
				
			||||||
            .unwrap_or(item.response.transaction_identifier);
 | 
					            .unwrap_or(item.response.transaction_identifier.clone());
 | 
				
			||||||
        let redirection_data =
 | 
					        let redirection_data =
 | 
				
			||||||
            item.response
 | 
					            item.response
 | 
				
			||||||
                .redirect_data
 | 
					                .redirect_data
 | 
				
			||||||
@ -311,7 +312,7 @@ impl<F, T>
 | 
				
			|||||||
                mandate_reference: None,
 | 
					                mandate_reference: None,
 | 
				
			||||||
                connector_metadata: None,
 | 
					                connector_metadata: None,
 | 
				
			||||||
                network_txn_id: None,
 | 
					                network_txn_id: None,
 | 
				
			||||||
                connector_response_reference_id: None,
 | 
					                connector_response_reference_id: Some(item.response.order_identifier),
 | 
				
			||||||
            }),
 | 
					            }),
 | 
				
			||||||
            Err,
 | 
					            Err,
 | 
				
			||||||
        );
 | 
					        );
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user