-
Notifications
You must be signed in to change notification settings - Fork 4.1k
feat(debit_routing): add debit routing support for apple pay #8673
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
Conversation
…it-routing/wallets/refactor-tokenization
…it-routing/wallets/refactor-tokenization
…it-routing/wallets/refactor-tokenization
…/github.com/juspay/hyperswitch into debit-routing/wallets/apple-pay
|
||
let is_currency_supported = is_currency_supported(payment_intent, debit_routing_config); | ||
|
||
let payment_method_validation = validate_payment_method_for_debit_routing(payment_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.
let payment_method_validation = validate_payment_method_for_debit_routing(payment_data); | |
let is_valid_payment_method = validate_payment_method_for_debit_routing(payment_data); |
&& payment_attempt.payment_method_type == Some(enums::PaymentMethodType::Debit) | ||
&& is_currency_supported | ||
&& payment_attempt.authentication_type == Some(enums::AuthenticationType::NoThreeDs) | ||
&& payment_method_validation |
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.
&& payment_method_validation | |
&& is_valid_payment_method |
.parse_enum("ApplePayPaymentMethodType") | ||
.ok() |
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.
should the error be logged at least instead of ignoring it?
The base branch was changed.
…ayload-recurring * 'main' of github.com:juspay/hyperswitch: (48 commits) fix(connector): Add Trustpay in Authentication Providers Config (#8622) refactor(connector): [Adyen] map ssn and session validity for Pix (#8702) feat(core): Implement UCS kill switch for emergency fallback (#8651) fix(openapi): Added Error Response Schema for Status Code 400 (#8684) feat(connector): Add template code for breadpay (#8655) chore(version): 2025.07.21.1 refactor(payments): fetch payment method information in attempts list api v2 and add custom billing connector template (#8681) fix(router): Make v2 endpoints follow standard naming conventions (#8630) fix(connector): [Cybersource] Add type_selection_indicator as 1 for all cards (#8663) feat(routing): Add API key auth for decision engine endpoints (#8640) feat(authentication): Added eligibility flow for modular authentication (#8431) feat(connector): [BLACKHAWKNETWORK] Add Template Code (#8632) fix: remove straight through routing from routing approach (#8695) fix(connector): [Access Worldpay] correct enum deserialization for payment responses for (#8689) chore(version): 2025.07.21.0 feat(debit_routing): add debit routing support for apple pay (#8673) refactor(router): decrypt the wallet token before the debit routing call (#8598) chore: update org retrieve api response to include org type (#8660) feat(routing): Add routing evaluation rule endpoint and related flow (#8656) fix(connector): [AUTHORIZEDOTNET] Added Invoice Number Fix (#8685) ...
Type of Change
Description
This pull request adds debit routing support for Apple Pay. In the Apple Pay decryption flow, if debit routing is enabled by the merchant and the card type is debit, a call will be made to the decision engine to retrieve the supported card networks and the potential debit routing savings. Among these networks, the lowest-cost network will be selected to process the Apple Pay payment.
Additional Changes
Motivation and Context
How did you test it?
-> enable debit routing and make a apple pay payment
-> Decision engine lookup using 8 digits bin with padded 0s for lookup

Checklist
cargo +nightly fmt --all
cargo clippy