SlideShare a Scribd company logo
APIs
Stuff to cover 
• What is an API? 
• What is HTTP? 
• What is REST mean and why is it good? 
• How the connect flow works for a simple integration? 
• How the connect flow works for a partner integration? 
• How do webhooks work?
What is an API 
• Application Programming Interface 
• A set of instructions for communicating with an 
application 
• Normally refer to web based services but all sorts of 
software can have an API
Dualit API v1 
• startToasting(); 
• “OK Begun Toasting” 
• stopToasting(); 
• “OK Toasting ended” 
• isToasting(); 
• TRUE 
• FALSE
What is HTTP? 
• How we transfer Hypertext (i.e. HTML) 
• Unencrypted unless using HTTPS 
• Everything on GoCardless is forced over HTTPS by 
Google Chrome 
• Information is transferred with a verb: 
• HTTP verbs suggest context of actions
HTTP VERBS (What they actually mean) 
GET 
PUT 
POST 
DELETE 
Get 
Update 
Create 
Delete
Demo
What is REST? 
• Representational state transfer 
• Basically, a set of guidelines that together make an API that could 
be described as “RESTful” 
• An API is RESTful if it: 
• Uses standard HTTP verbs (PUT, GET, POST) 
• Has one base URI (api.gocardless.com) 
• Uses standard internet media JSON or XML 
• Hypertext links to related resources 
• REST v SOAP
• Has one base URI 
(gocardless.com) 
• Uses standard internet media 
JSON or XML 
• Uses standard HTTP methods 
(PUT, GET, POST) 
• Hypertext links to related 
resources 
API endpoint for creating a customer
What is SOAP? 
• Simple Object Access Protocol 
• XML messages, harder to process 
(and read) than JSON 
• Security built in to SOAP 
messages, doesn’t rely on HTTPS
Why is REST good? 
• Because it’s a standard, predictability of code writing 
speeds up development time 
• Helps you organise a complex system into simple 
resources (Payment, Customer) 
• Security is handled independently by transport layer 
(HTTPS) 
• Simpler, more human readable than SOAP messages
A simple integration 
• Something more dynamic than a paylink 
• Imagine we’re a charity and want the user to type in the 
amount they wish to donate on our website 
• We want to let them select a one off or recurring 
payment for an amount they choose
I wish to donate 
£500| 
Donate 
Every month
Partner Connect Flow 
• Allow a partner to collect payments on behalf of their 
merchants 
• Examples: FreeAgent, Kashflow, Crowdfunding 
websites
Merchant 
 
Partner 
 
FreeAgent (partner) wants to allow Jim’s Gym 
(merchant) to take payments through GoCardless
Merchant 
 
Partner 
 
The merchant wants to be able to 
take payments through the partner
Merchant 
 
Partner 
 
The partner redirects the 
merchant to GoCardless
 
Merchant 
The merchant needs to have an existing 
GoCardless account, or create a new one
 
GoCardless asks the merchant to authorise 
the partner access to their account 
Merchant
NX8LSkRUIYVNZ1eFCBnh 
 
Partner 
When the merchant authorises, GoCardless gives the 
partner a unique access token to store for future requests
Whats the payment status? 
It failed 
NX8LSkRUIYVNZ1eFCBnh 
payment: failed 
  
Now, when the partner needs information from GoCardless about 
the merchant account, they send the access token each time
Partner flow demo
Webhooks 
• Notification of events pushed from GoCardless to a third 
party web service 
• Typically this will be payment failures, new customers etc 
 
“Payment failed”
Webhooks 
• Webhooks allow us to instantly notify an API integration of an 
event to do with their payments 
• Merchants have to configure their app to “listen” to webhooks
Webhook demo
Questions?

More Related Content

Similar to Apis and-web-programming

Open Bank Project Presentation Tel Aviv CA 4th April 2017
Open Bank Project Presentation Tel Aviv CA 4th April 2017 Open Bank Project Presentation Tel Aviv CA 4th April 2017
Open Bank Project Presentation Tel Aviv CA 4th April 2017
simonredfern
 
Party + REST = Win
Party + REST = WinParty + REST = Win
Party + REST = Win
Jimmy Sieben
 
Designing Usable APIs featuring Forrester Research, Inc.
Designing Usable APIs featuring Forrester Research, Inc.Designing Usable APIs featuring Forrester Research, Inc.
Designing Usable APIs featuring Forrester Research, Inc.
CA API Management
 
