/** https://stripe.com/docs/api#metadata */ private static Map<String,Object> makeMetadata(CreditCard creditCard, boolean update) { Map<String,Object> metadata = new LinkedHashMap<String,Object>(); addMetaData(update, metadata, "company_name", creditCard.getCompanyName(), true); addMetaData(update, metadata, "phone", creditCard.getPhone(), true); addMetaData(update, metadata, "fax", creditCard.getFax(), true); addMetaData(update, metadata, "customer_id", creditCard.getCustomerId(), true); addMetaData(update, metadata, "customer_tax_id", creditCard.getCustomerTaxId(), true); return metadata; }
addField(querySB, "x_email_customer", transactionRequest.getEmailCustomer() ? "TRUE" : "FALSE"); addField(querySB, "x_merchant_email", transactionRequest.getMerchantEmail()); addField(querySB, "x_cust_id", creditCard.getCustomerId()); addField(querySB, "x_customer_ip", transactionRequest.getCustomerIp());
String customerId = creditCard.getCustomerId(); if(customerId!=null && customerId.length()>0) request.put("UMcustid", customerId);
String customerIp = transactionRequest.getCustomerIp(); if(customerIp!=null && customerIp.length()>0) customerInfo.setCustIP(customerIp); String customerId = creditCard.getCustomerId(); if(customerId!=null && customerId.length()>0) customerInfo.setCustCode(customerId); invoice.setCustomerInfo(customerInfo);