mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-02 21:07:58 +08:00
feat(connector): [Bitpay] Use connector_request_reference_id as reference to the connector (#2697)
This commit is contained in:
@ -60,6 +60,7 @@ pub struct BitpayPaymentsRequest {
|
||||
notification_url: String,
|
||||
transaction_speed: TransactionSpeed,
|
||||
token: Secret<String>,
|
||||
order_id: String,
|
||||
}
|
||||
|
||||
impl TryFrom<&BitpayRouterData<&types::PaymentsAuthorizeRouterData>> for BitpayPaymentsRequest {
|
||||
@ -279,6 +280,7 @@ fn get_crypto_specific_payment_data(
|
||||
ConnectorAuthType::HeaderKey { api_key } => api_key,
|
||||
_ => String::default().into(),
|
||||
};
|
||||
let order_id = item.router_data.connector_request_reference_id.clone();
|
||||
|
||||
Ok(BitpayPaymentsRequest {
|
||||
price,
|
||||
@ -287,6 +289,7 @@ fn get_crypto_specific_payment_data(
|
||||
notification_url,
|
||||
transaction_speed,
|
||||
token,
|
||||
order_id,
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user