Integrating consumers IoT devices into Business Workflow
Integrating consumers IoT devices into Business WorkflowIntegrating consumers IoT devices into Business Workflow
Integrating consumers IoT devices into Business Workflow
Yakov Fain
 
Redesigning PayPal APIs for Scale and Simplicity - QCon San Francisco 2013
Redesigning PayPal APIs for Scale and Simplicity - QCon San Francisco 2013Redesigning PayPal APIs for Scale and Simplicity - QCon San Francisco 2013
Redesigning PayPal APIs for Scale and Simplicity - QCon San Francisco 2013Deepak Nadig
 
Building the Eventbrite API Ecosystem
Building the Eventbrite API EcosystemBuilding the Eventbrite API Ecosystem
Building the Eventbrite API Ecosystem
Mitch Colleran
 
Api fundamentals
Api fundamentalsApi fundamentals
Api fundamentals
AgileDenver
 
Rest Introduction (Chris Jimenez)
Rest Introduction (Chris Jimenez)Rest Introduction (Chris Jimenez)
Rest Introduction (Chris Jimenez)PiXeL16
 
RESTful services and OAUTH protocol in IoT
RESTful services and OAUTH protocol in IoTRESTful services and OAUTH protocol in IoT
RESTful services and OAUTH protocol in IoT
Yakov Fain
 
API & Backend Integration
API & Backend IntegrationAPI & Backend Integration
API & Backend Integration
Elewayte
 
Api FUNdamentals #MHA2017
Api FUNdamentals #MHA2017Api FUNdamentals #MHA2017
Api FUNdamentals #MHA2017
JoEllen Carter
 
A Glance at the P2P Cryptocurrency Exchange Development Company.pptx
A Glance at the P2P Cryptocurrency Exchange Development Company.pptxA Glance at the P2P Cryptocurrency Exchange Development Company.pptx
A Glance at the P2P Cryptocurrency Exchange Development Company.pptx
ChrisL55
 
eCommerce Payment Gateways: An Introduction
eCommerce Payment Gateways: An IntroductioneCommerce Payment Gateways: An Introduction
eCommerce Payment Gateways: An Introduction
AidanChard
 
Web Based APIs
Web Based APIsWeb Based APIs
Web Based APIs
Josh Schumacher
 
Real-time Communications with SignalR
Real-time Communications with SignalRReal-time Communications with SignalR
Real-time Communications with SignalR
Shravan Kumar Kasagoni
 
Online Payments and You
Online Payments and YouOnline Payments and You
Online Payments and You
Yos Riady
 
Choosing the Right E-commerce Solution
Choosing the Right E-commerce SolutionChoosing the Right E-commerce Solution
Choosing the Right E-commerce Solution
Dr Matt McDougall
 
Webhooks do's and dont's: what we learned after integrating +100 APIs - Giuli...
Webhooks do's and dont's: what we learned after integrating +100 APIs - Giuli...Webhooks do's and dont's: what we learned after integrating +100 APIs - Giuli...
Webhooks do's and dont's: what we learned after integrating +100 APIs - Giuli...
Codemotion
 
Intro to OAuth2 and OpenID Connect
Intro to OAuth2 and OpenID ConnectIntro to OAuth2 and OpenID Connect
Intro to OAuth2 and OpenID Connect
LiamWadman
 

Similar to Apis and-web-programming (20)

Open Bank Project Presentation Tel Aviv CA 4th April 2017
Open Bank Project Presentation Tel Aviv CA 4th April 2017 Open Bank Project Presentation Tel Aviv CA 4th April 2017
Open Bank Project Presentation Tel Aviv CA 4th April 2017
 
Party + REST = Win
Party + REST = WinParty + REST = Win
Party + REST = Win
 
Designing Usable APIs featuring Forrester Research, Inc.
Designing Usable APIs featuring Forrester Research, Inc.Designing Usable APIs featuring Forrester Research, Inc.
Designing Usable APIs featuring Forrester Research, Inc.
 
Integrating consumers IoT devices into Business Workflow
Integrating consumers IoT devices into Business WorkflowIntegrating consumers IoT devices into Business Workflow
Integrating consumers IoT devices into Business Workflow
 
Redesigning PayPal APIs for Scale and Simplicity - QCon San Francisco 2013
Redesigning PayPal APIs for Scale and Simplicity - QCon San Francisco 2013Redesigning PayPal APIs for Scale and Simplicity - QCon San Francisco 2013
Redesigning PayPal APIs for Scale and Simplicity - QCon San Francisco 2013
 
