# Recurring Payment

**Subscription Type**

<table><thead><tr><th width="181">Type</th><th>Explanation</th></tr></thead><tbody><tr><td>1</td><td>It is of the "Unlimited" type and continues to collect payments at specified intervals until you stop the subscription.</td></tr><tr><td>2</td><td>It is of the "Quantity-Based" type, and payments are collected at the specified payment intervals for the quantity specified at the time of subscription creation. When the specified quantity is reached, the payment stops automatically. For example, if a Quantity-Based subscription is configured with a quantity of 10 for a monthly period, payments are collected 10 times at 1-month intervals.</td></tr></tbody></table>

**RecurringPeriodType**

<table><thead><tr><th width="186">Type</th><th>Explanation</th></tr></thead><tbody><tr><td>1</td><td>Daily</td></tr><tr><td>2</td><td>Biweekly</td></tr><tr><td>3</td><td>2 Biweekly</td></tr><tr><td>4</td><td>Monthly</td></tr><tr><td>5</td><td>3 Monthly</td></tr><tr><td>6</td><td>6 Monthly</td></tr><tr><td>7</td><td>9 Monthly</td></tr><tr><td>8</td><td>Yearly</td></tr></tbody></table>

**Item Type of Sale (Items: Type)**

<table><thead><tr><th width="188">Type</th><th>Explanation</th></tr></thead><tbody><tr><td>1</td><td>Membership Account</td></tr><tr><td>2</td><td>Product</td></tr><tr><td>3</td><td>Servic</td></tr></tbody></table>

**ChannelType**

<table><thead><tr><th width="190">Type</th><th>Explanation</th></tr></thead><tbody><tr><td>1</td><td>API</td></tr><tr><td>2</td><td>Web</td></tr></tbody></table>

**Callback Content**

<table><thead><tr><th width="252.59375">Parameter</th><th width="190">Type</th><th>Explanation</th></tr></thead><tbody><tr><td>SubscriptionId</td><td>int</td><td>Recurring payment identifier (returned from Paywall during creation)</td></tr><tr><td>SubscriptionType</td><td>int</td><td>Recurring payment type</td></tr><tr><td>SubscriptionCode</td><td>string</td><td>Unique code assigned by Paywall to the recurring payment subscription.</td></tr><tr><td>SubscriptionMerchantCode</td><td>string</td><td>The unique code assigned by you to the recurring payment subscription.</td></tr><tr><td>Amount</td><td>decimal</td><td>The amount for the recurring payment subscription.</td></tr><tr><td>Success</td><td>bool</td><td>The success/failure status of the payment.</td></tr><tr><td>FailReason</td><td>string</td><td>If the payment fails, the reason for the failure.</td></tr><tr><td>PaymentId</td><td>int? - nullable</td><td>Payment ID (nullable)</td></tr><tr><td>Attempt</td><td>int</td><td>Payment trial count</td></tr><tr><td>AttemptFinished</td><td>bool</td><td>Trial completed</td></tr></tbody></table>
