Authorization & Headers Finpay Widget Bill Payment
For backend based API request/call, Widget API requires HTTP(s) headers that will be explained below.
URL Endpoint
Environment | Method | URL |
---|---|---|
Development | POST | https://devo.finnet.co.id/fin/widget |
Production | POST | https://live.finnet.co.id/fin/widget |
Content-Type and Accept Header
Widget API uses JSON format for input and output, hence it is required to specify JSON as content-type & accept JSON as response. The header specification is as shown below.
- Content-Type: application/json
- Accept: application/json
Signature
The following format for the Widget API signature:
- Sort all parameters outside the parameters that will be sent apart from mer_signature based on index/key in ascending order (ksort).
- Unite each parameter's contents by inserting the % symbol to separate the contents of one parameter from another, convert it to uppercase, and then add merchant_key at the end.
- Convert data to hash value using SHA-256.