# Generate Signature Request

The integration of the use of credit cards require an additional signature for identification of merchant transactions sent to faspay, when the merchant sends data to the rediredt faspay, the signature is sent along with the redirect process. Signature transmitted is a form of a series of several parameters which are then encrypted using the SHA1 hash algorithm (SHA1 reference).

The parameters in the transaction signature, among others:

1. Merchant ID : ID provided by the system faspay
2. sTXN Password : password provided by the system transaction faspay
3. Merchant Trn ID : merchant transaction numbers
4. Total amount : nominal in two decimal (ex : 1000.00)
5. Transaction ID : the code of the bank (filled 0)

Writing parameters separated by ##, and converted into the format parameter uppercase (is a text format to uppercase / capital all).

Format : (“##" + MERCHANTID + "##" + sTxnPassword + "##" + MERCHANT\_TRANID + "##" + AMOUNT + "##” + TRANSACTIONID + “##”)

example:

\##TEST01##059B8125F##20061123\_003##100.00##50126##

Result convert to algoritma SHA1 :

537BDA3DBD1D7F5D763F9880E18AFC1C83BC9353

Sample Code :

$signaturecc=sha1('##'.strtoupper('Merchant\_ID').'##'.strtoupper('TXN\_PASSWORD').'##'. Strtoupper(‘$Merchant\_TranID’).'##Amount##'.'0'.'##');

{% hint style="success" %}

* Signature moment redirect post first transaction, for TRANSACTION\_ID filled with 0.
* Signature to process VOID / CAPTURE, to be filled with a number of transactions TRANSACTION\_ID response from the Bank / FPG.
* Parameters on the signature change into uppercase format (text format is uppercase / capital all)
  {% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.faspay.co.id/merchant-integration/api-reference-1/credit-card-transaction/additional-api-integration/untitled/generate-signature-request-1.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
