Skip to main content

Basic Subscriptions

A basic subscription is a subscription that begins immediately, has a fixed payment amount, recurs once per time unit, and continues in perpetuity or until canceled.

You can make any payment a recurring payment by passing the recurrence field to the widget.

Code Example

This code will create a simple subscription that begins immediately and bills the user $10 once a month in perpetuity.

<button onclick="atlos.Pay({
merchantId: '8XOZ64KC9X',
orderId: '123456',
orderAmount: 10.00,
orderCurrency: 'USD',
userName: 'John Smith',
userEmail: 'name@email.com',
recurrence: atlos.RECURRENCE_MONTH})">
Pay & Subscribe
</button>

Recurrence Values

ValueTime Unit
atlos.RECURRENCE_NONEone-time payment, no recurrence
atlos.RECURRENCE_DAYday
atlos.RECURRENCE_WEEKweek
atlos.RECURRENCE_MONTHmonth
atlos.RECURRENCE_YEARyear