Skip to content

Fractional amount solidus-to-stripe conversion support class#155

Merged
elia merged 1 commit into
masterfrom
elia/fractional-solidus-to-stripe-conversion
Jan 9, 2023
Merged

Fractional amount solidus-to-stripe conversion support class#155
elia merged 1 commit into
masterfrom
elia/fractional-solidus-to-stripe-conversion

Conversation

@elia

@elia elia commented Dec 30, 2022

Copy link
Copy Markdown
Member

Summary

The Money gem used by Solidus and Stripe have different setups when it comes to handling fractional amounts. Most of the time they're the same but there are special cases in which the number of decimals included or the used multiplier is different between the two.

Checklist

Check out our PR guidelines for more details.

The following are mandatory for all PRs:

  • I have written a thorough PR description.
  • I have kept my commits small and atomic.
  • I have used clear, explanatory commit messages.

The following are not always needed (cross them out if they are not):

  • I have added automated tests to cover my changes.
- [ ] I have attached screenshots to demo visual changes. - [ ] I have opened a PR to update the [guides](https://github.com/solidusio/edgeguides). - [ ] I have updated the README to account for my changes.

@elia elia self-assigned this Dec 30, 2022
@elia elia force-pushed the elia/fractional-solidus-to-stripe-conversion branch from 69b1534 to d4381dd Compare December 30, 2022 15:51
The Money gem used by Solidus and Stripe have different setups when it
comes to handling amounts. Most of the time they're the same but there
are special cases.
@elia elia force-pushed the elia/fractional-solidus-to-stripe-conversion branch from d4381dd to edca7bf Compare January 9, 2023 12:39
@elia elia marked this pull request as ready for review January 9, 2023 12:57
@elia elia requested a review from kennyadsl January 9, 2023 12:57
@elia elia merged commit bcbf03e into master Jan 9, 2023
@elia elia deleted the elia/fractional-solidus-to-stripe-conversion branch January 9, 2023 13:06
@elia elia added this to the v5 milestone Feb 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants