Skip to content
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): [RISKIFIED] Add support for riskified frm connector #2533

Merged
merged 70 commits into from
Dec 12, 2023

Conversation

AkshayaFoiger
Copy link
Contributor

@AkshayaFoiger AkshayaFoiger commented Oct 10, 2023

Type of Change

  • Bugfix
  • New feature
  • Enhancement
  • Refactoring
  • Dependency updates
  • Documentation
  • CI/CD

Description

Add support for Riskified FRM Connector.
This PR resolves the problem mentioned in issue #2453.

Test Cases

1.Create a Merchant Account with frm enabled
2.Create an API key
3.Create a Stripe MCA
4.Create a Riskified MCA
5.Create a payment. The response should have frm data populated
6.Create a fullfillment call with the order id

Screenshot 2023-12-06 at 9 00 00 PM Screenshot 2023-12-06 at 9 01 58 PM

Checklist

  • I formatted the code cargo +nightly fmt --all
  • I addressed lints thrown by cargo clippy
  • I reviewed the submitted code
  • I added unit tests for my changes where possible
  • I added a CHANGELOG entry if applicable

@AkshayaFoiger AkshayaFoiger added A-dependencies Area: Dependencies C-feature Category: Feature request or enhancement labels Oct 10, 2023
@AkshayaFoiger AkshayaFoiger self-assigned this Oct 10, 2023
@AkshayaFoiger AkshayaFoiger requested review from a team as code owners October 10, 2023 11:47
@github-actions github-actions bot added the S-conventions-not-followed Status: This PR does not follow contributing guidelines label Oct 10, 2023
@AkshayaFoiger AkshayaFoiger changed the title feat(config) : add support for Riskified FRM connector feat(config) : [Riskified] add support for riskified frm connector Oct 10, 2023
@AkshayaFoiger AkshayaFoiger removed the S-conventions-not-followed Status: This PR does not follow contributing guidelines label Oct 10, 2023
@github-actions github-actions bot added the S-conventions-not-followed Status: This PR does not follow contributing guidelines label Oct 10, 2023
@AkshayaFoiger AkshayaFoiger changed the title feat(config) : [Riskified] add support for riskified frm connector feat(router) : [Riskified] add support for riskified frm connector Oct 10, 2023
@AkshayaFoiger AkshayaFoiger removed the S-conventions-not-followed Status: This PR does not follow contributing guidelines label Oct 10, 2023
@github-actions github-actions bot added the S-conventions-not-followed Status: This PR does not follow contributing guidelines label Oct 10, 2023
@AkshayaFoiger AkshayaFoiger changed the title feat(router) : [Riskified] add support for riskified frm connector feat(router) : add support for riskified frm connector Oct 10, 2023
@AkshayaFoiger AkshayaFoiger requested a review from a team as a code owner October 10, 2023 12:06
@AkshayaFoiger AkshayaFoiger changed the title feat(router) : add support for riskified frm connector feat(connector) : [RISKIFIED] add support for riskified frm connector Oct 10, 2023
@AkshayaFoiger AkshayaFoiger changed the title feat(connector) : [RISKIFIED] add support for riskified frm connector feat(connector): [RISKIFIED] Add support for riskified frm connector Oct 10, 2023
@github-actions github-actions bot removed the S-conventions-not-followed Status: This PR does not follow contributing guidelines label Oct 10, 2023
crates/router/src/lib.rs Outdated Show resolved Hide resolved
@AkshayaFoiger AkshayaFoiger requested a review from a team as a code owner October 17, 2023 07:15
Base automatically changed from frm_oss to main December 5, 2023 13:05
@SanchithHegde SanchithHegde dismissed stale reviews from kashif-m and jagan-jaya December 5, 2023 13:05

The base branch was changed.

@AkshayaFoiger AkshayaFoiger requested a review from a team as a code owner December 6, 2023 15:36
actix_web = ["tracing-actix-web"]
log_custom_entries_to_extra = []
log_extra_implicit_fields = []
log_active_span_json = []
payouts = []
frm = []
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't need the feature in this crate. This can be removed

@@ -175,7 +172,7 @@ impl From<SignifydPaymentStatus> for storage_enums::FraudCheckStatus {
SignifydPaymentStatus::Accept => Self::Legit,
SignifydPaymentStatus::Reject => Self::Fraud,
SignifydPaymentStatus::Hold => Self::ManualReview,
SignifydPaymentStatus::Challenge | SignifydPaymentStatus::Credit => Self::Pending,
SignifydPaymentStatus::Credit | SignifydPaymentStatus::Challenge => Self::Pending,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's no change here, this can be reverted

crates/router/src/core/fraud_check.rs Show resolved Hide resolved
kashif-m
kashif-m previously approved these changes Dec 7, 2023
jagan-jaya
jagan-jaya previously approved these changes Dec 11, 2023
@SanchithHegde SanchithHegde added this pull request to the merge queue Dec 12, 2023
Merged via the queue into main with commit 151a30f Dec 12, 2023
11 of 12 checks passed
@SanchithHegde SanchithHegde deleted the riskified branch December 12, 2023 13:23
@SanchithHegde SanchithHegde removed the S-waiting-on-review Status: This PR has been implemented and needs to be reviewed label Dec 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-dependencies Area: Dependencies C-feature Category: Feature request or enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants