+ All Categories
Home > Internet > Payment Service (Overview and Payment Gateways)

Payment Service (Overview and Payment Gateways)

Date post: 13-Apr-2017
Category:
Upload: yuki-matsukura
View: 812 times
Download: 2 times
Share this document with a friend
19
Payment Service (Overview and Payment Gateways) Yuki Matsukura Metaps Inc. shinjuku.rb #31@metaps
Transcript
Page 1: Payment Service (Overview and Payment Gateways)

Payment Service (Overview and Payment Gateways)

Yuki MatsukuraMetaps Inc.

shinjuku.rb #31@metaps

Page 2: Payment Service (Overview and Payment Gateways)

• Metaps Inc. (2014 - ) – SPIKE Engineer

• @matsubokkuri• http://github.com/matsubo• http://matsu.teraren.com/blog/

Yuki Matsukura

Page 3: Payment Service (Overview and Payment Gateways)

Outline

• Payment service stack

• Dealing with Payment Gateways

• Payment in Ruby

Page 4: Payment Service (Overview and Payment Gateways)

PAYMENT SERVICE STACK

Page 5: Payment Service (Overview and Payment Gateways)

https://spike.cc/

Page 6: Payment Service (Overview and Payment Gateways)

Payment Service

EC

MarketingAutomation

Market

E-money

Users

SPIKE Service Stack

API

Page 7: Payment Service (Overview and Payment Gateways)

Payment Service

Stripe

CAFIS VISA Net Master Net…

LIFE

Payment Service Stack

Users (Buyers)

Mitsui Sumitomo

Bank of America

GMO Brain Tree…

Acquirer

Issuer

PaymentGateways

JR East LUMINE ENEOS…

Page 8: Payment Service (Overview and Payment Gateways)

DEALING WITH PAYMENT GATEWAYS

Page 9: Payment Service (Overview and Payment Gateways)

KPIs to choose GW

• Fee– Initial setup cost, Monthly fee– Transaction fee, Payment fee

http://bit.ly/1lh0O22

Page 11: Payment Service (Overview and Payment Gateways)

KPIs to choose GW

• Sandbox– Some gateways cannot be test …

Page 12: Payment Service (Overview and Payment Gateways)

KPIs to choose GW

• Stability– SLA– Gateways returns error text with 200 response.

MTBF = 72.2 days, MTTR = 22.3mins, Availability = 99.978%

Page 13: Payment Service (Overview and Payment Gateways)

PAYMENT IN RUBY

Page 14: Payment Service (Overview and Payment Gateways)

Payment Gateway API

• ActiveMerchant– https://github.com/activemerchant/

active_merchant

– This is a collection of API library• NOT abstracting all gateways.• API parameter is different

Page 15: Payment Service (Overview and Payment Gateways)

This would be differentfrom payment gateway.

Page 16: Payment Service (Overview and Payment Gateways)

KPIs to choose GW

• Timeout– Payment Gateways– Authentication Bank– Our service• net/http• unicorn• Reverse proxy• (Browser)

Page 17: Payment Service (Overview and Payment Gateways)

State activity diagram 1

Page 18: Payment Service (Overview and Payment Gateways)

State activity diagram 2

Page 19: Payment Service (Overview and Payment Gateways)

To Be continued

• Fraud protection• Fight with Gateway timeout• Automation• Security• Customer support• Gem• Development environment• ER Diagram


Recommended