Create Invoice White Label

Create Invoice White Label

You can get paid by showing your customers the addresses we give you, using your own style, colors, logo and domain.
You can use the Payid19 crypto payment gateway on white label mode.
If you send the white_label value as "1" when creating an invoice at the create_invoice endpoint, you will receive a list of coins as JSON that you can use to receive payments.

#First Step

If you send the white_label value as "1" when creating invoice, you will be receive a list and information of the coins you can use.

Response

Parameters to be returned from the service are as follows:

Input Name Type Description
status String success or error
message JSON name (USDT,BTC,ETH,BNB,TRX)
long_name (USD TETHER, Bitcoin, Ethereum, Binance Coin, Tron)
network (TRC20, ERC20 anb BEP20 for USDT)
icon (icon for coin)
decimals(decimal fof human readable)
price (amount converted according to coin)
invoice_id (id of created_invoice)
Example view of the incoming response in raw format:

#Second and Last Step: Getting Address

The invoice has been created and we have the list of coins we can use, now let's get the wallet address that we will show to our customer to receive payments.

POST https://payid19.com/api/v1/get_address

Requests

Parameters to be sent to the service are as follows:

Input Name Type Required Description
email String Yes your clients email address
coin String Yes Which coin will be used when receiving payment?
invoice_id Integer Yes For which invoice you will receive payment?
network String Yes Network for selected coin

Response

Parameters to be returned from the service are as follows:

Input Name Type Description
status String success or error
address String Wallet address you will show to your customer
coin String Coin name
network String Network
amount String the amount your customer is expected to pay
icon String Icon URL of the coin
expiration_date String Invoice expiration time (in minutes)
address_qrcode String SVG qr code for address
Example usage:
<img height="100%" src="data:image/svg+xml;base64,<?php echo $recievingqrcode;?>">
amount_qrcode String SVG qr code for amount
Example usage:
<img height="100%" src="data:image/svg+xml;base64,<?php echo $recievingqrcode;?>">

Sample Codes


Getting Address Sample

<?php
$url= 'https://payid19.com/api/v1/get_address';

$post = [
'email' => '[email protected]',
'coin' => 'USDT', //BTC, ETH, BNB, TRX(get from first step)
'invoice_id' => 'your_invoice_id', //get ftom first step
'network' => 'TRC20', //TRC20, ERC20, BEP20(get from first step)
];

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, true);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS,http_build_query($post));
$result = curl_exec($ch);
curl_close($ch);

if(json_decode($result)->status=='error'){
//error
echo json_decode($result)->message;
}else{
//success
echo json_decode($result)->address;
echo json_decode($result)->coin;
echo json_decode($result)->network;
echo json_decode($result)->amount;
echo json_decode($result)->icon;
echo json_decode($result)->expiration_date;
//echo json_decode($result)->address_qrcode;
//echo json_decode($result)->amount_qrcode;
}
Are you a developer? Please look at our New Developer Referral Program , Earn %50.