Building the Eventbrite API Ecosystem
Building the Eventbrite API EcosystemBuilding the Eventbrite API Ecosystem
Building the Eventbrite API Ecosystem
 
Api fundamentals
Api fundamentalsApi fundamentals
Api fundamentals
 
Rest Introduction (Chris Jimenez)
Rest Introduction (Chris Jimenez)Rest Introduction (Chris Jimenez)
Rest Introduction (Chris Jimenez)
 
RESTful services and OAUTH protocol in IoT
RESTful services and OAUTH protocol in IoTRESTful services and OAUTH protocol in IoT
RESTful services and OAUTH protocol in IoT
 
API & Backend Integration
API & Backend IntegrationAPI & Backend Integration
API & Backend Integration
 
Api FUNdamentals #MHA2017
Api FUNdamentals #MHA2017Api FUNdamentals #MHA2017
Api FUNdamentals #MHA2017
 
A Glance at the P2P Cryptocurrency Exchange Development Company.pptx
A Glance at the P2P Cryptocurrency Exchange Development Company.pptxA Glance at the P2P Cryptocurrency Exchange Development Company.pptx
A Glance at the P2P Cryptocurrency Exchange Development Company.pptx
 
eCommerce Payment Gateways: An Introduction
eCommerce Payment Gateways: An IntroductioneCommerce Payment Gateways: An Introduction
eCommerce Payment Gateways: An Introduction
 
Smartone v1.0
Smartone v1.0Smartone v1.0
Smartone v1.0
 
Web Based APIs
Web Based APIsWeb Based APIs
Web Based APIs
 
Real-time Communications with SignalR
Real-time Communications with SignalRReal-time Communications with SignalR
Real-time Communications with SignalR
 
Online Payments and You
Online Payments and YouOnline Payments and You
Online Payments and You
 
Choosing the Right E-commerce Solution
Choosing the Right E-commerce SolutionChoosing the Right E-commerce Solution
Choosing the Right E-commerce Solution
 
Webhooks do's and dont's: what we learned after integrating +100 APIs - Giuli...
Webhooks do's and dont's: what we learned after integrating +100 APIs - Giuli...Webhooks do's and dont's: what we learned after integrating +100 APIs - Giuli...
Webhooks do's and dont's: what we learned after integrating +100 APIs - Giuli...
 
Intro to OAuth2 and OpenID Connect
Intro to OAuth2 and OpenID ConnectIntro to OAuth2 and OpenID Connect
Intro to OAuth2 and OpenID Connect
 

Recently uploaded

Comptia N+ Standard Networking lesson guide
Comptia N+ Standard Networking lesson guideComptia N+ Standard Networking lesson guide
Comptia N+ Standard Networking lesson guide
GTProductions1
 
1.Wireless Communication System_Wireless communication is a broad term that i...
1.Wireless Communication System_Wireless communication is a broad term that i...1.Wireless Communication System_Wireless communication is a broad term that i...
1.Wireless Communication System_Wireless communication is a broad term that i...
JeyaPerumal1
 
原版仿制(uob毕业证书)英国伯明翰大学毕业证本科学历证书原版一模一样
原版仿制(uob毕业证书)英国伯明翰大学毕业证本科学历证书原版一模一样原版仿制(uob毕业证书)英国伯明翰大学毕业证本科学历证书原版一模一样
原版仿制(uob毕业证书)英国伯明翰大学毕业证本科学历证书原版一模一样
3ipehhoa
 
test test test test testtest test testtest test testtest test testtest test ...
test test  test test testtest test testtest test testtest test testtest test ...test test  test test testtest test testtest test testtest test testtest test ...
test test test test testtest test testtest test testtest test testtest test ...
Arif0071
 
急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样
急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样
急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样
3ipehhoa
 
The+Prospects+of+E-Commerce+in+China.pptx
The+Prospects+of+E-Commerce+in+China.pptxThe+Prospects+of+E-Commerce+in+China.pptx
The+Prospects+of+E-Commerce+in+China.pptx
laozhuseo02
 
Latest trends in computer networking.pptx
Latest trends in computer networking.pptxLatest trends in computer networking.pptx
Latest trends in computer networking.pptx
JungkooksNonexistent
 
