-
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
refactor(connector): airwallex convert init payment to preprocessing #4842
refactor(connector): airwallex convert init payment to preprocessing #4842
Conversation
@@ -1885,6 +1885,14 @@ where | |||
dyn api::Connector: | |||
services::api::ConnectorIntegration<F, Req, router_types::PaymentsResponseData>, | |||
{ | |||
if !is_operation_complete_authorize(&operation) |
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 we checking for the operation here?
can you use
pub async fn authorize_preprocessing_steps<F: Clone>( |
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.
fn preprocessing_steps
is overridden for Both Authorize
and CompleteAuthorize
flows.
But I want to call preprocessing_steps
only during Authorize flow for Airwallex.
Within fn preprocessing_steps
implementation of Authorize Flow, we are calling fn authorize_preprocessing_steps
authorize_preprocessing_steps(state, &self, true, connector).await |
…atus_pt * 'main' of github.com:juspay/hyperswitch: chore(version): 2024.06.04.0 fix: include client_version and client_source in retried payments (#4826) refactor(users): Changes for Home and Signout APIs for TOTP Redis flows (#4851) feat(users): Create config for TOTP Issuer (#4776) feat(multitenancy): add support for multitenancy and handle the same in router, producer, consumer, drainer and analytics (#4630) feat(connector): [AUTHORIZEDOTNET] Support payment_method_id in recurring mandate payment (#4841) refactor(connector): airwallex convert init payment to preprocessing (#4842) feat(router): send `three_ds_requestor_url` in authentication_response for external 3ds flow (#4828) feat(consolidated-kafka-events): add consolidated kafka payment events (#4798) refactor(connector): [Klarna] Add shipping Address in Klarna Session and Payment Request (#4836) fix(connector): make few fields optional in struct NetceteraErrorDetails (#4827) chore(cypress): remove logs that expose `globalState` (#4844)
* 'main' of github.com:juspay/hyperswitch: feat(cypress): Add service level testing for Payouts (#4744) feat(auth): Create and use `SinglePurposeOrLoginTokenAuth` (#4830) refactor(connector): [Adyen] handle redirection error response (#4862) refactor(api_models): rename Card struct for payouts to avoid overrides in auto generated open API spec (#4861) chore(version): 2024.06.04.1 fix(connector): [Adyen]add required fields for afterpay clearpay (#4858) chore(version): 2024.06.04.0 fix: include client_version and client_source in retried payments (#4826) refactor(users): Changes for Home and Signout APIs for TOTP Redis flows (#4851) feat(users): Create config for TOTP Issuer (#4776) feat(multitenancy): add support for multitenancy and handle the same in router, producer, consumer, drainer and analytics (#4630) feat(connector): [AUTHORIZEDOTNET] Support payment_method_id in recurring mandate payment (#4841) refactor(connector): airwallex convert init payment to preprocessing (#4842) feat(router): send `three_ds_requestor_url` in authentication_response for external 3ds flow (#4828) feat(consolidated-kafka-events): add consolidated kafka payment events (#4798)
Type of Change
Description
Removed
fn execute_pretasks()
from Authorize ConnectorIntegration implementation on Airwallex.fn execute_pretasks()
was calling an api to retrieve a reference_id and populate router_data. I've moved this logic to core. So that this operation will be done in preprocessing flow.Also updated Airwallex postman collection.
Additional Changes
Motivation and Context
How did you test it?
Manual.
Ran the airwallex postman collection to test sanity.
Checklist
cargo +nightly fmt --all
cargo clippy