Skip to content

Commit

Permalink
Merge pull request #198 from debtcollective/196/subscription-renewal
Browse files Browse the repository at this point in the history
fix(subscription): fix stripe description of recurring subscription
  • Loading branch information
orlando authored Jan 24, 2020
2 parents 6b3a0af + d19fbb0 commit 0d5848e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/jobs/subscription_payment_job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def create_charge(subscription)
Stripe::Charge.create(
customer: customer,
amount: (plan.amount * 100).to_i, # amount in cents
description: "Charged #{displayable_amount(plan.amount)} for #{plan.name}",
description: "Charged #{displayable_amount(plan.amount * 100)} for #{plan.name}",
currency: 'usd',
metadata: { 'plan_id' => plan.id, 'user_id' => subscription.user.id }
)
Expand Down

0 comments on commit 0d5848e

Please sign in to comment.