Internet of Things in Manufacturing: Revolutionizing Efficiency & Quality | C...
Internet of Things in Manufacturing: Revolutionizing Efficiency & Quality | C...Internet of Things in Manufacturing: Revolutionizing Efficiency & Quality | C...
Internet of Things in Manufacturing: Revolutionizing Efficiency & Quality | C...
CIOWomenMagazine
 
guildmasters guide to ravnica Dungeons & Dragons 5...
guildmasters guide to ravnica Dungeons & Dragons 5...guildmasters guide to ravnica Dungeons & Dragons 5...
guildmasters guide to ravnica Dungeons & Dragons 5...
Rogerio Filho
 
一比一原版(LBS毕业证)伦敦商学院毕业证成绩单专业办理
一比一原版(LBS毕业证)伦敦商学院毕业证成绩单专业办理一比一原版(LBS毕业证)伦敦商学院毕业证成绩单专业办理
一比一原版(LBS毕业证)伦敦商学院毕业证成绩单专业办理
eutxy
 
1比1复刻(bath毕业证书)英国巴斯大学毕业证学位证原版一模一样
1比1复刻(bath毕业证书)英国巴斯大学毕业证学位证原版一模一样1比1复刻(bath毕业证书)英国巴斯大学毕业证学位证原版一模一样
1比1复刻(bath毕业证书)英国巴斯大学毕业证学位证原版一模一样
3ipehhoa
 
Bài tập unit 1 English in the world.docx
Bài tập unit 1 English in the world.docxBài tập unit 1 English in the world.docx
Bài tập unit 1 English in the world.docx
nhiyenphan2005
 
This 7-second Brain Wave Ritual Attracts Money To You.!
This 7-second Brain Wave Ritual Attracts Money To You.!This 7-second Brain Wave Ritual Attracts Money To You.!
This 7-second Brain Wave Ritual Attracts Money To You.!
nirahealhty
 
APNIC Foundation, presented by Ellisha Heppner at the PNG DNS Forum 2024
APNIC Foundation, presented by Ellisha Heppner at the PNG DNS Forum 2024APNIC Foundation, presented by Ellisha Heppner at the PNG DNS Forum 2024
APNIC Foundation, presented by Ellisha Heppner at the PNG DNS Forum 2024
APNIC
 
Bridging the Digital Gap Brad Spiegel Macon, GA Initiative.pptx
Bridging the Digital Gap Brad Spiegel Macon, GA Initiative.pptxBridging the Digital Gap Brad Spiegel Macon, GA Initiative.pptx
Bridging the Digital Gap Brad Spiegel Macon, GA Initiative.pptx
Brad Spiegel Macon GA
 
Italy Agriculture Equipment Market Outlook to 2027
Italy Agriculture Equipment Market Outlook to 2027Italy Agriculture Equipment Market Outlook to 2027
Italy Agriculture Equipment Market Outlook to 2027
harveenkaur52
 
JAVIER LASA-EXPERIENCIA digital 1986-2024.pdf
JAVIER LASA-EXPERIENCIA digital 1986-2024.pdfJAVIER LASA-EXPERIENCIA digital 1986-2024.pdf
JAVIER LASA-EXPERIENCIA digital 1986-2024.pdf
Javier Lasa
 
How to Use Contact Form 7 Like a Pro.pptx
How to Use Contact Form 7 Like a Pro.pptxHow to Use Contact Form 7 Like a Pro.pptx
How to Use Contact Form 7 Like a Pro.pptx
Gal Baras
 
一比一原版(CSU毕业证)加利福尼亚州立大学毕业证成绩单专业办理
一比一原版(CSU毕业证)加利福尼亚州立大学毕业证成绩单专业办理一比一原版(CSU毕业证)加利福尼亚州立大学毕业证成绩单专业办理
一比一原版(CSU毕业证)加利福尼亚州立大学毕业证成绩单专业办理
ufdana
 
Meet up Milano 14 _ Axpo Italia_ Migration from Mule3 (On-prem) to.pdf
Meet up Milano 14 _ Axpo Italia_ Migration from Mule3 (On-prem) to.pdfMeet up Milano 14 _ Axpo Italia_ Migration from Mule3 (On-prem) to.pdf
Meet up Milano 14 _ Axpo Italia_ Migration from Mule3 (On-prem) to.pdf
Florence Consulting
 

Recently uploaded (20)

Comptia N+ Standard Networking lesson guide
Comptia N+ Standard Networking lesson guideComptia N+ Standard Networking lesson guide
Comptia N+ Standard Networking lesson guide
 
