-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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): [BANKOFAMERICA] Implement Google Pay #2940
Conversation
pub struct PaymentInformation { | ||
card: Card, | ||
card: Option<Card>, |
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.
Create enum for PaymentInformation, one for card and one for fluid data
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.
Done
let email = item.router_data.request.get_email()?; | ||
let bill_to = build_bill_to(item.router_data.get_billing()?, email)?; | ||
|
||
let order_information = OrderInformationWithBill { |
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.
Handle this with From impl so redundant code can be reduced
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.
Done
fluid_data: None, | ||
}; | ||
|
||
let processing_information = ProcessingInformation { |
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.
Use From implementation
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.
Done
payment_solution: None, | ||
}; | ||
|
||
let client_reference_information = ClientReferenceInformation { |
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.
Please use From impl
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.
Done
}, | ||
}); | ||
|
||
let payment_solution = Some("012".to_string()); |
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.
Let's have this as enum, which will be useful while implementing applepay
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.
Done
value: ( | ||
&BankOfAmericaRouterData<&types::PaymentsAuthorizeRouterData>, | ||
payments::GooglePayWalletData, | ||
), |
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.
value: ( | |
&BankOfAmericaRouterData<&types::PaymentsAuthorizeRouterData>, | |
payments::GooglePayWalletData, | |
), | |
(item, google_pay_data): ( | |
&BankOfAmericaRouterData<&types::PaymentsAuthorizeRouterData>, | |
payments::GooglePayWalletData, | |
), |
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.
Done
value: ( | ||
&BankOfAmericaRouterData<&types::PaymentsAuthorizeRouterData>, | ||
payments::Card, | ||
), |
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.
value: ( | |
&BankOfAmericaRouterData<&types::PaymentsAuthorizeRouterData>, | |
payments::Card, | |
), | |
(item, ccard): ( | |
&BankOfAmericaRouterData<&types::PaymentsAuthorizeRouterData>, | |
payments::Card, | |
), |
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.
Done
value: ( | ||
&BankOfAmericaRouterData<&types::PaymentsAuthorizeRouterData>, | ||
Option<String>, | ||
), |
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.
value: ( | |
&BankOfAmericaRouterData<&types::PaymentsAuthorizeRouterData>, | |
Option<String>, | |
), | |
(item, payment_solution): ( | |
&BankOfAmericaRouterData<&types::PaymentsAuthorizeRouterData>, | |
Option<String>, | |
), |
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.
Done
value: ( | ||
&BankOfAmericaRouterData<&types::PaymentsAuthorizeRouterData>, | ||
BillTo, | ||
), |
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.
value: ( | |
&BankOfAmericaRouterData<&types::PaymentsAuthorizeRouterData>, | |
BillTo, | |
), | |
(item, bill_to): ( | |
&BankOfAmericaRouterData<&types::PaymentsAuthorizeRouterData>, | |
BillTo, | |
), |
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.
Done
Type of Change
Description
Implement Payment Method Google Pay for connector Bankofamerica
Additional Changes
Motivation and Context
https://github.com/juspay/hyperswitch-cloud/issues/3297
How did you test it?
Authorize(Manual+Automatic), Capture and PSYNC flow needs to be tested for Payment Method Google Pay for connector Bankofamerica
Checklist
cargo +nightly fmt --all
cargo clippy