-
Notifications
You must be signed in to change notification settings - Fork 4.6k
feat(connector): [Barclaycard] Implement Cards - Non 3DS flow #8068
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
Merged
Conversation
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
2 tasks
deepanshu-iiitu
requested changes
May 21, 2025
Comment on lines
789
to
808
| let connector_payment_id = req.request.connector_transaction_id.clone(); | ||
| match req.request.capture_method { | ||
| Some(enums::CaptureMethod::Automatic) | ||
| | Some(enums::CaptureMethod::SequentialAutomatic) => Ok(format!( | ||
| "{}pts/v2/payments/{connector_payment_id}/refunds", | ||
| self.base_url(connectors) | ||
| )), | ||
| Some(enums::CaptureMethod::Manual) => Ok(format!( | ||
| "{}pts/v2/captures/{connector_payment_id}/refunds", | ||
| self.base_url(connectors) | ||
| )), | ||
| Some(enums::CaptureMethod::ManualMultiple) | ||
| | Some(enums::CaptureMethod::Scheduled) | ||
| | None => Err(utils::construct_not_implemented_error_report( | ||
| req.request | ||
| .capture_method | ||
| .unwrap_or(enums::CaptureMethod::ManualMultiple), | ||
| self.id(), | ||
| )), | ||
| } |
Contributor
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.
Test that if /payments works for both, if yes remove /captures
deepanshu-iiitu
previously approved these changes
May 22, 2025
Chethan-rao
previously approved these changes
May 22, 2025
dd96851
Chethan-rao
approved these changes
May 23, 2025
deepanshu-iiitu
approved these changes
May 23, 2025
Type of Change
Closes this issue
Description
Added Authorize, Capture, Void, Refund, PSync and RSync flow for cards payment method for Barclaycard. Also added connector specifications for the same connector.
Additional Changes
Motivation and Context
How did you test it?
Postman Tests
Request:
Response:
Request:
Response:
Request:
Response:
Request:
Response:
Request:
Response:
Request:
Response:
Checklist
cargo +nightly fmt --allcargo clippy