コード例 #1
0
        private string BuildRequestDebug(CreditCardRequest request)
        {
            StringBuilder sb = new StringBuilder();

            sb.Append("\r\nParadata PayGateway.CreditCardRequest Object\r\n");
            sb.Append("BankApprovalCode=" + request.getBankApprovalCode() + "\r\n");
            sb.Append("BillAddressOne=" + request.getBillAddressOne() + "\r\n");
            sb.Append("BillAddressTwo=" + request.getBillAddressTwo() + "\r\n");
            sb.Append("BillCity=" + request.getBillCity() + "\r\n");
            sb.Append("BillCompany=" + request.getBillCompany() + "\r\n");
            sb.Append("BillCountryCode=" + request.getBillCountryCode() + "\r\n");
            sb.Append("BillCustomerTitle=" + request.getBillCustomerTitle() + "\r\n");
            sb.Append("BillEmail=" + request.getBillEmail() + "\r\n");
            sb.Append("BillFax=" + request.getBillFax() + "\r\n");
            sb.Append("BillFirstName=" + request.getBillFirstName() + "\r\n");
            sb.Append("BillLastName=" + request.getBillLastName() + "\r\n");
            sb.Append("BillMiddleName=" + request.getBillMiddleName() + "\r\n");
            sb.Append("BillNote=" + request.getBillNote() + "\r\n");
            sb.Append("BillPhone=" + request.getBillPhone() + "\r\n");
            sb.Append("BillPostalCode=" + request.getBillPostalCode() + "\r\n");
            sb.Append("BillStateOrProvince=" + request.getBillStateOrProvince() + "\r\n");
            sb.Append("BuyerCode=" + request.getBuyerCode() + "\r\n");
            sb.Append("CardBrand=" + request.getCardBrand() + "\r\n");
            sb.Append("ChargeTotal=" + request.getChargeTotal() + "\r\n");
            sb.Append("ChargeType=" + request.getChargeType() + "\r\n");
            sb.Append("Currency=" + request.getCurrency() + "\r\n");
            sb.Append("CaptureReferenceId=" + request.getCaptureReferenceId() + "\r\n");
            sb.Append("CustomerIpAddress=" + request.getCustomerIpAddress() + "\r\n");
            sb.Append("Credit Card Number=" + MakeReferenceNumber(request.getCreditCardNumber()) + "\r\n");
            sb.Append("ExpireMonth=" + request.getExpireMonth() + "\r\n");
            sb.Append("ExpireYear=" + request.getExpireYear() + "\r\n");
            sb.Append("InvoiceNumber=" + request.getInvoiceNumber() + "\r\n");
            sb.Append("OrderCustomerId=" + request.getOrderCustomerId() + "\r\n");
            sb.Append("OrderDescription=" + request.getOrderDescription() + "\r\n");
            sb.Append("OrderId=" + request.getOrderId() + "\r\n");
            sb.Append("OrderUserId=" + request.getOrderUserId() + "\r\n");
            sb.Append("ShipAddressOne=" + request.getShipAddressOne() + "\r\n");
            sb.Append("ShipAddressTwo=" + request.getShipAddressTwo() + "\r\n");
            sb.Append("ShipCity=" + request.getShipCity() + "\r\n");
            sb.Append("ShipCompany=" + request.getShipCompany() + "\r\n");
            sb.Append("ShipCountryCode=" + request.getShipCountryCode() + "\r\n");
            sb.Append("ShipCustomerTitle=" + request.getShipCustomerTitle() + "\r\n");
            sb.Append("ShipEmail=" + request.getShipEmail() + "\r\n");
            sb.Append("ShipFax=" + request.getShipFax() + "\r\n");
            sb.Append("ShipFirstName=" + request.getShipFirstName() + "\r\n");
            sb.Append("ShipLastName=" + request.getShipLastName() + "\r\n");
            sb.Append("ShipMiddleName=" + request.getShipMiddleName() + "\r\n");
            sb.Append("ShipNote=" + request.getShipNote() + "\r\n");
            sb.Append("ShipPhone=" + request.getShipPhone() + "\r\n");
            sb.Append("ShippingCharge=" + request.getShippingCharge() + "\r\n");
            sb.Append("ShipPostalCode=" + request.getShipPostalCode() + "\r\n");
            sb.Append("ShipStateOrProvince=" + request.getShipStateOrProvince() + "\r\n");
            return(sb.ToString());
        }