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
Value | Time Unit |
---|---|
atlos.RECURRENCE_NONE | one-time payment, no recurrence |
atlos.RECURRENCE_DAY | day |
atlos.RECURRENCE_WEEK | week |
atlos.RECURRENCE_MONTH | month |
atlos.RECURRENCE_YEAR | year |