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

ci(cypress): Add Noon Connector #6603

Merged
merged 5 commits into from
Nov 22, 2024
Merged

ci(cypress): Add Noon Connector #6603

merged 5 commits into from
Nov 22, 2024

Conversation

likhinbopanna
Copy link
Contributor

@likhinbopanna likhinbopanna commented Nov 19, 2024

Type of Change

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

Description

Add Noon Connector for Cypress Automation
Note : Noon supports only 3ds payments , so all the no_three_ds payments are skipped

Additional Changes

  • This PR modifies the API contract
  • This PR modifies the database schema
  • This PR modifies application configuration/environment variables

Motivation and Context

Noon connector was not available in the cypress automation

How did you test it?

image

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

@likhinbopanna likhinbopanna added A-CI-CD Area: Continuous Integration/Deployment S-waiting-on-review Status: This PR has been implemented and needs to be reviewed labels Nov 19, 2024
@likhinbopanna likhinbopanna self-assigned this Nov 19, 2024
@likhinbopanna likhinbopanna requested a review from a team as a code owner November 19, 2024 06:46
Copy link

semanticdiff-com bot commented Nov 19, 2024

Review changes with  SemanticDiff

Changed Files
File Status
  cypress-tests/cypress/e2e/PaymentUtils/Commons.js  0% smaller
  cypress-tests/cypress/e2e/PaymentUtils/Noon.js  0% smaller
  cypress-tests/cypress/e2e/PaymentUtils/Utils.js  0% smaller

@likhinbopanna likhinbopanna linked an issue Nov 19, 2024 that may be closed by this pull request
Copy link
Member

@pixincreate pixincreate left a comment

Choose a reason for hiding this comment

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

Other than that, looks good to me!

cypress-tests/cypress/e2e/PaymentUtils/Noon.js Outdated Show resolved Hide resolved
last4: "4242",
card_type: "CREDIT",
card_network: "Visa",
card_issuer: "STRIPE PAYMENTS UK LIMITED",
Copy link
Member

Choose a reason for hiding this comment

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

"Noon", right?

Copy link
Contributor Author

@likhinbopanna likhinbopanna Nov 19, 2024

Choose a reason for hiding this comment

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

This is just card_issuer nothing related to connector

Copy link
Member

Choose a reason for hiding this comment

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

😒

},
connector_metadata: connectorMetadata,
customer_acceptance: null,
currency: "AED",
Copy link
Member

Choose a reason for hiding this comment

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

Please do not pass currency in confirm calls.
I do not think we need it in refunds either.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We need to pass currency in some of the scenarios where we use create + confirm

Copy link
Member

Choose a reason for hiding this comment

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

Create + confirm, okay. But in every other case.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Even Refund Payments use create + confirm

},
Response: {
status: 200,
trigger_skip: true,
Copy link
Member

Choose a reason for hiding this comment

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

I would suggest you moving this to new object called as Configs.

Please check my draft PR for reference.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We can make this change when your pr gets merged

Copy link
Member

@pixincreate pixincreate left a comment

Choose a reason for hiding this comment

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

ok

@Gnanasundari24 Gnanasundari24 added this pull request to the merge queue Nov 20, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Nov 20, 2024
@Gnanasundari24 Gnanasundari24 added this pull request to the merge queue Nov 22, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Nov 22, 2024
@Gnanasundari24 Gnanasundari24 added this pull request to the merge queue Nov 22, 2024
Merged via the queue into main with commit 0b282ce Nov 22, 2024
17 checks passed
@Gnanasundari24 Gnanasundari24 deleted the noon-cypress branch November 22, 2024 10:58
pixincreate added a commit that referenced this pull request Nov 22, 2024
…ed-cypress

* 'main' of github.com:juspay/hyperswitch:
  fix(connector): [Cybersource] change commerce indicator for applepay (#6634)
  ci(cypress): Add Noon Connector (#6603)
  fix(analytics): remove first_attempt group by in Payment Intent old metrics (#6627)
  chore(version): 2024.11.22.0
  refactor: update API response for JSON deserialization errors (#6610)
  fix(connector): [Novalnet]  Get email from customer email if billing.email is not present  (#6619)
  feat(connector): [AIRWALLEX] Update production endpoint (#6632)
  feat(themes): Add `theme_name` and `entity_type` in themes table (#6621)
  feat(connector): [Xendit] Template PR (#6593)
@SanchithHegde SanchithHegde removed the S-waiting-on-review Status: This PR has been implemented and needs to be reviewed label Nov 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-CI-CD Area: Continuous Integration/Deployment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[CYPRESS] : Add Noon Connector
4 participants