Skip to main content

Get Started

Create an business account and lean how to build on Wonder.

Requirements

Starting build

Learning how to complete your first API call.

Implement the signature algorithm

The Wonder Open API adheres to the same signature algorithm. Please implement it in your system with reference to the algorithm description and sample source code.

You can test whether your signature is correct without side effects via the echo API, which does not generate any side effects. The response also includes the message field from the request body.

curl -XPOST -H 'Content-Type: application/json' \
-H 'Credential: ${YourAppID}/${UTC_NOW}/Wonder-RSA-SHA256' \
-H 'Signature: ${BASE64_ENCODED_SIGNATURE_CONTENT}' \
-H 'Nonce: ${Nonce}' \
-H 'X-Request-ID: ${UUIDV4}' \
https://${EnvironmentDomain}/svc/payment/api/v1/echo \
-d '{"message" : "Hello,Wonder!"}'
warning

If a 401 or 403 error is returned, it may indicate that there is an issue with your implementation of the signature algorithm. Please double-check your signature algorithm implementation carefully and test it with the online signature algorithm debugging tool.

Connect to wonder sandbox environment

Connect to wonder production environment

  • Please make sure you production business application already approved, and business status is Active.
  • Switch to production mode on wonder portal create appid.
  • connect all wonder apis endpoint as : https://gateway.wonder.today
info

In the production environment, the execution standards for the signature algorithm are consistent with those in the test environment, so you do not need to worry about additional differences in implementation details caused by switching environments.