Skip to content

Open source, composable payments platform | PCI compliant | SaaS and Self-host options | Enables connectivity to multiple payment, payout, fraud, vault and tokenization providers | Uplifts authorization with intelligent routing and revenue recovery | Reduce payment processing costs with cost observability | Reduces payment ops with reconciliation

refactor: fix typos in stripe transformers (#4287)

Chethan Rao4445a86207a3
diff --git a/crates/router/src/connector/stripe/transformers.rs b/crates/router/src/connector/stripe/transformers.rs
index 47bb034f5b..7edf28f2c3 100644
--- a/crates/router/src/connector/stripe/transformers.rs
+++ b/crates/router/src/connector/stripe/transformers.rs
@@ -2424,12 +2424,12 @@ impl<F, T>
services::RedirectForm::from((redirection_url, services::Method::Get))
});
- let mandate_reference = item.response.payment_method.map(|paymet_method_id| {
+ let mandate_reference = item.response.payment_method.map(|payment_method_id| {
// Implemented Save and re-use payment information for recurring charges
// For more info: https://docs.stripe.com/recurring-payments#accept-recurring-payments
- // For backward compataibility payment_method_id & connector_mandate_id is being populated with the same value
- let connector_mandate_id = Some(paymet_method_id.clone().expose());
- let payment_method_id = Some(paymet_method_id.expose());
+ // For backward compatibility payment_method_id & connector_mandate_id is being populated with the same value
+ let connector_mandate_id = Some(payment_method_id.clone().expose());
+ let payment_method_id = Some(payment_method_id.expose());
types::MandateReference {
connector_mandate_id,
payment_method_id,
@@ -2556,11 +2556,11 @@ impl<F, T>
.response
.payment_method
.clone()
- .map(|paymet_method_id| {
+ .map(|payment_method_id| {
// Implemented Save and re-use payment information for recurring charges
// For more info: https://docs.stripe.com/recurring-payments#accept-recurring-payments
- // For backward compataibility payment_method_id & connector_mandate_id is being populated with the same value
- let connector_mandate_id = Some(paymet_method_id.clone().expose());
+ // For backward compatibility payment_method_id & connector_mandate_id is being populated with the same value
+ let connector_mandate_id = Some(payment_method_id.clone().expose());
let payment_method_id = match item.response.latest_charge.clone() {
Some(StripeChargeEnum::ChargeObject(charge)) => {
match charge.payment_method_details {
@@ -2568,16 +2568,16 @@ impl<F, T>
bancontact
.attached_payment_method
.map(|attached_payment_method| attached_payment_method.expose())
- .unwrap_or(paymet_method_id.expose())
+ .unwrap_or(payment_method_id.expose())
}
Some(StripePaymentMethodDetailsResponse::Ideal { ideal }) => ideal
.attached_payment_method
.map(|attached_payment_method| attached_payment_method.expose())
- .unwrap_or(paymet_method_id.expose()),
+ .unwrap_or(payment_method_id.expose()),
Some(StripePaymentMethodDetailsResponse::Sofort { sofort }) => sofort
.attached_payment_method
.map(|attached_payment_method| attached_payment_method.expose())
- .unwrap_or(paymet_method_id.expose()),
+ .unwrap_or(payment_method_id.expose()),
Some(StripePaymentMethodDetailsResponse::Blik)
| Some(StripePaymentMethodDetailsResponse::Eps)
| Some(StripePaymentMethodDetailsResponse::Fpx)
@@ -2595,10 +2595,10 @@ impl<F, T>
| Some(StripePaymentMethodDetailsResponse::Wechatpay)
| Some(StripePaymentMethodDetailsResponse::Alipay)
| Some(StripePaymentMethodDetailsResponse::CustomerBalance)
- | None => paymet_method_id.expose(),
+ | None => payment_method_id.expose(),
}
}
- Some(StripeChargeEnum::ChargeId(_)) | None => paymet_method_id.expose(),
+ Some(StripeChargeEnum::ChargeId(_)) | None => payment_method_id.expose(),
};
types::MandateReference {
connector_mandate_id,
@@ -2660,12 +2660,12 @@ impl<F, T>
services::RedirectForm::from((redirection_url, services::Method::Get))
});
- let mandate_reference = item.response.payment_method.map(|paymet_method_id| {
+ let mandate_reference = item.response.payment_method.map(|payment_method_id| {
// Implemented Save and re-use payment information for recurring charges
// For more info: https://docs.stripe.com/recurring-payments#accept-recurring-payments
- // For backward compataibility payment_method_id & connector_mandate_id is being populated with the same value
- let connector_mandate_id = Some(paymet_method_id.clone());
- let payment_method_id = Some(paymet_method_id);
+ // For backward compatibility payment_method_id & connector_mandate_id is being populated with the same value
+ let connector_mandate_id = Some(payment_method_id.clone());
+ let payment_method_id = Some(payment_method_id);
types::MandateReference {
connector_mandate_id,
payment_method_id,