Ejemplo n.º 1
0
 public string AcceptPurchase(AcceptPurchase details)
 {
     try
     {
         return(Purchase.Accept(details));
     }
     catch (Exception e)
     {
         Dictionary <string, string> errorResult = new Dictionary <string, string>();
         errorResult.Add("Status", "0");
         errorResult.Add("Error Object", JsonConvert.SerializeObject(e));
         return(JsonConvert.SerializeObject(errorResult));
     }
 }