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

fix(euclid_wasm): checkout wasm metadata issue #4198

Merged
merged 36 commits into from
Mar 27, 2024

Conversation

JeevaRamu0104
Copy link
Contributor

@JeevaRamu0104 JeevaRamu0104 commented Mar 26, 2024

Type of Change

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

Description

Screen.Recording.2024-03-26.at.2.49.38.PM.mov

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?

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

@JeevaRamu0104 JeevaRamu0104 requested a review from a team as a code owner March 26, 2024 09:00
@JeevaRamu0104 JeevaRamu0104 self-assigned this Mar 26, 2024
Comment on lines 312 to 331
let mcc = match response.metadata.clone() {
Some(meta_data) => meta_data.mcc,
_ => None,
};
let merchant_country_code = match response.metadata.clone() {
Some(meta_data) => meta_data.merchant_country_code,
_ => None,
};
let merchant_name = match response.metadata.clone() {
Some(meta_data) => meta_data.merchant_name,
_ => None,
};
let acquirer_bin = match response.metadata.clone() {
Some(meta_data) => meta_data.acquirer_bin,
_ => None,
};
let acquirer_merchant_id = match response.metadata.clone() {
Some(meta_data) => meta_data.acquirer_merchant_id,
_ => None,
};
Copy link
Contributor

Choose a reason for hiding this comment

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

Don't clone metadata multiple times. Instead clone once and try to use the cloned object

Copy link
Contributor Author

Choose a reason for hiding this comment

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

updated

@JeevaRamu0104 JeevaRamu0104 added E-easy Effort: Should be easy to implement and would make a good first PR A-euclid-foc Area: Euclid Family of Crates labels Mar 26, 2024
ArjunKarthik
ArjunKarthik previously approved these changes Mar 26, 2024
@likhinbopanna likhinbopanna added this pull request to the merge queue Mar 27, 2024
Merged via the queue into main with commit 246898f Mar 27, 2024
10 of 12 checks passed
@likhinbopanna likhinbopanna deleted the fix-checkout-wasm-metadata-issue branch March 27, 2024 08:46
pixincreate added a commit that referenced this pull request Apr 1, 2024
* 'main' of github.com:juspay/hyperswitch:
  refactor(core): removed the processing status for payment_method_status (#4213)
  docs(README): remove link to outdated early access form
  build(deps): bump `error-stack` from version `0.3.1` to `0.4.1` (#4188)
  chore(version): 2024.04.01.0
  feat(mandates): allow off-session payments using `payment_method_id` (#4132)
  ci(CI-pr): determine modified crates more deterministically (#4233)
  chore(config): add billwerk base URL in deployment configs (#4243)
  feat(payment_method): API to list countries and currencies supported by a country and payment method type (#4126)
  chore(version): 2024.03.28.0
  refactor(config): allow wildcard origin for development and Docker Compose setups (#4231)
  fix(core): Amount capturable remain same for `processing` status in capture (#4229)
  fix(euclid_wasm): checkout wasm metadata issue (#4198)
  fix(trustpay): [Trustpay] Add error code mapping '800.100.100'  (#4224)
  feat(connector): [billwerk] add connector template code (#4123)
  fix(connectors): fix wallet token deserialization error  (#4133)
  fix(log): adding span metadata to `tokio` spawned futures (#4118)
  chore(version): 2024.03.27.0
  fix(connector): [CRYPTOPAY] Skip metadata serialization if none (#4205)
  fix(connector): [Trustpay] fix deserialization error for incoming webhook response for trustpay and add error code mapping '800.100.203' (#4199)
  fix(core): make eci in AuthenticationData optional (#4187)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-euclid-foc Area: Euclid Family of Crates E-easy Effort: Should be easy to implement and would make a good first PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants