Inquiry Delete Token
Used by merchant to delete the Token at Faspay's system
Inquiry request should be sent to the following URL using HTTP POST method:
Request Inquiry Delete Token
Following are the parameters you should post in your request :
transactiontype
Varchar (2)
M
For inquiry request detail token, always used value “6”
response_type
Varchar(1)
C
Indicate how the system should provide the transaction result.
Please always use the value ‘3’ for Credit card API.
merchantid
Varchar (30)
M
Your Faspay e-Payment Merchant ID
payment_method
Varchar(1)
M
Indicate payment method used. Always used value ‘1’ for credit card payment.
token_type
Varchar(1)
M
TOKEN_TYPE = 1 if merchant use tokenization static model and TOKEN_TYPE = 0 if merchant use tokenization dynamic model.
pymt_token
Varchar(40)
M
Use returned token that previous transaction Faspay generate via return URL or Callback.
signature
Varchar(40)
M
Transaction signature of response for data integrity check. generated using SHA1 hash algorithm and the seeds to construct the transaction signature for API request are as follows:
MERCHANTID
TXN PASSWORD
PYMT_TOKEN
The fields must set in the following order, separated by a ## :
(“##" + MERCHANTID + "##" + TXN PASSWORD + "##" + PYMT_TOKEN + “##”)
<?php
$tranid = date("YmdGis");
$token = '09B9C3D7-7365-4233-8C11-1C3A176F9D2B';
$signaturecc=sha1('##'.strtoupper('sophia_store').'##'.strtoupper('abcde').'##'.$token.'##');
$post = array(
"TRANSACTIONTYPE" => '6',
"RESPONSE_TYPE" => '3',
"MERCHANTID" => 'sophia_store',
"PAYMENT_METHOD" => '1',
"TOKEN_TYPE" => '1' //1 untuk static token, 0 untuk dynamic token
"PYMT_TOKEN" => '09B9C3D7-7365-4233-8C11-1C3A176F9D2B',
"SIGNATURE" => $signaturecc
);
$string = '<form method="post" name="form" action="https://fpg.faspay.co.id/payment/api">'; // yang diubah URLnya ke prod apa dev
if ($post != null) {
foreach ($post as $name=>$value) {
$string .= '<input type="hidden" name="'.$name.'" value="'.$value.'">';
}
}
$string .= '</form>';
$string .= '<script> document.form.submit();</script>';
echo $string;
exit;
?> transactiontype
Varchar (2)
M
For inquiry request detil token, always used value “6”
response_type
Varchar(1)
C
Indicate how the system should provide the transaction result.
Please always use the value ‘3’ for Credit card API.
merchantid
Varchar (30)
M
Your Faspay e-Payment Merchant ID
payment_method
Varchar(1)
M
Indicate payment method used. Always used value ‘1’ for credit card payment.
token_type
Varchar(1)
M
TOKEN_TYPE = 1 if merchant use tokenization static model and TOKEN_TYPE = 0 if merchant use tokenization dynamic model.
pymt_token
Varchar(40)
M
Use returned token that previous transaction Faspay generate via return URL or Callback.
signature
Varchar(40)
M
Transaction signature of response for data integrity check. generated using SHA1 hash algorithm and the seeds to construct the transaction signature for API request are as follows:
MERCHANTID
TXN PASSWORD
PYMT_TOKEN
The fields must set in the following order, separated by a ## :
(“##" + MERCHANTID + "##" + TXN PASSWORD + "##" + PYMT_TOKEN + “##”)
Last updated