QorePay logo
QorePay logo

Recurring payments

Overview

Tokenisation allows you to implement recurring payments by saving a token representing the customer's card or bank account and using that on subsequent charges.

Unlike payment plans, you are responsible for managing the customer's subscription yourself—the cancellation, reactivation, and charging of them are all your responsibility.

To implement a recurring charge, first, you'll need to charge the customer normally, for instance, via direct charge or the QorePay payments page.

With QorePay, you can tokenise customer Cards and Bank account details for future charges.

How it works

When a customer has made a payment and tokenisation has been successful, the purchase_id from the purchase is the recurring token that can be stored and used for future charges using the Charge endpoint.

  • Create a purchase to tokenise recurring payment.

    cURL

    
      curl -X 'POST'
        'https://gate.qorepay.com/api/v1/purchases/'
        -H 'Authorization: Bearer {{Your QorePay token}}'
        -H 'Accept: application/json'
        -H 'Content-Type: application/json'
        -d '{
        "purchase": {
          "products": [
            {
              "name": "test",
              "price": 100
            }
          ]
        },
        "brand_id": "5c523a6d-cad0-462e-b9bb-79b16495f3b9",
      "client_id": "98e9cf98-dbd4-4a84-a304-dffbda2bef19", 
      }'
    
  • Get recurring token

    CURL

    
      curl -X 'GET'
        'https://gate.qorepay.com/api/v1/clients/{{client_id}}/recurring_tokens/'
        -H 'Authorization: Bearer {{Your QorePay token}}'
        -H 'Accept: application/json'
        -H 'Content-Type: application/json'
    
  • Utilise recurring payment tokens to Charge a customer card or bank account.

    CURL

    
      curl -X 'POST'
        'https://gate.qorepay.com/api/v1/purchases/{{purchase_id}}/charge/'
        -H 'Authorization: Bearer  {{Your QorePay token}}'
        -H 'Accept: application/json'
        -H 'Content-Type: application/json'
        -d '{
        "recurring_token": "82e6eb62-90e8-405c-9ec9-d43affba41d2"
      }'
    

ON THIS PAGE