# Generate Signature Payment API

Signature transaction is a security feature that allows the merchant to identify the transaction script from faspay system

The signature for tokenization registration API generated by these steps:

1. stringToSign = "##" + strings.ToUpper(username)  + "##" + strings.ToUpper(password) + "##" + strings.ToUpper(merchant\_tranid) + "##" + amount + "##" + "0" + "##"
2. hash sha256 stringToSign in binary
3. encode to base64

**Sample Generate Signature :**

stringToSign = "##" + "MPGS\_PURCHASE" + "##" + "ABCDE" + "##" + "TKN106" + "##" + "10000.00" + "##" + "0" + "##"


---

# 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.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.
