Logo

Instant Payments

Don't forget to specify the "platform ID" and the "Secret key."

Request limit: once per second. Otherwise, the account will be blocked

01

CURL:

curl -X POST -d "payment_id=10&platform_id=1&amount=1&address_to=123456&hash=a81983b1...tb8kfyhjd" https://api.passimpay.io/withdraw

02

PHP:

$url = 'https://api.passimpay.io/withdraw' ;
$platform_id = 0 ; // Platform ID
$apikey = '1111-2222-3333-4444-5555' ; // Secret key
$payment_id = 10 ; // currency ID
$address_to = '' ; // recipient's wallet address. For Ripple XRP, network TON format: address : destinationTag
$amount = 1 ; // payment amount
$symbol = 'USD' ; // Which currecny is the account created in. Lenght :3 character in uppercase. Not required

$data = [
   'payment_id' => $payment_id,
   'platform_id' => $platform_id,
   'amount' => $amount,
   'address_to' => $address_to,
];
$payload = http_build_query($data);
$hash = hash_hmac( 'sha256' , $payload, $apikey);
$data['hash'] = $hash;

$post_data = http_build_query($data);

$curl = curl_init();
curl_setopt($curl, CURLOPT_HEADER, false);
curl_setopt($curl, CURLOPT_HTTPHEADER, ['Content-Type: application/x-www-form-urlencoded']);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_POSTFIELDS, $post_data);
curl_setopt($curl, CURLOPT_URL, $url);
curl_setopt($curl, CURLOPT_POST, true);
curl_setopt($curl, CURLOPT_ENCODING, 'gzip');
curl_setopt($curl, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false);
$result = curl_exec($curl);
curl_close( $curl );

$result = json_decode($result, true);

// Response options
// In case of success
if (isset($result['result']) && $result['result'] == 1)
{
    $address_to = $result['address_to']; class="red">],
   $payment_id = $result['payment_id'];
   $amount = $result['amount'];
   $txhash = $result['txhash']; // hash of the transaction in the passimpay system
}
// In case of an error
else
{
   $error = $result['message']; // Error text
}

WE USE COOKIE FILES

We use cookie files to improve the website's operation and provide personalized offers and services. They allow us to collect and analyze users' activity on the website and improve our service. By continuing to use the PassimPay website, you automatically accept our use of cookies. If you disagree with our use of cookies, please do not visit the PassimPay website.