Panduan Signatur Untuk API LinkQu

Timeline

TimeDescription
now - April 2023Signature is optional. Partner can enable this feature by request to our team.
June 2023Signature is mandatory. Every request will rejected if it not implemented.

Untuk memulainya, mohon untuk memerhatikan Timeline ini

Signature akan diterapkan pada Juni 2023, dan setiap mitra B2B harus mengimplementasikan sebelumnya.

Important Note

Kode important note :

$regex = '/[^0-9a-zA-Z]/';
$path = "/transaction/create/va";
$method = "POST";
$clientID = "testing";
$amount = 102500;
$partner_reff = "20230310145315299844";
$serverKey = "LinkQu@2020";
$bank_code = "011";
$expired = "20230310192315";
$customer_id = 123123;
$customer_name = "dududng";
$customer_email = "[email protected]";
$secondvalue = strtolower(preg_replace($regex, "", $amount.$expired.$bank_code.$partner_reff.$customer_id.$customer_name.$customer_email.$clientID));
$firstvalue = $path.$method;
$buildkey = $firstvalue.$secondvalue;
$signature = hash_hmac('sha256', $buildkey, $serverKey);
echo "INPUT: " , $buildkey." \n";
echo "SIGNATURE: " , $signature;

$secondvalue : Harus berisi huruf kecil dan angka

 

List Path

Path berikut ini yang Anda masukkan kedalam kode $Path. Pastikan paht yang Anda masukkan sesuai dengan API yang digunakan.

TransactionPath
Create VA Permata/transaction/create/vapermata
Create VA Other Bank/transaction/create/va
Create Retail Payment Code/transaction/create/retail
Create QRIS/transaction/create/qris
Create Payment – Push to OVO App/transaction/create/ovopush
[LINKAJA/DANA/SHOPEEPAY] Create Payment URL/transaction/create/paymentewallet
[Credit Card] Create Payment/transaction/payment/creditcard
Inquiry Transfer Bank/transaction/withdraw/inquiry
Payment Transfer Bank/transaction/withdraw/payment
Direct Transfer Bank/transaction/withdraw/payment/direct
Inquiry Reload Emoney/transaction/reload/inquiry
Payment Reload Emoney/transaction/reload/payment
Payment Reload Direct/transaction/reload/payment/direct
Inquiry Transfer to Virtual Account/transaction/transferva/inquiry
Payment Transfer to Virtual Account/transaction/transferva/payment
Direct Transfer to Virtual Account/transaction/transferva/payment/direct
Inquiry Transfer to Credit Card/transaction/transfercc/inquiry
Payment Transfer to Credit Card/transaction/transfercc/payment
Cash Withdrawal[INDOMARET]/transaction/tarik/tunai

Formula Signature

Masukkan formula signatur dibawah ini ke dalam kode $signature. Pastikan formula signatur yang Anda masukkan sesuai dengan API yang digunakan.

TransactionFormula Signature
Create VA Other BankSignature is optional. Partner can enable this feature by request to our team.
Create VA Permata$path.$method.$amount.$expired.$bank_code.$partner_reff.$customer_id.$customer_name.$customer_email.$client-id
Create E-Wallet and OVO$path.$method.$amount.$expired.$retail_code.$partner_reff.$customer_id.$customer_name.$customer_email.$ewallet_phone.$client-id
Create Retail Payment Code
Create QRIS
Create Credit Card Payment
Tarik Tunai Indomare$path.$method.$amount.$expired.$retail_code.$partner_reff.$customer_id.$customer_name.$customer_email.$client-id
Inquiry Transfer Bank
Inquiry Reload Emoney
Inquiry Transfer To VA
Inquiry Transfer To CC$path.$method.$amount.$accountnumber.$bankcode.$partner_reff.$client-id
Payment Transfer Bank
Payment Reload Emoney
Payment Transfer To VA
Payment Transfer To CC$path.$method.$amount.$accountnumber.$bankcode.$partner_reff.$inquiry_reff.$client-id

$signToString :

Berikut contoh hasil dari formula $signToString :

/transaction/withdraw/inquiryPOST10000121771020000252008abc12323testing

Hmac SHA256 and Signature Key

Berikut keterangan dari Hash final value using Hmac SHA256 and Signature Key.

$signature : hash_hmac('sha256', $signToString, $serverKey);

Signature result

Berikut kode untuk dimasukkan kedalam key body:

{
"amount" : 25000,
"partner_reff" : "200102083952562712182",
"customer_id" : "31857118",
"customer_name" : "GPI",
"expired" : "20210131230000",
"username" : "{{username}}",
"pin" : "{{pin}}",
"customer_phone" : "081231857418",
"customer_email" : "[email protected]",
"bank_code" : "009",
"signature" : "73gdskjh74hdjh"
}

Share Yuk! 👇

Aplikasi transfer uang super cepat & ringan