We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f25a753 commit a4d9b1cCopy full SHA for a4d9b1c
src/helpers/StripeHelper.ts
@@ -22,7 +22,7 @@ export class StripeHelper {
22
const subscriptionData: any = {
23
customer,
24
metadata,
25
- billing_cycle_anchor: billing_cycle_anchor ? billing_cycle_anchor / 1000 : "now",
+ billing_cycle_anchor: (billing_cycle_anchor && billing_cycle_anchor > new Date().getTime()) ? billing_cycle_anchor / 1000 : "now",
26
items: [{
27
price_data: {
28
currency: 'usd',
0 commit comments