/** * Indica a Webpay que se ha recibido conforme el resultado de la transacción * */ public bool acknowledgeTransaction(string token) { using (WSWebpayServiceImplService proxy = new WSWebpayServiceImplService()) { PrepareProxy(proxy); proxy.acknowledgeTransaction(token); } return(true); }
/** * Indica a Webpay que se ha recibido conforme el resultado de la transacción * */ public bool acknowledgeTransaction(string token) { using (WSWebpayServiceImplService proxy = new WSWebpayServiceImplService()) { /*Define el ENDPOINT del Web Service Webpay*/ proxy.Url = WSDL; Policy myPolicy = new Policy(); CustomPolicyAssertion customPolicty = new CustomPolicyAssertion(this.config); myPolicy.Assertions.Add(customPolicty); proxy.SetPolicy(myPolicy); proxy.Timeout = 60000; proxy.UseDefaultCredentials = false; proxy.acknowledgeTransaction(token); } return(true); }