-
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
feat(pm_list): add required fields for sofort #3192
Conversation
preferred_language: Option<String>, | ||
#[serde(rename = "payment_method_data[sofort][country]")] | ||
country: api_enums::CountryAlpha2, | ||
country: Option<api_enums::CountryAlpha2>, |
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.
is this not mandatory??
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.
Country is not mandatory for stripe sofort
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.
as we checked , it is mandatory. make the necessary changes
} => Ok(get_stripe_sepa_dd_mandate_billing_details( | ||
billing_details, | ||
is_customer_initiated_mandate_payment, | ||
)?), |
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.
why are ideal changes done in sofort pr?
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.
Recurring pay for Ideal and Sofort in stripe happens through SEPA Direct Debit payments. Therefore both requires same request body resulting in repeated code, hence I removed the redundancy by moving it into a function get_stripe_sepa_dd_mandate_billing_details
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.
can u please add the same comment in code to avoid confusion in future
preferred_language: Option<String>, | ||
#[serde(rename = "payment_method_data[sofort][country]")] | ||
country: api_enums::CountryAlpha2, | ||
country: Option<api_enums::CountryAlpha2>, |
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.
as we checked , it is mandatory. make the necessary changes
} => Ok(get_stripe_sepa_dd_mandate_billing_details( | ||
billing_details, | ||
is_customer_initiated_mandate_payment, | ||
)?), |
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.
can u please add the same comment in code to avoid confusion in future
Co-authored-by: Prasunna Soppa <[email protected]>
c0ccd99
Type of Change
Description
Resolves #3704
Test Cases
Must be tested for each of this connectors
-> Create a payment with confirm
false
-> list payment methods, with client secret and publishable key
Required fields must be populated, according to the connector
Checklist
cargo +nightly fmt --all
cargo clippy