Integrate Waynance Pay with your App
Waynance Pay is a contactless and QR, borderless and secure cryptocurrency payment technology designed by Waynance. Waynance Pay allows you to pay on any network, token and wallet, from anywhere in the world.
To begin, register your application with Waynance Accounts, and get the SDK
. For now, please contact us.
#
Signature Rule (For server engineer)Waynance Pay backend will check the signature against pay param, including "certSn", "merchantId", "noncestr", "prepayId" and "timeStamp".
Attributes | Type | Required | Limitation | Description |
---|---|---|---|---|
certSn | string | Y | - | API identity key issued by Waynance payment system |
merchantId | long | Y | - | The merchant account id, issued when merchant been created at Waynance. |
noncestr | string | Y | must be 32 digits | A random string with 32 bytes, e.g. random ascii decimal within a-z and A-Z and loop 32 times to form a random string |
prepayId | string | Y | - | unique id generated by waynance |
timeStamp | long | Y | Waynance pay only process request within 1s | UnixTimestamp in millis that the requests send, guarantee the machine time is sync with the network |
Signature generation logic is as below, please follow the parameters order. Use "=" connect field and value, use "&" to separate fields.
#
Integrate SDK for Android#
Requirements- Android 4.1+
- Support AndroidX
#
Import SDK- Download waynance_pay_sdk_v1.0.0.aar
- Add
waynance_pay_sdk_v1.0.0.aar
into libs directory - Add dependence for app module, just like this:
- Sync project
#
UsageWaynancePayListener
#
1. Create #
2. To Pay2.1 Crypto payments(C2B)
2.2 Transfer or send cryptos(C2C)
Error Types:
Maybe you will encounter several situations:
- UnInstall Error:This means that you have not installed the Waynance app, and then a pop-up window will be displayed to guide you to download
- UnSupported Error:This means that your Waynance app version is too low, and then a pop-up window will be displayed to guide you to get the latest Waynance app
- Other Error:Will be called back to you via WaynancePayListener
#
Integrate SDK for iOS#
Requirements- iOS 10+
- Swift 5.1+
#
Installation#
Munual- Download WaynancePaySDK.xcframework
- Add
WaynancePaySDK.xcframework
intoFrameworks, Libraries and Embeded Content
of your target - Embed Type should be
Embed & Sign
#
Usage#
Pay- Create
Request Parameters
:
- Call api:
WaynancePaySDK will show up an alert if user doesn't install Waynance app on his/her device. The alert will show on the
containerView
.
- Error Types:
Here are the errors you may get from
WaynancePaySDK
:
#
Language#
FAQ#
Unable to trigger the Waynance AppInclude Waynance Pay in the plist file to trigger Waynance app
#
Unable to redirect from Waynance App back to your App- Add your url scheme in Info Url Types
- Set this url-scheme as redirectScheme when using WaynancePaySDK
#
Did not receive callbackUnder AppDelegate: include the WaynancePay.shared.handle function to receive callback.