Signal-iOS/SignalMessaging/Subscriptions
Evan Hahn 10a78d6033
Clean up min/max checks for Stripe payments
We check whether a payment amount is too small or too large. This makes
a few changes:

- `isAmountTooLarge` was correct except for [IDR][1], which has a
  larger limit according to [Stripe's docs][0].
- Added docs for `isAmountTooSmall` and `isAmountTooLarge`.
- Updated rounding to use "normal" rounding instead of "banker's
  rounding".

[0]: https://stripe.com/docs/currencies?presentment-currency=US#minimum-and-maximum-charge-amounts
[1]: https://en.wikipedia.org/wiki/Indonesian_rupiah
2022-10-17 13:45:57 -05:00
..
CachedBadge.swift Change license to AGPL 2022-10-13 08:25:37 -05:00
DonationUtilities.swift Handle decimals in one-time and gift donations 2022-10-17 09:18:05 -07:00
Stripe.swift Clean up min/max checks for Stripe payments 2022-10-17 13:45:57 -05:00
SubscriptionManager.swift Handle decimals in one-time and gift donations 2022-10-17 09:18:05 -07:00
SubscriptionReceiptCredentialRedemptionJob.swift Change license to AGPL 2022-10-13 08:25:37 -05:00