Example #1
0
        public async Task <DeleteCustomerPaymentProfileResponse> DeleteAsync(string customerPaymentProfileId, string customerProfileId, string referenceId)
        {
            var deleteCustomerPaymentProfileRequest = new DeletePaymentProfileTransactionRequest
            {
                MerchantAuthentication = new MerchantAuthentication
                {
                    LoginId        = _apiLoginId,
                    TransactionKey = _transactionKey
                },
                CustomerPaymentProfileId = customerPaymentProfileId,
                CustomerProfileId        = customerProfileId,
                ReferenceId = referenceId
            };

            return(await DeleteAsync(deleteCustomerPaymentProfileRequest));
        }
Example #2
0
 public async Task <DeleteCustomerPaymentProfileResponse> DeleteAsync(DeletePaymentProfileTransactionRequest deleteCustomerPaymentProfileRequest)
 {
     return(await new AuthorizeNetResult(_authorizeNetUrl).PostAsync <DeletePaymentProfileTransactionRequest, DeleteCustomerPaymentProfileResponse>(deleteCustomerPaymentProfileRequest));
 }