sso url configuration
SSO URL as string.
Returns allowed frequencies for given subscription and customer portal settings.
Subscription and settings.
Finds which next transaction date modification rules are applicable to the given subscription and merges them together.
Subscription to generate constraints for.
Next date modification config from the customer portal settings.
Returns true if all modifications are allowed, false if next date can't be changed by the customer, object with constraints in any other case.
Gives a rough estimate for a number of milliseconds in the given frequency.
IMPORTANT: this function SHOULD NOT be used to calculate precise dates as it doesn't account for leap years, months of variable length, etc. It works best for broad estimates and comparing frequencies.
Frequency as positive integer + units (y, m, w, d for years, months, weeks and days respectively). You can use .5m for twice a month. Example: 1m (1 month), 4y (4 years).
Estimated number of milliseconds in the given frequency.
Checks if given date (YYYY-MM-DD) can be used as the next transaction date for given subscription.
Subscription, customer portal settings and value.
True if given date can be used as next transaction date.
Verifies that the webhook your app has received was indeed sent from our servers. See our wiki for more info.
info received with the webhook that needs validation
True if this webhook has a valid signature.
Generated using TypeDoc
Generates an SSO url for the given configuration.
const url = FoxyApi.sso.createUrl({ customer: 123, secret: "...", domain: "https://yourdomain.foxycart.com" });
https://docs.foxycart.com/v/2.0/sso#the_details