-
Introduction
-
Commands & Actions
-
Transaction Sequence
-
MasterPass
-
Visa Checkout
-
Foreign Exchange
-
Parameter Description & Action
-
Gateway Domain Knowledge
-
Transaction Result Codes
-
Out Of Band
-
Payment Facilitator
-
Tokenization
-
SOAP API
-
Pos Device Intergration
-
Acquire Contact Information
-
3D Secure
-
Enterprise API Samples
-
Card on File
-
Additional Data Transactions
Out Of Band - Merchant Webservice
Merchant Webservice
The sections covers the Webservice example which the merchant can implement in order to consume the transaction responses as and when they are delivered by the Gateway's out of band notification system.
Out of Band Sample:
namespace
{
public class Response: IResponse
{
public string TransactionResponse(Response_message message)
{
string decoded_response = null;
string response_message = null;
string response = message.message;
//Deserialize the message and get the response
dynamic dynJson = JsonConvert.DeserializeObject(response);
string deserialized_response = dynJson.Response;
//Decode the response from base64
byte [] response_data = System.Convert.FromBase64String(deserialized_response);
decoded_response = System.Text.ASCIIEncoding.ASCII.GetString(response_data);
response_message = decoded_response;
Log.WriteLog(response_message);
return response_message;
}
}
}
Il n'y a aucun commentaire pour le moment.
Partager ce contenu
Partager le lien
Partager sur les réseaux sociaux
Partager par email
Veuillez s'inscrire afin de partager ce Article par email.