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

Make 'Em Pay

Sponsored · Ship Features Fearlessly Turn features on and off without deploys. Used by thousands of Ruby developers. →
Avatar for Marge Marge
August 15, 2013

Make 'Em Pay

Accept payment through your web app safely and easily

Avatar for Marge

Marge

August 15, 2013

More Decks by Marge

Other Decks in Technology

Transcript

  1. Make ‘Em Pay Accept payment through your app safely and

    easily Marge Rosen blog.margerosen.com twitter.com/MargeRosen Wednesday, August 14, 2013
  2. Criteria to Consider • Security • Ease of use •

    Customer Service • Fees • Account Issues Wednesday, August 14, 2013
  3. 4 Main Components • Merchant account • Payment gateway -

    service your e-commerce system uses to interface with the payment processor • Payment processor - service which actually communicates with the credit card companies and card issuing banks • E-commerce (shopping cart) Wednesday, August 14, 2013
  4. 4 Top Players • PayPal • Amazon Payments • Google

    Pay • Stripe Wednesday, August 14, 2013
  5. PayPal • Ebay to bandcamp.com • Several pricing models. Starts

    at 2.9% + .30 • Micropayments available. Good for selling digital goods or if your transactions average less than $10 • Payment available in minutes • Some do not find this user friendly Wednesday, August 14, 2013
  6. Amazon Payments • Kickstarter • Standard fee is 2.9% +.30

    for transactions $10 or more • Micropayment fees and reduced fees for non- profits • Easy for individual users. Hundreds of millions already have a trusted Amazon account. • Business account setup can be frustrating • Getting paid take 14 days to start then 5-7 days Wednesday, August 14, 2013
  7. Stripe • Web businesses and start-ups use Stripe (Heroku, Foursquare,

    Shopify and RailsGirls) • 2.9% + .30 • Easy for you and your users • Must wait 7 days for payment Wednesday, August 14, 2013
  8. Stripe API • You don’t need a merchant account or

    gateway. Stripe handles everything, including storing cards, subscriptions, and direct payouts to your bank account. • Accounts have test-mode API keys as well as live- mode API keys. • These keys can be active at the same time. • Data created with test-mode credentials will never hit the credit card networks and will never cost anyone money. • gem 'stripe', :git => 'https://github.com/stripe/ stripe-ruby' Wednesday, August 14, 2013
  9. Charges • To charge a credit or a debit card,

    you create a new charge object. You can retrieve and refund individual charges as well as list all charges. • Charges are identified by a unique random ID. • Example Object Code is provided and can be used for initial test. Wednesday, August 14, 2013
  10. Example Object Code for Initial Test #<Stripe::Charge id=ch_2NuyRagioClJbG 0x00000a> JSON:

    { "id": "ch_2NuyRagioClJbG", "object": "charge", "created": 1376505413, "livemode": false, "paid": true, "amount": 500, "currency": "usd", "refunded": false, "card": { "id": "card_2NuynbBzocnNbb", "object": "card", "last4": "4242", "type": "Visa", "exp_month": 1, "exp_year": 2050, Wednesday, August 14, 2013
  11. Authentication • Provide one of your API keys in the

    request. • To use your API key, you set Stripe.api_key equal to the key. The Ruby library will automatically send this key in each request. • All API requests must be made over HTTPS. Calls made over plain HTTP will fail. You must authenticate for all requests. Example Request: require "stripe" Stripe.api_key = "sk_test_mkGsLqEW6SLnZa487HYfJVLf" Wednesday, August 14, 2013
  12. References • https://www.paypal.com/webapps/mpp/merchant?nav=2 • https://www.paypal.com/us/webapps/mpp/digital-goods • https://payments.amazon.com/sdui/sdui/index.htm • https://stripe.com •

    http://www.itworld.com/consumerization-it/338024/how-process-and- accept-credit-cards-your-website • http://shopper.com/resources/articles/online-payment-options-google-paypal- amazon? Wednesday, August 14, 2013