mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-11-29 10:24:20 +01:00
on stripe subscription renew: cancel subscription after the last deadline
This commit is contained in:
parent
0b3a02a05d
commit
305e462011
@ -33,7 +33,7 @@ class StripeService
|
||||
|
||||
stp_subscription = Stripe::Subscription.create({
|
||||
customer: payment_schedule.invoicing_profile.user.stp_customer_id,
|
||||
cancel_at: subscription.expiration_date.to_i,
|
||||
cancel_at: (payment_schedule.ordered_items.last.due_date + 3.day).to_i,
|
||||
add_invoice_items: items,
|
||||
coupon: payment_schedule.coupon&.code,
|
||||
items: [
|
||||
|
Loading…
Reference in New Issue
Block a user