🇺🇸
ReelPay Payment
  • REELPAY - FOR MERCHANT
    • What is ReelPay
    • ReelPay API Introduction
    • Contact Us
  • ReelPay - FOR DEVELOPER
    • To Get Started
      • Signature
      • API Specification Common Rules
  • Payment API
    • Hosted Checkout Page Integration
    • Native Checkout Integration
    • API Interface
    • Webhook Notification
  • SDK Instruction
  • Error Code
  • CHANGES
    • Change Record
  • REELPAY POLICY
    • ReelPay Privacy Policy
    • Disclaimer for Purchasers
    • Terms of Use
    • AML/CTF Policy
Powered by GitBook
On this page
  • Signature Guide
  • Header
  • Signature Algorithm
  1. ReelPay - FOR DEVELOPER
  2. To Get Started

Signature

Before the API integration, you need to get your AppId and AppKey.

PreviousTo Get StartedNextAPI Specification Common Rules

Last updated 6 months ago

ReelPay API authenticates your requests by AppId and AppKey. , go to , you can find your AppId and AppKey on this page.

AppId and AppKey carries many privileges, so be sure to keep it secure. Please do not share your developer information in publicly accessible areas such as GitHub, client code, etc.

Signature Guide

Header

Name
Type
Description

X-Sign

string

Signature

X-Timestamp

int

Timestamp(sec)

X-Appid

string

Merchant APPID

content-type

string

application/json

Signature Algorithm

// sign (golang)
func hmacSHA256Sign(appKey, timestamp string, body interface{}) (string, error) {
   jsonStr, err := json.Marshal(body)
   if err != nil {
      return  "", err
   }
   sha256Mac := hmac.New(sha256.New, []byte(appKey))
   _, err = sha256Mac.Write(append(jsonStr, []byte(timestamp)...))
   if err != nil {
      return "", err
   }
   return hex.EncodeToString(sha256Mac.Sum(nil)), nil
}
Log in to your ReelPay account
AppManage page