@@ -134,6 +134,7 @@ pub struct BitpayPaymentResponseData {
134
134
pub expiration_time : Option < i64 > ,
135
135
pub current_time : Option < i64 > ,
136
136
pub id : String ,
137
+ pub order_id : Option < String > ,
137
138
pub low_fee_detected : Option < bool > ,
138
139
pub display_amount_paid : Option < String > ,
139
140
pub exception_status : ExceptionStatus ,
@@ -162,7 +163,7 @@ impl<F, T>
162
163
. data
163
164
. url
164
165
. map ( |x| services:: RedirectForm :: from ( ( x, services:: Method :: Get ) ) ) ;
165
- let connector_id = types:: ResponseId :: ConnectorTransactionId ( item. response . data . id ) ;
166
+ let connector_id = types:: ResponseId :: ConnectorTransactionId ( item. response . data . id . clone ( ) ) ;
166
167
let attempt_status = item. response . data . status ;
167
168
Ok ( Self {
168
169
status : enums:: AttemptStatus :: from ( attempt_status) ,
@@ -172,7 +173,11 @@ impl<F, T>
172
173
mandate_reference : None ,
173
174
connector_metadata : None ,
174
175
network_txn_id : None ,
175
- connector_response_reference_id : None ,
176
+ connector_response_reference_id : item
177
+ . response
178
+ . data
179
+ . order_id
180
+ . or ( Some ( item. response . data . id ) ) ,
176
181
} ) ,
177
182
..item. data
178
183
} )
0 commit comments