1.Wireless Communication System_Wireless communication is a broad term that i...
1.Wireless Communication System_Wireless communication is a broad term that i...1.Wireless Communication System_Wireless communication is a broad term that i...
1.Wireless Communication System_Wireless communication is a broad term that i...
 
原版仿制(uob毕业证书)英国伯明翰大学毕业证本科学历证书原版一模一样
原版仿制(uob毕业证书)英国伯明翰大学毕业证本科学历证书原版一模一样原版仿制(uob毕业证书)英国伯明翰大学毕业证本科学历证书原版一模一样
原版仿制(uob毕业证书)英国伯明翰大学毕业证本科学历证书原版一模一样
 
test test test test testtest test testtest test testtest test testtest test ...
test test  test test testtest test testtest test testtest test testtest test ...test test  test test testtest test testtest test testtest test testtest test ...
test test test test testtest test testtest test testtest test testtest test ...
 
急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样
急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样
急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样
 
The+Prospects+of+E-Commerce+in+China.pptx
The+Prospects+of+E-Commerce+in+China.pptxThe+Prospects+of+E-Commerce+in+China.pptx
The+Prospects+of+E-Commerce+in+China.pptx
 
Latest trends in computer networking.pptx
Latest trends in computer networking.pptxLatest trends in computer networking.pptx
Latest trends in computer networking.pptx
 
Internet of Things in Manufacturing: Revolutionizing Efficiency & Quality | C...
Internet of Things in Manufacturing: Revolutionizing Efficiency & Quality | C...Internet of Things in Manufacturing: Revolutionizing Efficiency & Quality | C...
Internet of Things in Manufacturing: Revolutionizing Efficiency & Quality | C...
 
guildmasters guide to ravnica Dungeons & Dragons 5...
guildmasters guide to ravnica Dungeons & Dragons 5...guildmasters guide to ravnica Dungeons & Dragons 5...
guildmasters guide to ravnica Dungeons & Dragons 5...
 
一比一原版(LBS毕业证)伦敦商学院毕业证成绩单专业办理
一比一原版(LBS毕业证)伦敦商学院毕业证成绩单专业办理一比一原版(LBS毕业证)伦敦商学院毕业证成绩单专业办理
一比一原版(LBS毕业证)伦敦商学院毕业证成绩单专业办理
 
1比1复刻(bath毕业证书)英国巴斯大学毕业证学位证原版一模一样
1比1复刻(bath毕业证书)英国巴斯大学毕业证学位证原版一模一样1比1复刻(bath毕业证书)英国巴斯大学毕业证学位证原版一模一样
1比1复刻(bath毕业证书)英国巴斯大学毕业证学位证原版一模一样
 
Bài tập unit 1 English in the world.docx
Bài tập unit 1 English in the world.docxBài tập unit 1 English in the world.docx
Bài tập unit 1 English in the world.docx
 
This 7-second Brain Wave Ritual Attracts Money To You.!
This 7-second Brain Wave Ritual Attracts Money To You.!This 7-second Brain Wave Ritual Attracts Money To You.!
This 7-second Brain Wave Ritual Attracts Money To You.!
 
APNIC Foundation, presented by Ellisha Heppner at the PNG DNS Forum 2024
APNIC Foundation, presented by Ellisha Heppner at the PNG DNS Forum 2024APNIC Foundation, presented by Ellisha Heppner at the PNG DNS Forum 2024
APNIC Foundation, presented by Ellisha Heppner at the PNG DNS Forum 2024
 
Bridging the Digital Gap Brad Spiegel Macon, GA Initiative.pptx
Bridging the Digital Gap Brad Spiegel Macon, GA Initiative.pptxBridging the Digital Gap Brad Spiegel Macon, GA Initiative.pptx
Bridging the Digital Gap Brad Spiegel Macon, GA Initiative.pptx
 
Italy Agriculture Equipment Market Outlook to 2027
Italy Agriculture Equipment Market Outlook to 2027Italy Agriculture Equipment Market Outlook to 2027
Italy Agriculture Equipment Market Outlook to 2027
 
JAVIER LASA-EXPERIENCIA digital 1986-2024.pdf
JAVIER LASA-EXPERIENCIA digital 1986-2024.pdfJAVIER LASA-EXPERIENCIA digital 1986-2024.pdf
JAVIER LASA-EXPERIENCIA digital 1986-2024.pdf
 
