This is a session given by Horia Jurcut at Nordic APIs 2016 Platform Summit on October 25th, in Stockholm Sweden.
Description:
Spotify is one of the world leaders in media subscriptions and is the largest music streaming service with over 30 million paying subscribers. We currently provide 16 different methods of payment in over 60 countries and we continue to expand our offerings.
In this session we are going to talk about engineering an internal API to abstract away from the complexities of multiple payment gateways and multiple clients with potentially long release cycles (iOS, Android). I will share some of the benefits of growing the API organically, and some of the downfalls of premature abstraction.
6. Credit Cards
2008
PayPal
2011
Finland
France
Norway
Spain
Sweden
2008 Austria
Belgium
Denmark
Great Britain
Switzerland
The Netherlands
USA
2011
2006
Initial launch Growth
Boku
Sofort
Klarna
Google iAP
Facebook payments
2013
Argentina
Australia
Colombia
Hong Kong
Ireland
Germany
...
2013
+ 37 markets
Global Company
Adyen
PaySafe Card
Oxxo
iDeal
dotPay
DragonPay
SafetyPay
DirectDebit
Boleto
iOS iAP
2015
Brazil
Canada
Philippines
2015
Localization
2016
7. Credit Cards
2008
PayPal
2011
Finland
France
Norway
Spain
Sweden
2008 Austria
Belgium
Denmark
Great Britain
Switzerland
The Netherlands
USA
2011
2006
Initial launch Growth
Boku
Sofort
Klarna
Google iAP
Facebook payments
2013
Argentina
Australia
Colombia
Hong Kong
Ireland
Germany
...
2013
+ 37 markets
Global Company
Adyen
PaySafe Card
Oxxo
iDeal
dotPay
DragonPay
SafetyPay
DirectDebit
Boleto
iOS iAP
2015
Localization
Fortumo
Doku
econtext
2016
40 million
subscribers
2016
Indonesia
Japan
2016
60 markets
2016
Optimization
Brazil
Canada
Philippines
2015
35. Checkout API
Checkout
API
Start purchase What is the first step?
Collect CC InformationDisplay CC Form
CC Form
CC Form
Send credit card data Send credit card data
36. Checkout API
Checkout
API
Start purchase What is the first step?
Collect CC InformationDisplay CC Form
CC Form
CC Form
Confirmation
Show ConfirmationDisplay Confirmation
Send credit card data Send credit card data
37. Checkout API
Checkout
API
Start purchase What is the first step?
Collect CC InformationDisplay CC Form
CC Form
Send credit card data Send credit card data
Confirmation
Show ConfirmationDisplay Confirmation
CC Form
One Time Code
X3G6D8A7
38. Advantages
Spotify Payments
● Change checkout experience without client release
● Clients can build native experiences
● Consolidated business logic
● Rapidly test, experiment and learn
● Mix & Match
51. Automatic Alerts
Payment transactions processed (initial payments)
Payment transactions failed (initial payments)
Broke initial payments
Provider had an issue
52. Automatic Alerts
Payment transactions processed (initial payments)
Payment transactions failed (initial payments)
Broke initial payments
Provider had an issue
Other providers
continued working
53. Advantages
Spotify Payments
● Fairly low number of false positives
● Works very well for high volume providers (Adyen)
● Become more aware of local events
55. Why we build APIs
Spotify Payments
● Many clients, many providers
● Integrate with other internal systems
● More complex products and business rules
● Customization
56. My time @ Spotify
Spotify Payments
● APIs make it easier for multiple teams to collaborate
● APIs help you take a hard problem and divide it into more
manageable domains
● APIs require documentation
● APIs enable you to rapidly test, experiment and learn