Get Started
Create an business account and lean how to build on Wonder.
Requirements
- Have you already created a business account in the Wonder app? Onboard your business in wonder app
- Have you already created a sandbox environment? Go to wonder portal active a sandbox environment
- Have you already created a sandbox appID? Go to Settings -> Open Api Credentials create AppID
- Have you already created a sandbox webhook endpoint? Go to Settings -> Open API Credential create a webhook endpoints.
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.
- Following Authentication
- Use Online Signature Tool
- Use Source Code - Examples
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!"}'
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
- Switch to sandbox mode on wonder portal create appid.
- connect all wonder apis endpoint as : https://gateway-stg.wonder.today
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
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.