Recurring Payment | Redirection

Execute Payments through redirecting for card payments

*Steps**

1. Call ExecutePayment using the RecurringModel

You will call ExecutePayment using the PaymentMethodId of the payment method on which the recurring payment is enabled for your account. You add the RecurringModel to the ExecutePayment request.

{
    "PaymentMethodId": 2,
    "invoiceValue": 20,
    "RecurringModel": {
        "RecurringType": "Daily",
        "IntervalDays": null,
        "Iteration": 1,
        "RetryCount": 5
    }
}
{
    "IsSuccess": true,
    "Message": "Invoice Created Successfully!",
    "ValidationErrors": null,
    "Data": {
        "InvoiceId": 4283360,
        "IsDirectPayment": false,
        "PaymentURL": "https://demo.MyFatoorah.com/En/KWT/PayInvoice/Checkout?invoiceKey=050712180428336061-bfe90261&paymentGatewayId=22",
        "CustomerReference": null,
        "UserDefinedField": null,
        "RecurringId": "RECUR121809320"
    }
}

2. Redirect the customer to the PaymentUrl

You will redirect your customer to the PaymentUrl you get from ExecutePayment response. The customer will enter their card details on the page, then go to the OTP page and then they are redirected to your CallBackUrl/ErrorUrl.