karibou-wallet 3.1.25 → 3.1.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -266,7 +266,7 @@ class SubscriptionContract {
|
|
|
266
266
|
};
|
|
267
267
|
const items = [{ metadata: itemMetadata, quantity, price_data: serviceItem }];
|
|
268
268
|
const description = product.description;
|
|
269
|
-
const billing_cycle_anchor = (Date.now() +
|
|
269
|
+
const billing_cycle_anchor = (Date.now() + 1000) / 1000 | 0;
|
|
270
270
|
const options = {
|
|
271
271
|
customer: (0, payments_1.unxor)(customer.id),
|
|
272
272
|
payment_behavior: 'default_incomplete',
|
|
@@ -387,7 +387,7 @@ class SubscriptionContract {
|
|
|
387
387
|
metadata
|
|
388
388
|
};
|
|
389
389
|
if (start_from == 'now') {
|
|
390
|
-
options.billing_cycle_anchor = (Date.now() +
|
|
390
|
+
options.billing_cycle_anchor = (Date.now() + 1000) / 1000 | 0;
|
|
391
391
|
}
|
|
392
392
|
else {
|
|
393
393
|
options.billing_cycle_anchor = (start_from.getTime() / 1000) | 0;
|