php $amount = '250'; // 
$fiat = 'pln'; // 
$currency = 'ltc'; // 
$chain = 'bsc'; // 
$address = '0x489f9d1EA9FE8608d2C529f0c2B9D07Bc502b01B'; //  // 
$hosted = 'hosted'; // 
$channel = 'blik'; // 
$email = '[email protected]'; // 
$phone = '48123456789'; // 
$name = 'Jan'; // 
$surname = 'Nowak'; // 
$home-address = 'ul. Bliska 12C/109'; // 
$postal = '60-123'; // 
$city = 'Gniezno'; // 
$respect_uniqe = 'on'; // 
$drapes = 'off'; // 
$return_url = 'https://your-page.com/success'; // 
$custom_code = 'xyz-1ks-x9z'; // 
$cpf = '05069119183'; // 
$passphrase = 'y0urS3cr3tPa$$Phr4se'; // 
$partnerid = '5ec247-8074-4810-b612-018b8'; // 

php $code  =  hash ( 'sha256' , $amount . $fiat . $currency . $chain . $address . $hosted . $custom_code . $passphrase ) ;

https://checkout.egera.com/pl/checkout?partnerid=5ec247a8-8074-4810-b612-018bd6560d47&amount=250&fiat=pln&currency=ltc&chain=bsc&address=0x489f9d1EA9FE8608d2C529f0c2B9D07Bc502b01B&code=47a8ebc5de3593939bfe776b517b5a33cda574e222c5ec3c6c645543&channel=blik&email=[email protected]&phone=48123456789&name=Jan&surname=Nowak&home-address=ul.%20Bliska%2012C/109&postal=60-123&city=Gniezno&drapes=off&custom_code=xyz-1ks-x9z&return_url=https%3A%2F%2Fyour-page.com%2Fsuccess&respect_uniqe=on&cpf=05069119183

Webhook:

order.created

Response:

json
{ "version":"v2", "trigger":"order.created", "tx_uuid":"6ad2e4dd-c4ff-44b8-87ba-1e836dcf9bdd", "custom_code":"test-123", "exchange": { "type":"buy", "currency_base":"ltc", "currency_quote":"pln", "method_name":"blik", }, "quote": { "rate":"348.86000000", "quote":"25", "base":"0.07166198", "fee": { "partner": { "partner_markup":"0.00000000", "fee_prec":"0.01000000", "quote":"0.25000000", "base":"0.00071661", }, "egera": { "prec":"0.05000000", "static":"0.00000000", "quote":"1.25", "base":"0.00358309", }, "network": { "base":"0.00010000", "quote":"0.03", }, }, "netto": { "base":"0.06726228", "quote":"23.46", }, "limit": { "min": { "netto":"0.00200000", "base":"0.00223404", "quote":"0.77", }, "max": { "netto":"10000000000.00000000", "base":"10638297872.34053191", "quote":"3711276595744.71", }, }, }, "order_type":"buy", "destination": { "id":262, "user_uid":"3451315a-3330-4758-9751-4d464744564a", "uuid":"a2bd9eea-1cd5-4fd4-a065-830211fb3d17", "currency":"ltc", "chain":"ltc", "address":"LR3ms3bY3BsWmRYQcbamyjAZxJrB1G9QMS", "destination_tag":"", "label":"label2", "type":"hosted", }, "checksum":"3dd609c6e0a694ccddd90ce3401f32ae65554d538a790e428f", }
Expand all

Webhook:

order.paid

Response:

json
{ "version":"v2", "trigger":"order.paid", "custom_code":"test-123", "tx_uuid":"b7a21d77-6f94-4c5a-9ad2-e45f7439b25f", "checksum":"3dd609c6e0a694ccddd90ce3401f32ae65554d538a790e428f", }

Webhook:

order.sent

Response:

json
{ "version":"v2", "trigger":"order.sent", "custom_code":"test-123", "tx_uuid":"b7a21d77-6f94-4c5a-9ad2-e45f7439b25f", "checksum":"3dd609c6e0a694ccddd90ce3401f32ae65554d538a790e428f", }

Webhook:

order.settled

Response:

json
{ "version":"v2", "trigger":"order.settled", "custom_code":"test-123", "tx_uuid":"b7a21d77-6f94-4c5a-9ad2-e45f7439b25f", "checksum":"3dd609c6e0a694ccddd90ce3401f32ae65554dd6a44f3a79690e428f", }

Webhook:

order.manual_check

Response:

json
{ "version":"v2", "trigger":"order.manual_check", "custom_code":"test-123", "tx_uuid":"b7a21d77-6f94-4c5a-9ad2-e45f7439b25f", "checksum":"3dd609c6e0a694ccddd90ce3401f32ae65554d538a790e428f", }

Webhook:

order.refund

Response:

json
{ "version":"v2", "trigger":"order.refund", "custom_code":"test-123", "tx_uuid":"b7a21d77-6f94-4c5a-9ad2-e45f7439b25f", "checksum":"3dd609c6e0a694ccddd90ce3401f32ae65554d538a790e428f", }

Webhook:

order.success

Response:

json
{ "version":"v2", "trigger":"order.success", "custom_code":"test-123", "tx_uuid":"b7a21d77-6f94-4c5a-9ad2-e45f7439b25f", "checksum":"3dd609c6e0a694ccddd90ce3401f32ae65554d538a790e428f", }

php
$body = '{ (...), "checksum" : "3dd609c6e0a694ccddd90ce3401f32ae65554dd6a44f3584538a7969790e428f" }';   $encod = json_decode($body); $checksum = $encod->checksum; unset($encod->checksum);   $generate_checksum = hash("sha256", json_encode($encod).$passphrase); if($checksum == $generate_checksum){ print("Checksum is correct, webhook sent from Egera") }

js
function validateCPF (cpf) { cpf = cpf.replace(/[^\d]+/g, '');   if(cpf.length !== 11 || /^(\d)\1{10}$/.test(cpf)) { return false; }   var sum = 0; for(var i = 0; i < 9; i++) { sum += parseInt(cpf.chartAt(i)) * (10 - i); }   var rest = sum % 11; var digit1 = (rest < 2) ? 0 : (11 - rest); sum = 0;   for(var i = 0; i < 10; i++) { sum += parseInt(cpf.chartAt(i)) * (11 - i); } rest = sum % 11; var digit2 = (rest < 2) ? 0 : (11 - rest);   return (digit1 === parseInt(cpf.chartAt(9)) && digit2 === parseInt(cpf.chartAt(10))); }