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
Rust adyenbeginner-friendlyfeaturedfinancefintechhacktoberfesthigh-performanceopen-sourceorchestrationpaymentpayment-gatewaypayment-integrationpayment-processingpaymentspayments-platformrestful-apirustsdkstripeworks-with-react
fix(connector): [Stripe] change payment_method name Wechatpay to wechatpayqr (#1813)
chikke srujan208d619409ee
diff --git a/crates/api_models/src/payments.rs b/crates/api_models/src/payments.rsindex fd2e9e6c60..18ab2573c8 100644--- a/crates/api_models/src/payments.rs+++ b/crates/api_models/src/payments.rs@@ -1030,8 +1030,6 @@ pub enum WalletData {TouchNGoRedirect(Box<TouchNGoRedirection>),/// The wallet data for WeChat Pay RedirectionWeChatPayRedirect(Box<WeChatPayRedirection>),- /// The wallet data for WeChat Pay- WeChatPay(Box<WeChatPay>),/// The wallet data for WeChat Pay Display QrCodeWeChatPayQr(Box<WeChatPayQr>),}diff --git a/crates/router/src/connector/dummyconnector/transformers.rs b/crates/router/src/connector/dummyconnector/transformers.rsindex f7081c870a..dc707bde42 100644--- a/crates/router/src/connector/dummyconnector/transformers.rs+++ b/crates/router/src/connector/dummyconnector/transformers.rs@@ -111,7 +111,7 @@ impl TryFrom<api_models::payments::WalletData> for DummyConnectorWallet {match value {api_models::payments::WalletData::GooglePayRedirect(_) => Ok(Self::GooglePay),api_models::payments::WalletData::PaypalRedirect(_) => Ok(Self::Paypal),- api_models::payments::WalletData::WeChatPay(_) => Ok(Self::WeChatPay),+ api_models::payments::WalletData::WeChatPayRedirect(_) => Ok(Self::WeChatPay),api_models::payments::WalletData::MbWayRedirect(_) => Ok(Self::MbWay),api_models::payments::WalletData::AliPayRedirect(_) => Ok(Self::AliPay),api_models::payments::WalletData::AliPayHkRedirect(_) => Ok(Self::AliPayHK),diff --git a/crates/router/src/connector/stripe/transformers.rs b/crates/router/src/connector/stripe/transformers.rsindex 48669b58a3..b6c0910646 100644--- a/crates/router/src/connector/stripe/transformers.rs+++ b/crates/router/src/connector/stripe/transformers.rs@@ -1128,7 +1128,7 @@ fn create_stripe_payment_method(None,StripeBillingAddress::default(),)),- payments::WalletData::WeChatPay(_) => Ok((+ payments::WalletData::WeChatPayQr(_) => Ok((StripePaymentMethodData::Wallet(StripeWallet::WechatpayPayment(WechatpayPayment {client: WechatClient::Web,payment_method_data_type: StripePaymentMethodType::Wechatpay,@@ -2846,7 +2846,7 @@ implOk(Self::Wallet(wallet_info))}- payments::WalletData::WeChatPayRedirect(_) => {+ payments::WalletData::WeChatPayQr(_) => {let wallet_info = StripeWallet::WechatpayPayment(WechatpayPayment {client: WechatClient::Web,payment_method_data_type: StripePaymentMethodType::Wechatpay,diff --git a/openapi/openapi_spec.json b/openapi/openapi_spec.jsonindex bebf9d9bbf..4ba849ab7a 100644--- a/openapi/openapi_spec.json+++ b/openapi/openapi_spec.json@@ -10261,17 +10261,6 @@}}},- {- "type": "object",- "required": [- "we_chat_pay"- ],- "properties": {- "we_chat_pay": {- "$ref": "#/components/schemas/WeChatPay"- }- }- },{"type": "object","required": [