Skip to the content

NeroPay DocsNeroPay Docs

  • Docs
  • NeroPAY Website
  • System Status
  • Contact Support
  • Docs
  • NeroPAY Website
  • System Status
  • Contact Support
  • Common Questions

    • About NeroPay

    • Devices & Solutions

    • Setup & Onboarding

    • Fees, Rewards & Pricing

    • Payments & Payouts

    • Security, Disputes & Compliance

    • Support

  • Dashboard

    • How To Pay Out Funds

    • Creating A Ticket For Customer Support

    • How to Set Up and Use NeroPay’s Transfer Schedule

    • How To Link Your Bank Account

    • Transactions

    • Reports Overview

    • Add Bank Account

    • Rewards & Gifts

    • Transfer Money

    • Transfer History

    • Account & Profile Settings

    • Money Payout Schedule

    • Top Up Money

    • Tap to Pay

  • NeroPay Terminal

    • How To Use The NeroPay Card Terminal

    • NeroPay Terminal Onboarding Guide

    • Setup Card Terminal

    • Install NeroPay Terminal to Tablet

    • Terminal Security Settings

    • Display Timeout

  • Checkout API

    • Rest API

    • Ready-to-Use Plugins

      • WooCommerce
      • NeroPay for Perfex Crm
  • Merchant Registration

    • Verification

    • How To Sign Up

    • How to Sign Up and Apply for a NeroCard

    • Complete Your Registration

    • Verify Bank Account

  • Bookings

    • Bookings Overview

    • Booking Settings

  1. Docs
  2. Checkout API
  3. Rest API

Rest API

Introduction

This section describes the NeroPAY payment gateway API.


NeroPAYAPI is easy to implement in your business software. Our API is well formatted URLs, accepts cURL requests, returns JSON responses.

You can use the API in test mode, which does not affect your live data. The API key is use to authenticate the request and determines the request is valid payment or not. For test mode just use the sandbox URL and In case of live mode use the live URL from section Initiate Payment.

Supported Currencies

This section describes the currencies supported by NeroPAY


NeroPAYallows to make transaction with below currencies. Any new currency may update in future.

Currency NameCurrency SymbolCurrency Code
British Pound£GBP
Euro€EUR
Indonesian RupiahRpIDR

Get The Api Key

This section describes how you can get your api key.


Login to your NeroPAY merchant account. If you don't have any? Click Here

Next step is to find the Api Key menu in your dashboard sidebar. Click the menu.

The api keys can be found there which is Public key and Secret key. Use these keys to initiate the API request. Every time you can generate new API key by clicking Generate Api Key button. Remember do not share these keys with anyone.

Initiate Payment

This section describes the process of initaiing the payment.


To initiate the payment follow the example code and be careful with the perameters. You will need to make request with these following API end points.

Live End Point: https://eu.neropay.app/payment/initiate

Test End Point: https://eu.neropay.app/sandbox/payment/initiate

Test Mode Mail: test_mode@mail.com

Test Mode Verification Code: 222666

Request Method: POST

Request to the end point with the following parameters below.

Param NameParam TypeDescription
public_keystring (50)Required Your Public API key
identifierstring (20)Required Identifier is basically for identify payment at your end
currencystring (4)Required Currency Code, Must be in Upper Case. e.g. GBP, USD, EUR
amountdecimalRequired Payment amount.
detailsstring (2000)Required Details of your payment or transaction (ordered products).
ipn_urlstringRequired The url of instant payment notification.
success_urlstringRequired Payment success redirect url.
cancel_urlstringRequired Payment cancel redirect url.
customer_namestring (150)Required Customer name.
customer_emailstring (150)Required Customer valid email.
customer_phonestring(20)Optional Customer phone number.
customer_addressstring(150)Optional Customer address.
customer_shipping_methodstring(150)Optional Order Shipping Method


Example PHP code

'DFU80XZIKS',
'currency' => 'GBP',
'amount' => 100.00,
'details' => 'Purchase T-shirt',
'ipn_url' => 'http://example.co.uk/ipn_url.php',
'cancel_url' => 'http://example.co.uk/cancel_url.php',
'success_url' => 'http://example.co.uk/success_url.php',
'public_key' => 'your_public_key',
'customer_name' => 'John Doe',
'customer_email' => 'john@mail.com',
'customer_phone' => '01234567890',
'customer_address' => 'ABC Road, Stockport, SK785KJ',
'customer_shipping_method' => 'Delivery',

];

//live end point
$url = "https://eu.neropay.app/payment/initiate";

//test end point
$url = "https://eu.neropay.app/sandbox/payment/initiate";

$ch = curl_init();
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_POSTFIELDS, $parameters);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$result = curl_exec($ch);
curl_close($ch);

//$result contains the response back.
?>



Example Responses

//Error Response.
{
"error": "true",
"message": "Invalid api key"
}

//Success Response.
{
"success": "ok",
"message": "Payment Initiated. Redirect to url.",
"url":"http://example.com/initiate/payment/checkout?payment_id=eJSAASDxdrt4DASDASVNASJA7893232432cvmdsamnvASF"
}

Validate The Payment and IPN

This section describes the process to get your instant payment notification.


To initiate the payment follow the example code and be careful with the perameters. You will need to make request with these following API end points.

End Point:Your business application ipn url.

Request Method:POST

You will get following parameters below.

Param Name Description
statusPayment success status.
identifierIdentifier is basically for identify payment at your end.
signatureA hash signature to verify your payment at your end.
dataData contains some basic information with charges, amount, currency, payment transaction id etc.


Example PHP code


<?php
//Receive the response parameter
$status = $_POST['status'];
$signature = $_POST['signature'];
$identifier = $_POST['identifier'];
$data = $_POST['data'];

// Generate your signature
$customKey = $data['amount'].$identifier;
$secret = 'YOUR_SECRET_KEY';
$mySignature = strtoupper(hash_hmac('sha256', $customKey , $secret));

$myIdentifier = 'YOUR_GIVEN_IDENTIFIER';

if($status == "success" && $signature == $mySignature && $identifier == $myIdentifier){
//your operation logic
}
?>





Views: 243
How do you feel about this docs?
0 0 0
In this page:

    © 2025 NeroPay Docs

    Supported by Nero Group

    To the top ↑ Up ↑