Skip to content
This repository was archived by the owner on Oct 24, 2023. It is now read-only.

CYBAVO/API_CHECKSUM_CALC

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Overview

  • The repository provides how to calculate the API checksum and verify callback integrity for the CYBAVO SOFA System.

API Authentication

  • The CYBAVO SOFA system verifies all incoming requests. All requests must include X-API-CODE, X-CHECKSUM headers otherwise caller will get a 403 Forbidden error.

How to acquire and refresh API code and secret

  • Request the API code/secret from the Wallet Details page on the web control panel for the first time.

How to make a correct request?

  • Put the API code in the X-API-CODE header.

  • Calculate the checksum with the corresponding API secret and put the checksum in the X-CHECKSUM header.

    • The checksum calculation will use all the query parameters, the current timestamp, user-defined random string and the post body (if any).
  • The final request must conform following conditions:

  • Refer to the code snippets to know how to calculate the checksum for API.

Callback Integrity Verification

  • For callback integrity verification

    • Step 1: Calculate the checksum of the combination of callback payload and API secret.
    • Setp 2: Compare with the X-CHECKSUM header.
  • Refer to the code snippets to know how to calculate the checksum of the callback.

About

Describe how to calculate the api checksum

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published