-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(connector): Ideal and multiple other failing PMs fixed in Ayden #7139
base: main
Are you sure you want to change the base?
Conversation
85476b4
to
c982913
Compare
f12e759
to
72f0a94
Compare
2c5bc04
to
5c7849b
Compare
pub enum PaymentMethod<'a> { | ||
AdyenPaymentMethod(Box<AdyenPaymentMethod<'a>>), | ||
AdyenMandatePaymentMethod(Box<AdyenMandatePaymentMethod>), | ||
} | ||
#[derive(Debug, Clone, Serialize)] | ||
#[serde(untagged)] | ||
#[serde(rename_all = "lowercase")] | ||
pub enum AdyenMandatePaymentMethod { | ||
Mandate(Box<AdyenMandate>), | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pub enum PaymentMethod<'a> { | |
AdyenPaymentMethod(Box<AdyenPaymentMethod<'a>>), | |
AdyenMandatePaymentMethod(Box<AdyenMandatePaymentMethod>), | |
} | |
#[derive(Debug, Clone, Serialize)] | |
#[serde(untagged)] | |
#[serde(rename_all = "lowercase")] | |
pub enum AdyenMandatePaymentMethod { | |
Mandate(Box<AdyenMandate>), | |
} | |
pub enum PaymentMethod<'a> { | |
AdyenPaymentMethod(Box<AdyenPaymentMethod<'a>>), | |
AdyenMandatePaymentMethod(Box<AdyenMandate>), | |
} |
Can we make this change ?
Atome, | ||
#[serde(rename = "Scheme")] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adyen Bancontact requests require scheme
to be passed as the type. However, we are currently passing Scheme
, which could cause issues(may not be in sandbox, but there is a possibility of this happening in prod) . We cannot assign the same name for both BancontactCard and AdyenCard. Therefore, can we remove BancontactCard(Box) and use AdyenCard(Box) for BancontactCard as well, adding validations for Bancontact card-specific fields while populating the value?
Type of Change
Description
Trustly
andIdeal
Bank Redirect payments were failing forAyden
.Trustly
error message:Required object 'paymentMethod' is not provided.
Ideal
error message:Could not find issuer for issuerId
For
Trustly
, populated thepaymentMethod
to fix the issue.Ideal
is moving to a more centralized infrastructure to process payments, which does not need issuer. So removed issuer field from connector request body.Reference: https://docs.adyen.com/payment-methods/ideal/api-only/
Multiple PMTs were failing due to this error
Required object 'paymentMethod' is not provided.
fixed.Additional Changes
Motivation and Context
https://github.com/juspay/hyperswitch-cloud/issues/8251
How did you test it?
Response
Response
Checklist
cargo +nightly fmt --all
cargo clippy