How access follows your billing provider
Your billing provider decides who has paid access. Each grant tied to a user subscription records the billing provider’s id for it. Whenever EdgeKit syncs that record, or an invoice or a transaction for it, it works out what the grant should be and moves it there, creating the grant first if the user subscription has none.
EdgeKit reads its synced copy of the billing provider’s record each time. It never trusts the contents of a notification, so notifications that arrive out of order or twice change nothing extra.
Which grants follow the billing provider
Section titled “Which grants follow the billing provider”Every grant tied to a user subscription, whoever sold it: EdgeKit checkout, your own checkout, or a sale made before your organization used EdgeKit. Checkout writes its grant at the purchase. For a user subscription with no grant, EdgeKit creates one when the user subscription is trialing, active, past due or paused and its price is on a deployed offer. One with a future start gets its grant when it starts. One that has ended gets none.
The grant goes to the user already linked to the billing account. If there is none and the account’s code is a user’s id, as EdgeKit checkout sets it, the account is linked to that user whatever its email address. Otherwise the grant goes to the user who has the billing account’s email address, and the account is linked to them. If no user has that address, EdgeKit creates one, with the address unverified. A billing account with no email address, or whose user was erased, gets no grant. A billing account that belongs to a user organization gets no grant, and never one for a single person.
If your organization has a subject resolver, EdgeKit asks it about an unlinked Recurly account before reading the email address, and the account gets a grant only when the answer is a person. See Tell EdgeKit which billing accounts are companies.
A price that no deployed offer carries gives its user subscriptions no access until it is attached to an offer and deployed. User subscriptions already on it get their grants on their next billing event, or all at once when EdgeKit runs a backfill.
When several deployed offers share the price, a sale made through EdgeKit checkout gets its grant on the offer it sold. Any other user subscription gets it on the offer naming the coupon it redeemed, or else on the offer naming no coupon. Among offers naming the same coupon, or none, the first one the price was attached to wins, until you select Send them here on another of them. If every offer on the price names a coupon the user subscription never redeemed, it gets no grant until EdgeKit maps it.
What each change does
Section titled “What each change does”| In your billing provider | What happens to the grant |
|---|---|
| A renewal: the current period now ends later | Its expiry moves to the new period end. |
| A payment fails and the account goes past due | Depends on Access during dunning, below. While the user subscription’s status is past due, the expiry does not move. |
| The payment is collected | A grant suspended for dunning becomes active again. |
| The user subscription is paused | Depends on Access during pause, below. |
| A paused user subscription becomes live again | A grant suspended for the pause becomes active again. |
| It moves to a price on another deployed offer | The same grant moves to that offer and its product, unless its own offer also carries the new price. Expiry and status follow the other rows. |
| It is cancelled: it will not renew | Nothing is written. The grant runs to its expiry and then stops giving access. |
| It ends at or after the grant’s expiry | Nothing is written. The grant has already expired. |
| It ends before the grant’s expiry | The grant is revoked, with a reason. |
| It ends while the grant is suspended | The grant is revoked, with a reason. |
| It has a future start | Nothing yet. |
A refund or a chargeback on its own does not withdraw access. It sets the reason when the user subscription ends early.
Status reasons
Section titled “Status reasons”A grant that is not active carries one reason:
dunning: suspended for an unpaid invoice, or revoked because the user subscription ended for non-payment.paused: suspended for a pause.refundorchargeback: revoked, and the current period had a refund, or the user subscription had a chargeback in any period. A chargeback wins over a refund.billing_provider_terminated: revoked because the billing provider ended the user subscription for any other reason.
A revoked grant never becomes active again. If a refund or chargeback arrives after the grant was revoked as
billing_provider_terminated, the reason is corrected and the status stays revoked.
The grants list in Revenue › Audience › Grants shows each grant’s status and reason. Each grant’s screen shows its history: every transition, when it happened, who made it (the billing provider, for these) and the billing provider’s reference.
Your access policy
Section titled “Your access policy”Two settings decide what a failed payment and a pause do. Both apply to your whole organization, and the console shows them read-only, as Access during dunning and Access during pause under Configuration on each site’s screen in Delivery › Delivery › Sites. EdgeKit sets them for your organization.
Access during dunning:
grant, the default: access continues while your billing provider retries the payment. If your billing provider gives up and ends the user subscription before the grant’s expiry, the grant is revoked withdunning.suspend: an unpaid invoice suspends the grant withdunninguntil it is paid.
Access during pause:
suspend, the default: a pause suspends the grant withpaused. No access now, and the expiry does not change.grant: access runs to the end of the paid period and the grant then expires. The pause takes effect at that end.
The policy rides your deployment, so a new value applies from the next deploy.
Retries and proration
Section titled “Retries and proration”Your billing provider does both. EdgeKit has no retry schedule of its own and never charges a card again after a failed payment. It computes no prorated amount. It reads what your billing provider did and moves the grant.
While a card is retried
Section titled “While a card is retried”Your billing provider retries a failed payment on the schedule you set there, and sends its own emails about it. EdgeKit sends none.
What the grant does:
- With Access during dunning set to
grant, the default, nothing is written. The grant staysactiveand keeps its expiry. While the user subscription’s status is past due, a later period end does not move the expiry. It moves once the payment is collected. - With
suspend, the grant issuspendedwith the reasondunningwhile an invoice is unpaid. - When a retry collects the payment, a suspended grant becomes
activeagain and the expiry moves to the new period end. - When your billing provider gives up and ends the user subscription before the grant’s expiry, or while the
grant is suspended, the grant is
revokedwith the reasondunning.
What the user sees:
- Access as the grant gives it: unchanged while the grant is
activeand not past its expiry, none while it is suspended. - On the account page, a user subscription whose status is past due says that the payment failed and shows the card form first, already open.
- A new card: Recurly retries the failed invoice when the card is replaced. Stripe charges the new card at its next retry.
How each billing provider’s states map to past due is on its page under Integrations.
Proration
Section titled “Proration”Your billing provider computes every prorated amount and charges it.
- A purchase through checkout or a checkout page charges the offer’s price, or starts its trial. Nothing is prorated.
- An upgrade on the account page applies at once. The page asks your billing provider what the change costs, shows that amount, and the billing provider charges it. See Change to another offer.
- A frequency change on the account page applies at the next renewal, at the new price. Nothing is prorated.
- A cancel stops the next renewal. The paid period runs to its end and EdgeKit refunds nothing.
- A change you make in your billing provider is prorated by its own settings. EdgeKit syncs the result and moves the grant as it does for any other change.
How fast a change reaches the user
Section titled “How fast a change reaches the user”The grant moves when EdgeKit syncs the billing provider’s record, which follows the notification your billing provider sends.
In the browser, decisions read a signed copy of the user’s grants. It is made when the user’s EdgeKit session is read, lasts 15 minutes, is extended while the user keeps reading, and is never used more than one hour after it was made. So a grant change can take up to an hour to reach a user who keeps reading. A server’s decide request for a user reads their grants directly.
What EdgeKit never does
Section titled “What EdgeKit never does”- It never writes to your billing provider from a grant change, and never cancels, refunds or pauses anything there. Do those in your billing provider.
- It never puts a price or a currency on a grant. Money lives in your billing provider’s records, which the Billing provider screens show. See Read your billing provider’s records.