mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-01-29 18:52:22 +01:00
[bug] unable to create a coupon on stripe
This commit is contained in:
parent
29cc91f283
commit
881f8d3efb
@ -4,10 +4,11 @@
|
||||
- Fix a bug: unable to build homepage custom stylesheet
|
||||
- Fix a bug: unable to access embedded plan views
|
||||
- Fix a bug: warning message overflow in credit wallet modal
|
||||
- Fix a bug: when a cash coupon was used, an invalid amount is shown in the statistics
|
||||
- Fix a bug: when using a cash coupon, the amount shown in the statistics is invalid
|
||||
- Fix a bug: unable to create a coupon on stripe
|
||||
- [TODO DEPLOY] `rails fablab:stripe:plans_prices`
|
||||
- [TODO DEPLOY] `rails fablab:maintenance:rebuild_stylesheet`
|
||||
- [TODO DEPLOY] `rails fabalb:stripe:set_product_id`
|
||||
- [TODO DEPLOY] `rails fablab:stripe:set_product_id`
|
||||
|
||||
## v4.6.3 2020 October 28
|
||||
|
||||
|
@ -31,7 +31,7 @@ class StripeWorker
|
||||
stp_coupon[:percent_off] = coupon.percent_off
|
||||
elsif coupon.type == 'amount_off'
|
||||
stp_coupon[:amount_off] = coupon.amount_off
|
||||
stp_coupon[:currency] = Rails.application.secrets.stripe_currency
|
||||
stp_coupon[:currency] = Setting.get('stripe_currency')
|
||||
end
|
||||
|
||||
stp_coupon[:redeem_by] = coupon.valid_until.to_i unless coupon.valid_until.nil?
|
||||
|
Loading…
x
Reference in New Issue
Block a user