-
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): [Recurly] Add record back support for recurly [V2] #7544
base: main
Are you sure you want to change the base?
Conversation
Changed Files
|
af2d0d3
to
5c37952
Compare
Ok(format!( | ||
"{}/invoices/{}/{}", | ||
self.base_url(connectors), | ||
invoice_id, | ||
status_endpoint | ||
)) | ||
} |
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.
Ok(format!( | |
"{}/invoices/{}/{}", | |
self.base_url(connectors), | |
invoice_id, | |
status_endpoint | |
)) | |
} | |
Ok(format!( | |
"{}/invoices/{invoice_id}/{status_endpoint}", | |
self.base_url(connectors) | |
)) | |
} |
// inovice id | ||
pub id: common_utils::id_type::PaymentReferenceId, |
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.
// inovice id | |
pub id: common_utils::id_type::PaymentReferenceId, | |
// inovice id | |
pub id: id_type::PaymentReferenceId, |
let status = RecurlyRecordStatus::try_from(req.request.attempt_status).map_err(|_| { | ||
errors::ConnectorError::NotSupported { | ||
message: "Invalid attempt status for Recurly".to_string(), | ||
connector: "recurly", | ||
} | ||
})?; |
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.
is this map_err required ?
RecurlyRecordStatus::Success => "mark_successful", | ||
RecurlyRecordStatus::Failure => "mark_failed", |
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.
Can we have this string as global variables ?
Type of Change
Description
Add support for record back flow for recurly.
What is record back flow ?
After payment is retried by revenue recovery, we need to update the billing processor invoice.
Recurly flow
We record the transaction in recurly created by internal system. This transaction will automatically update the invoice status in recurly system.
Additional Changes
Motivation and Context
How did you test it?
This can only be tested in local since the entire recovery flow is not complete. Tested locally by triggering the connector integration manually.
Here are the local testing logs :
Checklist
cargo +nightly fmt --all
cargo clippy