-
Notifications
You must be signed in to change notification settings - Fork 0
SMS Authentication
Standalone SMS authentication may be used independently of Transactions. Both methods are documented below. OOB stands for Out-Of-Band Authentication.
https://[merchant_id]:[apikey]@api.icecharge.com/v1/xml/transaction/[id]/oob/token (Method: GET)
<oob token="[SHA512]"/>https://[merchant_id]:[apikey]@api.icecharge.com/v1/json/transaction/[id]/oob/token (Method: GET)
{
“oob”: {
“token”: [SHA512]
}
}https://[merchant_id]:[apikey]@api.icecharge.com/v1/xml/oob/token (Method: POST)
<oob_request sid="[Session ID]"/>POST: Reply
<oob token="[SHA512]"/>https://[merchant_id]:[apikey]@api.icecharge.com/v1/json/oob/token (Method: POST)
{
"sid": [Session ID]
}POST: Reply
{
"oob": {
"token": [SHA512]
}
}This method sends an SMS message containing a secret code to a phone number.
https://[merchant_id]:[apikey]@api.icecharge.com/v1/xml/oob/do (Method: POST)
<oob token="[SHA512]" to="[Phone Number]"/>https://[merchant_id]:[apikey]@api.icecharge.com/v1/json/oob/do (Method: POST)
{
"token": [SHA512],
"to": [Phone Number]
}This method verifies that the secret code entered by a customer value matches the secret code IceCharge sent via SMS.
https://[merchant_id]:[apikey]@api.icecharge.com/v1/xml/oob/verify (Method: POST)
<oob_result token="[SHA512]" secret="[Secret Entered By Client]"/>POST: Reply
<oob token="[SHA512]" status="[Success/Failed]"/>https://[merchant_id]:[apikey]@api.icecharge.com/v1/json/oob/verify (Method: POST)
{
"token": [SHA512],
"secret": [Secret Entered By Client]
}POST: Reply
{
"oob": {
"token": [SHA512],
"status": [Success/Failed]
}
}