NONSTOPAY Documentations
DocumentationNonstopay
  • PAYIN API Documentation
    • I-PREREQUISITE
    • II-HOW TO USE THE API
      • Create invoice CREDIT CARD (POST)
      • Create invoice UPI (POST)
      • Create invoice CRYPTO (POST)
      • Get an invoice status (GET)
      • Get invoice infos (GET)
      • Get invoice history (GET)
      • Get crypto payable currencies (GET)
    • III- INTEGRATION
    • IV- Webhook notification (callbacks)
  • PAYIN NFT API Documentation
    • I-PREREQUISITE
    • II-HOW TO USE THE API
      • NFT - Create invoice (POST)
      • NFT - Get an invoice status (GET)
      • NFT - Get invoice infos (GET)
      • NFT - Get invoice history (GET)
    • III- INTEGRATION
    • IV- Webhook notification (callbacks)
  • PAYOUT API Documentation
    • I-PREREQUISITE
    • II- INTEGRATION
    • III-PAYOUT FUNDS
    • IV-PAYOUT PAYMENT
    • V- Webhook notification (callbacks)
  • Guide for Affiliate
    • Registration and login
    • Features
  • Guide to Smart Settlement
    • Registration and login
    • Features
    • Whitelabel
  • Payment Crypto > Payable currencies value list
  • External Links
Powered by GitBook
On this page
  • REQUEST
  • RESPONSE
  1. PAYIN API Documentation
  2. II-HOW TO USE THE API

Create invoice CREDIT CARD (POST)

POST

PreviousII-HOW TO USE THE APINextCreate invoice UPI (POST)

Last updated 2 months ago

REQUEST

The query is an HTTP POST request where your provided api key will be used as an http header.

API-KEY (Use the api key we’ve sent to you here).

“API-KEY: 0d8d8e89a6cdcd”

parameter name
Example (type)
Info

email

(Mandatory)

aaaaaa@domain.fr

The email of your customer

amount

(Mandatory)

15.04 or 42

point “.” is a decimal symbol

devise

(Mandatory)

USD

The currency of a transaction, according to ISO 4217. The list of supported currencies are : USD,EUR,GBP,INR,ZAR

success_url (optional)

After successful payment.. we will redirect the payment page to the page of this URL

cancel_url (optional)

After canceled payment. we will redirect the payment page to the page of this URL

pending_url (optional)

After payment, if its status is still pending, we will redirect the payment page to the page of this URL

failure_url (optional)

String | null

After failed or decline payment.. we will redirect the payment page to the page of this URL

callbackJson (optional)

Data type : json

Eg : {txId : qktr12eqzg, status : sfrt}

Merchant Data.

After successful or canceled payment. we send it to you through the callback url.

name

(Mandatory in S2S)

John Smith

This name wil be use like Cardholder Name

address1

(Mandatory in S2S)

1000 Lombard St

address2

(Mandatory in S2S)

1000 Lombard St

city

(Mandatory in S2S)

San Francisco

country

(Mandatory in S2S)

DE (Germany)

Your customer’s billing 2-char country code (ISO 3166-1, alpha-2)

state (optional)

New York

postcode

(Mandatory in S2S)

90210

date_of_birth

(Mandatory in S2S)

1990-12-31

Date of birth

card_number

(Mandatory in S2S)

4242424242424242

card_expiry_date

(Mandatory in S2S)

02/2025

card_ccv

(Mandatory in S2S)

000

customer_ip

(Mandatory in S2S)

127.0.0.1

This parameter is mandatory in S2S mode (IPv4)

phone

(Mandatory in S2S)

020 7946 0018

This parameter is mandatory in S2S mode


RESPONSE

Our service will return a JSON object.

For Errors :
  • 50001 : API-KEY required

  • 50002 : email required

  • 50003 : amount required

  • 50004 : devise required

  • 50005 : invalid email address

  • 50006 : this API-KEY can not use this API from this IP address

  • 50007 : invalid API-KEY

  • 50009 : invalid devise

  • 50010 : No IP is linked to your account. Please enter them in your profile page and API block

  • 50011 : Your amount is ABOVE the allowed maximum amount

  • 50012 : Your amount is BELOW the allowed minimum amount

Example :

{ “errorCode”: 50003, “errorMessage” : “amount required” }
Success Response :
  • 0 :

    • - redirectUrl : URL_TO_PAY

      Use this url if you plan an automated redirection and with S2S direct to valid 3D secure

      - html :

      Use this to integrate as an html link on your page. It does not exists in S2S direct

      With S2S direct integration we also send :

      - status : Transaction Status

      - ID : Transation ID

Example :

{
 “errorCode”: 0,
 “redirectUrl”:
“https://usdc.nonstopay.net/widget/sale/create/?token=cyR0YnNOeG99MTE3WW9ne
C56IFc6Q28gR1BHdG83W3FDMzhlfi1WKmpNSUlPfSNTfVh2fTxaUnpES3omZWYqJCRwf3t4fyg%
2BMX90aWt0cWFVdG5pYWo7cXV8MSYmcmZ6dGNhPyInPyFsbXB8YX8zKSg2MSc3ZHVldGp0Z2pnZ
llxc250MTBqZmd5fA%3D%3D”,
 “html”:“<a
href='https://usdc.nonstopay.net/widget/sale/create/?token=cyR0YnNOeG99MTE3
WW9neC56IFc6Q28gR1BHdG83W3FDMzhlfi1WKmpNSUlPfSNTfVh2fTxaUnpES3omZWYqJCRwf3t
4fyg%2BMX90aWt0cWFVdG5pYWo7cXV8MSYmcmZ6dGNhPyInPyFsbXB8YX8zKSg2MSc3ZHVldGp0
Z2pnZllxc250MTBqZmd5fA%3D%3D'></a>”
}

50008 : You cannot create a sale because your wallet is being validated and activated.You will receive a confirmation email as soon as the treatment process is completed.While waiting for the final activation, you can still change it from the profile page

https://usdc.nonstopay.net/api/btn-create-invoice/get/
https://usdc.nonstopay.net/client/profile
https://usdc.nonstopay.net/service/pay/success/
https://usdc.nonstopay.net/service/pay/cancel/
https://usdc.nonstopay.net/service/pay/pendi ng/