Withdrawal Verification
Last updated
Last updated
With security in mind SwitchWallet goes another step further to verify that every withdrawal event triggered truely comes from the merchant, To ensure this we call the merchant's verificationUrl with the merchant reference parsed to the withdrawal endpoint.
1) Set up your Url at your server
How it works,
Our server make http Get request to your verificationUrl
Request sample: YourVerificationUrl?reference={yourUniquelyGeneratedReference-parsed-at-thePoint-ofWithdrawal}
GET
YourDomian/VerificationEndpoint
Name | Type | Description |
---|---|---|
Here are steps merchant must take to compute the above checksum return as response in the above example for the withdrawal to be successful
Checksum generation process
Hash algorithm = SHA512
Hash your secerteKey, e.g hashedSecreteKey = "Hashed secerteKey"
concat your reference with the withdrawal destination wallet address, e.g var ReferenceAndDestinationWallet_CONCAT = ${merchantReference}:${destinationWallet}
stringToHash = hashedSecreteKey + referenceAndDestinationWallet_CONCAT
var checksum = hashed (StringToHash)
Paste your url in the verificationUrl Input box and press the "Update" button beside it
reference*
String
yourUniquelyGeneratedReference-parsed-at-thePoint-ofWithdrawal