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

refactor(connector): [Payme]Enhance currency Mapping with ConnectorCurrencyCommon Trait #2194

Merged
merged 1 commit into from
Sep 27, 2023

Conversation

srujanchikke
Copy link
Contributor

@srujanchikke srujanchikke commented Sep 20, 2023

Type of Change

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

Description

This pull request introduces the get_currecny_unit from ConnectorCommon trait for Payme. This function allows connectors to declare their accepted currency unit as either "Base" or "Minor" .For Payme it accepts currency as Minor.

Additional Changes

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

Motivation and Context

How did you test it?

image (3)

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

@srujanchikke srujanchikke added A-connector-integration Area: Connector integration S-waiting-on-review Status: This PR has been implemented and needs to be reviewed C-refactor Category: Refactor labels Sep 20, 2023
@srujanchikke srujanchikke requested a review from a team as a code owner September 20, 2023 07:16
@srujanchikke srujanchikke self-assigned this Sep 20, 2023
@Sangamesh26
Copy link
Contributor

@srujanchikke , Please add the screen shot of payment test

@srujanchikke
Copy link
Contributor Author

@srujanchikke , Please add the screen shot of payment test

Done

@ArjunKarthik ArjunKarthik added this pull request to the merge queue Sep 27, 2023
@ArjunKarthik ArjunKarthik added S-ready-for-merge and removed S-waiting-on-review Status: This PR has been implemented and needs to be reviewed labels Sep 27, 2023
Merged via the queue into main with commit 77b51d5 Sep 27, 2023
12 checks passed
@ArjunKarthik ArjunKarthik deleted the payme_currency_conversion branch September 27, 2023 11:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-connector-integration Area: Connector integration C-refactor Category: Refactor
Projects
No open projects
Status: Merged
Development

Successfully merging this pull request may close these issues.

4 participants