feat(celero): CIT-MIT for celero (ALPHA CONNECTOR)#9026
Merged
Conversation
Changed Files
|
2 tasks
deepanshu-iiitu
requested changes
Aug 25, 2025
| let mut mandate_fields = CeleroMandateFields::default(); | ||
|
|
||
| // Check if this is a mandate payment | ||
| if router_data.request.is_mandate_payment() { |
Contributor
There was a problem hiding this comment.
if is_mandate_payment returns true then it is a CIT
Comment on lines
+300
to
+315
| } else if router_data.request.setup_mandate_details.is_some() { | ||
| // This is the initial transaction that will be used for future mandate payments | ||
| mandate_fields.card_on_file_indicator = Some(CardOnFileIndicator::RecurringPayment); | ||
| mandate_fields.initiated_by = Some(InitiatedBy::Customer); | ||
| mandate_fields.stored_credential_indicator = Some(StoredCredentialIndicator::Stored); | ||
| mandate_fields.billing_method = Some(BillingMethod::InitialRecurring); | ||
| } else if router_data.request.off_session.unwrap_or(false) { | ||
| // Off-session payment (merchant-initiated) | ||
| mandate_fields.card_on_file_indicator = Some(CardOnFileIndicator::GeneralPurposeStorage); | ||
| mandate_fields.initiated_by = Some(InitiatedBy::Merchant); | ||
| mandate_fields.stored_credential_indicator = Some(StoredCredentialIndicator::Used); | ||
| } else { | ||
| // Regular customer-initiated transaction | ||
| mandate_fields.initiated_by = Some(InitiatedBy::Customer); | ||
| } | ||
|
|
Contributor
There was a problem hiding this comment.
This cases not required. For MIT check in payment method type if payment is of type mandate payment. Take reference from NMI
deepanshu-iiitu
previously approved these changes
Aug 25, 2025
AkshayaFoiger
previously approved these changes
Aug 25, 2025
2a2f3c7
AkshayaFoiger
previously approved these changes
Aug 25, 2025
deepanshu-iiitu
previously approved these changes
Aug 25, 2025
f5dc1e9
AkshayaFoiger
approved these changes
Aug 28, 2025
deepanshu-iiitu
approved these changes
Aug 28, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Type of Change
Description
CIT-MIT implementation for CELERO (alpha connector)
DOCS
Caviats
payment_method_idormandate_idNote this is an alpha connector and we depend on alpha cypress test which
Additional Changes
Motivation and Context
How did you test it?
Checklist
cargo +nightly fmt --allcargo clippy