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: request amount fix for trustpay apple pay #1837

Merged
merged 2 commits into from
Aug 1, 2023

Conversation

Sangamesh26
Copy link
Contributor

Type of Change

  • Bugfix

Description

For Trustpay Apple Pay, we were sending amount in cents.This PR fixes amount issue by converting to currency base unit.

Motivation and Context

Fix amount issue

How did you test it?

Screen Shot 2023-08-01 at 3 54 03 PM

Checklist

  • I formatted the code cargo +nightly fmt --all
  • I addressed lints thrown by cargo clippy
  • I reviewed submitted code

@Sangamesh26 Sangamesh26 added A-connector-integration Area: Connector integration S-waiting-on-review Status: This PR has been implemented and needs to be reviewed labels Aug 1, 2023
@Sangamesh26 Sangamesh26 self-assigned this Aug 1, 2023
@Sangamesh26 Sangamesh26 requested a review from a team as a code owner August 1, 2023 10:24
@@ -849,23 +849,33 @@ impl TryFrom<&types::PaymentsPreProcessingRouterData> for TrustpayCreateIntentRe
.as_ref()
.map(|pmt| matches!(pmt, diesel_models::enums::PaymentMethodType::GooglePay));

let request_amount = item
Copy link
Contributor

Choose a reason for hiding this comment

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

In Preprocessing amount and currency need not to be optional fields. Please check this if any changes required take it in separate PR

@ArjunKarthik ArjunKarthik added this pull request to the merge queue Aug 1, 2023
Merged via the queue into main with commit 3da69f3 Aug 1, 2023
11 checks passed
@ArjunKarthik ArjunKarthik deleted the fix_request_amount_trustpay branch August 1, 2023 13:52
@SanchithHegde SanchithHegde removed S-waiting-on-review Status: This PR has been implemented and needs to be reviewed S-ready-for-merge labels Aug 2, 2023
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants