# Workflow

# Business Flow Lifecycle

  1. The merchant creates a payment order through the Create Payment Order API;

  2. Hambit responds and returns the cashier page link;

  3. The merchant displays the cashier page link to the consumer, and the consumer completes the payment on the cashier page;

  4. After the consumer completes the payment, they are redirected to the link provided by the merchant. Hambit notifies the transaction result of the order through the Payment Callback.

    img

# Technical Parameters Integration Process

  1. Initiate Request (with the merchant's AccessKey)
  2. System Status Check
    1. If the system service is abnormal ➜ Return: SERVICE_UNAVAILABLE
  3. Request Header Validation
    1. If the request header format is incorrect ➜ Return: HEADER_INVALID
    2. If the timestamp is inaccurate ➜ Return: INACCURATE_TIMESTAMP
  4. AccessKey Validation
    1. If the AccessKey does not exist or is incorrect ➜ Return: ACCESS_KEY_INVALID
  5. AccessKey Permission Check
    1. If permission is insufficient ➜ Return: ACCESS_KEY_PERMISSION_DENIED
  6. QPS Rate Check & IP Permission Check
    1. If the access frequency is too fast ➜ Return: ACCESS_SPEED_TOO_FAST
    2. If the IP is unauthorized ➜ Return: IP_LIMITED_PERMISSIONS
  7. Parameter Format and HTTP Method Check
    1. If the parameters are incorrect ➜ Return: PARAMS_INVALID
  8. Signature Verification
    1. If the signature is incorrect ➜ Return: SIGN_ERROR

img