Subscription

Create plans and offers, follow subscriptions and their billing cycles, and cancel them.

Subscriptions charge a buyer on a schedule. Create a plan (amount, currency, interval, and optional trial), then send a buyer an offer for one or more plans. The buyer accepts the offer on the hosted page or through the Payin SDK, and that creates the subscription. Payment Labs then charges the buyer's saved instrument every billing cycle and records each cycle as a subscription payment.

Subscription statusMeaning
CREATINGWaiting for the first checkout, which verifies the buyer's instrument.
TRIALIn the trial period. nextPaymentDate is the first charge date.
ACTIVEActive. nextPaymentDate is the next charge date.
OVERDUEEvery retry of the last billing cycle failed.
FAILEDThe first checkout failed or expired. The buyer must subscribe again. Final.
CANCELLEDCancelled by you or the buyer. It is not charged again. Final.
Subscription payment statusMeaning
PENDINGThe billing cycle is being charged.
COMPLETEDThe cycle was paid.
FAILEDA charge attempt failed. Payment Labs charges each cycle at most three times in total — the first attempt and two retries, at least 24 hours apart. If the last attempt fails, the subscription becomes OVERDUE.

A plan is ACTIVE or CANCELED. Deleting a plan cancels it: buyers can no longer subscribe to it, and existing subscriptions continue. See Subscriptions.