-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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(connector): [TRUSTPAY] implement Banktransfer PaymentMethod #7575
base: main
Are you sure you want to change the base?
Conversation
crates/api_models/src/payments.rs
Outdated
@@ -3383,6 +3384,10 @@ pub enum BankTransferData { | |||
LocalBankTransfer { | |||
bank_code: Option<String>, | |||
}, | |||
InstantBankTransfer { | |||
/// The billing details for Instant Bank Transfer | |||
billing_details: Option<DokuBillingDetails>, |
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.
This is not required right?
name: get_full_name(params.billing_first_name, billing_last_name), | ||
email: item.request.get_email()?, |
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.
Add these fields to crates/router/src/configs/defaults/payment_connector_required_fields.rs
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.
Also test if email is passed if we pass it in billing.email
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.
I have added required fields.
Type of Change
Description
Implement Banktransfer PaymentMethod
Additional Changes
Motivation and Context
How did you test it?
Response
Response
Complete payment using redirection link.
payment will be in
processing
step.Checklist
cargo +nightly fmt --all
cargo clippy