Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Taxes and Payments at Gilt

sullis
April 15, 2014

Taxes and Payments at Gilt

presentation given at the Portland Java User Group
April 15, 2014

sullis

April 15, 2014
Tweet

More Decks by sullis

Other Decks in Technology

Transcript

  1. Gilt’s checkout system • reserve inventory • assign shipping address

    • enforce shipping restrictions • identify eligible ship methods • calculate ship cost
  2. Sales tax in New York state http://www.tax.ny.gov/bus/st/sales_tax_rates.htm The combined sales

    and use tax rate equals the state rate (currently 4%) plus any local tax rate imposed by a city, county, or school district. [...] The combined rates vary in each county and in cities that impose sales tax.
  3. • O Series On Demand (SAAS) • SOAP API •

    generate SOAP client with Apache CXF • commit SOAP client source to a Git repo • publish library to internal Ivy repo Vertex integration @ Gilt
  4. @WebService(targetNamespace = "http://www.vertexinc.com/oseries/services/ CalculateTax50", name = "CalculateTaxWS50") @XmlSeeAlso({com.vertexinc.oseries.tps_5_0.ObjectFactory.class}) @SOAPBinding(parameterStyle =

    SOAPBinding.ParameterStyle.BARE) public interface CalculateTaxWS50 { @WebResult(name = "VertexEnvelope", targetNamespace = "urn:vertexinc:o- series:tps:5:0", partName = "VertexEnvelope") @WebMethod public com.vertexinc.oseries.tps_5_0.VertexEnvelope calculateTax50( @WebParam(partName = "part", name = "VertexEnvelope", targetNamespace = "urn:vertexinc:o-series:tps:5:0") com.vertexinc.oseries.tps_5_0.VertexEnvelope part ); } Generated code
  5. Encrypting credit card data 1. AJAX request: GET /get_publickey 2.

    encrypt with JavaScript encryption library: rsa.encrypt(publicKey, ccData) 3. HTTPS POST to server