How to Use Contact Form 7 Like a Pro.pptx
How to Use Contact Form 7 Like a Pro.pptxHow to Use Contact Form 7 Like a Pro.pptx
How to Use Contact Form 7 Like a Pro.pptx
 
一比一原版(CSU毕业证)加利福尼亚州立大学毕业证成绩单专业办理
一比一原版(CSU毕业证)加利福尼亚州立大学毕业证成绩单专业办理一比一原版(CSU毕业证)加利福尼亚州立大学毕业证成绩单专业办理
一比一原版(CSU毕业证)加利福尼亚州立大学毕业证成绩单专业办理
 
Meet up Milano 14 _ Axpo Italia_ Migration from Mule3 (On-prem) to.pdf
Meet up Milano 14 _ Axpo Italia_ Migration from Mule3 (On-prem) to.pdfMeet up Milano 14 _ Axpo Italia_ Migration from Mule3 (On-prem) to.pdf
Meet up Milano 14 _ Axpo Italia_ Migration from Mule3 (On-prem) to.pdf
 

Apis and-web-programming

  • 2. Stuff to cover • What is an API? • What is HTTP? • What is REST mean and why is it good? • How the connect flow works for a simple integration? • How the connect flow works for a partner integration? • How do webhooks work?
  • 3. What is an API • Application Programming Interface • A set of instructions for communicating with an application • Normally refer to web based services but all sorts of software can have an API
  • 4. Dualit API v1 • startToasting(); • “OK Begun Toasting” • stopToasting(); • “OK Toasting ended” • isToasting(); • TRUE • FALSE
  • 5. What is HTTP? • How we transfer Hypertext (i.e. HTML) • Unencrypted unless using HTTPS • Everything on GoCardless is forced over HTTPS by Google Chrome • Information is transferred with a verb: • HTTP verbs suggest context of actions
  • 6. HTTP VERBS (What they actually mean) GET PUT POST DELETE Get Update Create Delete
  • 8. What is REST? • Representational state transfer • Basically, a set of guidelines that together make an API that could be described as “RESTful” • An API is RESTful if it: • Uses standard HTTP verbs (PUT, GET, POST) • Has one base URI (api.gocardless.com) • Uses standard internet media JSON or XML • Hypertext links to related resources • REST v SOAP
  • 9. • Has one base URI (gocardless.com) • Uses standard internet media JSON or XML • Uses standard HTTP methods (PUT, GET, POST) • Hypertext links to related resources API endpoint for creating a customer
  • 10. What is SOAP? • Simple Object Access Protocol • XML messages, harder to process (and read) than JSON • Security built in to SOAP messages, doesn’t rely on HTTPS
  • 11. Why is REST good? • Because it’s a standard, predictability of code writing speeds up development time • Helps you organise a complex system into simple resources (Payment, Customer) • Security is handled independently by transport layer (HTTPS) • Simpler, more human readable than SOAP messages
  • 12. A simple integration • Something more dynamic than a paylink • Imagine we’re a charity and want the user to type in the amount they wish to donate on our website • We want to let them select a one off or recurring payment for an amount they choose
  • 13. I wish to donate £500| Donate Every month
  • 14.
  • 15. Partner Connect Flow • Allow a partner to collect payments on behalf of their merchants • Examples: FreeAgent, Kashflow, Crowdfunding websites
  • 16. Merchant  Partner  FreeAgent (partner) wants to allow Jim’s Gym (merchant) to take payments through GoCardless
  • 17. Merchant  Partner  The merchant wants to be able to take payments through the partner
  • 18. Merchant  Partner  The partner redirects the merchant to GoCardless
  • 19.  Merchant The merchant needs to have an existing GoCardless account, or create a new one
  • 20.  GoCardless asks the merchant to authorise the partner access to their account Merchant
  • 21. NX8LSkRUIYVNZ1eFCBnh  Partner When the merchant authorises, GoCardless gives the partner a unique access token to store for future requests
  • 22. Whats the payment status? It failed NX8LSkRUIYVNZ1eFCBnh payment: failed   Now, when the partner needs information from GoCardless about the merchant account, they send the access token each time
  • 24. Webhooks • Notification of events pushed from GoCardless to a third party web service • Typically this will be payment failures, new customers etc  “Payment failed”
  • 25. Webhooks • Webhooks allow us to instantly notify an API integration of an event to do with their payments • Merchants have to configure their app to “listen” to webhooks