Skip to content

Logo

RazorPay

Advanced Payment Solutions for India's finest disruptors

Website: razorpay.com

Set up Account Provider account

Step 1: Create Provider account

To create an account send connection request at the [email protected] or contact manager directly. Submit the required documents to verify your account and gain access.

Step 2: Get required credentials

Credentials that have to be issued:

  • account_number → account_number
  • key_id → key
  • key_secret → secret

Connect Provider Account

Step 1. Connect Provider account at the Corefy Dashboard

Press Connect at RazorPay Provider Overview page in 'New connection' section and choose Provider account option to open Connection form.

Connect

Enter credentials:

  • Account number
  • API key
  • Secret key

Success

You have connected RazorPay Provider account!

API examples:

Minimum data set to create a payment invoices for upi_inr_hpp service

PAYMENT

POST /api/commerce/payment-invoices HTTP/1.0
{
  "data":{
    "type":"payment-invoice",
    "attributes":{
      "service":"upi_inr_hpp",
      "commerce_account":"Hello_World",
      "currency":"INR",
      "amount":1,
      "flow":"charge",
      "gateway_options":{
        "cardgate":{
          "tokenize":""
        }
      },
      "test_mode":false,
      "options":{
        "allow_partially":false,
        "bypass_hpp":false,
        "send_operation_context_on_return":false
      },
      "reference_id":"b68ec685-d354-4ee5-90dd-2de22bd3fc0a",
      "service_fields":[
      ]
    }
  }
}

Maximum data set to create a payment invoices for bank_transfer_aggregated_inr_hpp service

PAYMENT

POST /api/commerce/payment-invoices HTTP/1.0
{
  "data":{
    "type":"payment-invoice",
    "attributes":{
      "service":"bank_transfer_aggregated_inr_hpp",
      "commerce_account":"Hello_World",
      "currency":"INR",
      "amount":1,
      "flow":"charge",
      "gateway_options":{
        "cardgate":{
          "tokenize":""
        }
      },
      "customer":{
        "reference_id":"8d0f8a65-a934-4863-8b16-345c96457184",
        "email":"[email protected]",
        "phone":"11123456789"
      },
      "test_mode":false,
      "options":{
        "allow_partially":false,
        "bypass_hpp":false,
        "send_operation_context_on_return":false
      },
      "reference_id":"2d537454-a7af-4701-af7a-43287cfcfd43",
      "service_fields":[
      ]
    }
  }
}

Minimum data set to create a payout invoices for upi_inr service

PAYOUT

POST /api/payout-invoices HTTP/1.0
{
  "data":{
    "type":"string",
    "attributes":{
      "test_mode":false,
      "reference_id":"1712663375",
      "description":"string",
      "currency":"INR",
      "amount":10.5,
      "service":"upi_inr",
      "service_amount":10.5,
      "customer":{
        "name":"Gaurav Kumar"
      },
      "fields":{
        "vpa":"gauravkumar@exampleupi"
      },
      "callback_url":"https:\/\/example.com\/payouts\/callback",
      "options":{
        "auto_process":true
      }
    }
  }
}

Maximum data set to create a payout invoices for upi_inr service

PAYOUT

POST /api/payout-invoices HTTP/1.0
{
  "data":{
    "type":"string",
    "attributes":{
      "test_mode":false,
      "reference_id":"1712663375",
      "description":"string",
      "currency":"INR",
      "amount":10.5,
      "service":"upi_inr",
      "service_amount":10.5,
      "customer":{
        "reference_id":"232323******7517",
        "name":"Gaurav Kumar",
        "email":"[email protected]",
        "phone":"7738718874"
      },
      "fields":{
        "vpa":"gauravkumar@exampleupi"
      },
      "callback_url":"https:\/\/example.com\/payouts\/callback",
      "options":{
        "auto_process":true
      }
    }
  }
}

Constants

Сonstants

If some parameters are not sent in the transaction creation request, they will take the values from the set constants.

Here is a list of constants with their corresponding parameters:

  • Name → customer [name]
  • Email → customer [address] [email]
  • Phone → customer [address] [phone]
  • Reference ID → customer [reference_id]

Provider Options

Provider_Options

  • enable_successful_finalization
    • if the option is enabled, transactions will be finalized in the status of success

Question

"Still looking for help connecting your RazorPay account?" Please contact our support team!