Recurring
- Description: Make recurring payment form subscribed customer
- Path:
/hosted-checkout/recurring
- Method:
POST
- Request Header:
Content-Type: application/json
#
Request ParametersParameter | Type | Required/optional | Description |
---|---|---|---|
merchantId | string | Required | Merchant identifier |
amount | number | Required | Recurring amount |
merchantReference | string | Required | An unique reference to identify the recurring order, different from the reference of the parent order |
parentOrderId | number | Required | Order ID which is returned from response of PayAPI Create: /hosted-checkout/create |
#
Example:#
Response ParametersParameter | Type | Required/optional | Description |
---|---|---|---|
responseCode | string | Required | Payment Gateway response code |
message | string | Required | Payment Gateway response message |
order | object | Required | |
order.id | number | Required | Order identifier |
order.merchantId | number | Required | Merchant identifier which own this order |
order.merchantReference | string | Required | Your reference for the order |
order.currency | string | Required | 3-Letters ISO currency code of the order |
order.amount | number | Required | Order amount |
order.netAmount | number | Required | Net amount of the order |
order.cardType | string | Required | Card type of the order |
order.email | string | Required | Customer's email if provided |
order.createTime | datetime | Required | Timestamp when the order is created. Maintained by the Payment Gateway |
order.updateTime | datetime | Required | Timestamp when the order is last updated. Maintained by the Payment Gateway |
order.status | string | Required | Status of the order. Maintained by the Payment Gateway |
order.recurring | boolean | Required | Flags the order is a recurring order or not |
transaction | object | Required | |
transaction.id | number | Required | Transaction identifier for the recurring transaction |
transaction.merchantId | number | Required | Merchant identifier which own this transaction |
transaction.type | string | Required | Transaction type |
transaction.amount | number | Required | Transaction amount |
transaction.status | string | Required | Status of the transaction. Maintained by the Payment Gateway |
transaction.maskedPan | string | Required | Masked card number of the transaction if supported by the payment method |
transaction.stan | string | Required | System trace audit number for the transaction |