Payment Service
(Overview and Payment Gateways)
Yuki Matsukura
Metaps Inc.
shinjuku.rb #31@metaps
• Metaps Inc. (2014 - )
– SPIKE Engineer
• @matsubokkuri
• http://github.com/matsubo
• http://matsu.teraren.com/blog/
Yuki Matsukura
Outline
• Payment service stack
• Dealing with Payment Gateways
• Payment in Ruby
PAYMENT SERVICE STACK
https://spike.cc/
Payment Service
EC
Marketing
Automation
Market
E-money
Users
SPIKE Service Stack
API
Payment Service
Stripe
CAFIS VISA Net Master Net…
LIFE
Payment Service Stack
Users (Buyers)
Mitsui
Sumitomo
Bank of
America
…
GMO Brain Tree…
Acquirer
Issuer
Payment
Gateways
JR East LUMINE ENEOS…
DEALING WITH PAYMENT
GATEWAYS
KPIs to choose GW
• Fee
– Initial setup cost, Monthly fee
– Transaction fee, Payment fee
http://bit.ly/1lh0O22
KPIs to choose GW
• API and its library
– Library let developers ease integration.
https://github.com/activemerchant/active_merchant
KPIs to choose GW
• Sandbox
– Some gateways cannot be test …
KPIs to choose GW
• Stability
– SLA
– Gateways returns error text with 200 response.
MTBF = 72.2 days, MTTR = 22.3mins, Availability = 99.978%
PAYMENT IN RUBY
Payment Gateway API
• ActiveMerchant
– https://github.com/activemerchant/active_merch
ant
– This is a collection of API library
• NOT abstracting all gateways.
• API parameter is different
This would be different
from payment gateway.
KPIs to choose GW
• Timeout
– Payment Gateways
– Authentication Bank
– Our service
• net/http
• unicorn
• Reverse proxy
• (Browser)
State activity diagram 1
State activity diagram 2
To Be continued
• Fraud protection
• Fight with Gateway timeout
• Automation
• Security
• Customer support
• Gem
• Development environment
• ER Diagram

Payment Service (Overview and Payment Gateways)

Editor's Notes

  • #7 Creating a platform for payment and online service.
  • #8 Payment Gateways: We know well. Issuer Some companies do issuing, acquiring can be 1 service (company).
  • #13 Watching gateways status too but also our service. They don’t give us downtime reports!!
  • #15 There is a list of Payment gateways.
  • #16 Active merchant sample code.
  • #17 Inconsistent record will be created in the gateway or us.