Ejemplo n.º 1
0
        /// <summary>
        /// Voids a previously authorized transaction
        /// </summary>
        /// <param name="profileID">The profile ID.</param>
        /// <param name="paymentProfileId">The payment profile id.</param>
        /// <param name="transactionId">The transaction id.</param>
        /// <returns></returns>
        public IGatewayResponse Void(string profileID, string paymentProfileId, string transactionId)
        {
            var req = new createCustomerProfileTransactionRequest();

            var trans = new profileTransVoidType();

            trans.customerProfileId        = profileID;
            trans.customerPaymentProfileId = paymentProfileId;
            trans.transId = transactionId;

            req.transaction      = new profileTransactionType();
            req.transaction.Item = trans;

            var response = (createCustomerProfileTransactionResponse)_gateway.Send(req);

            return(new GatewayResponse(response.directResponse.Split(',')));
        }
Ejemplo n.º 2
0
 public static void profileTransVoidType(profileTransVoidType request)
 {
 }