Skip to content

Commit b5e4f23

Browse files
committed
refactor: write to legacay field as well
1 parent f8f3ec6 commit b5e4f23

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

crates/diesel_models/src/payment_intent.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -828,7 +828,7 @@ impl From<PaymentIntentUpdate> for PaymentIntentUpdateInternal {
828828
customer_id: value.customer_id,
829829
shipping_address_id: value.shipping_address_id,
830830
billing_address_id: value.billing_address_id,
831-
return_url: None, // deprecated
831+
return_url: value.return_url.clone(),
832832
business_country: value.business_country,
833833
business_label: value.business_label,
834834
description: value.description,
@@ -871,7 +871,7 @@ impl From<PaymentIntentUpdate> for PaymentIntentUpdateInternal {
871871
customer_details,
872872
updated_by,
873873
} => Self {
874-
return_url: None, // deprecated
874+
return_url: return_url.clone(),
875875
status,
876876
customer_id,
877877
shipping_address_id,

crates/hyperswitch_domain_models/src/payments/payment_intent.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1209,7 +1209,7 @@ impl From<PaymentIntentUpdateInternal> for diesel_models::PaymentIntentUpdateInt
12091209
status,
12101210
amount_captured,
12111211
customer_id,
1212-
return_url: None, // deprecated
1212+
return_url: return_url.clone(),
12131213
setup_future_usage,
12141214
off_session,
12151215
metadata,
@@ -1957,7 +1957,7 @@ impl behaviour::Conversion for PaymentIntent {
19571957
amount_captured: self.amount_captured,
19581958
customer_id: self.customer_id,
19591959
description: self.description,
1960-
return_url: None, // deprecated
1960+
return_url: self.return_url.clone(),
19611961
metadata: self.metadata,
19621962
connector_id: self.connector_id,
19631963
shipping_address_id: self.shipping_address_id,
@@ -2129,7 +2129,7 @@ impl behaviour::Conversion for PaymentIntent {
21292129
amount_captured: self.amount_captured,
21302130
customer_id: self.customer_id,
21312131
description: self.description,
2132-
return_url: None, // deprecated
2132+
return_url: self.return_url.clone(),
21332133
metadata: self.metadata,
21342134
connector_id: self.connector_id,
21352135
shipping_address_id: self.shipping_address_id,

0 commit comments

Comments
 (0)