public static void profileTransCaptureOnlyType(profileTransCaptureOnlyType request) { if (null != request) { lineItemType(request.lineItems); } }
/// <summary> /// Captures the specified transaction. /// </summary> /// <param name="profileID">The profile ID.</param> /// <param name="paymentProfileId">The payment profile id.</param> /// <param name="cardCode">The 3 digit card code.</param> /// <param name="amount">The amount.</param> /// <param name="approvalCode">The approval code.</param> /// <returns></returns> public IGatewayResponse Capture(string profileID, string paymentProfileId, string cardCode, decimal amount, string approvalCode) { var req = new createCustomerProfileTransactionRequest(); var trans = new profileTransCaptureOnlyType(); trans.approvalCode = approvalCode; trans.customerProfileId = profileID; trans.amount = amount; trans.cardCode = cardCode; trans.customerPaymentProfileId = paymentProfileId; req.transaction = new profileTransactionType(); req.transaction.Item = trans; var response = (createCustomerProfileTransactionResponse)_gateway.Send(req); return(new GatewayResponse(response.directResponse.Split(','))); }