/// <summary> /// /// </summary> ///<param name="executePaymentRequest"></param> ///<param name="credential">An explicit ICredential object that you want to authenticate this call against</param> public ExecutePaymentResponse ExecutePayment(ExecutePaymentRequest executePaymentRequest, ICredential credential) { IAPICallPreHandler apiCallPreHandler = new PlatformAPICallPreHandler(this.config, executePaymentRequest.ToNVPString(string.Empty), ServiceName, "ExecutePayment", credential); ((PlatformAPICallPreHandler) apiCallPreHandler).SDKName = SDKName; ((PlatformAPICallPreHandler) apiCallPreHandler).SDKVersion = SDKVersion; ((PlatformAPICallPreHandler) apiCallPreHandler).PortName = "AdaptivePayments"; NVPUtil util = new NVPUtil(); return ExecutePaymentResponse.CreateInstance(util.ParseNVPString(Call(apiCallPreHandler)), string.Empty, -1); }
/** *AUTO_GENERATED */ public ExecutePaymentResponse ExecutePayment(ExecutePaymentRequest executePaymentRequest, string apiUserName) { string response = Call("ExecutePayment", executePaymentRequest.ToNVPString(""), apiUserName); NVPUtil util = new NVPUtil(); return ExecutePaymentResponse.CreateInstance(util.ParseNVPString(response), "", -1); }