SlideShare a Scribd company logo
1 of 30
ACCEPTING ONLINE
PAYMENT FOR YOUR
LIBRARY
& ‘STRIPE’ AS AN EXAMPLE
Code4Lib DC Unconference, Aug. 11-12, 2014.
Bohyun Kim
Associate Director for Library Applications and Knowledge
Systems
University of Maryland, Baltimore
Health Sciences and Human Services Library
Twitter: @bohyunkim
Website: http://bohyunkim.net
Elements of Online Payment
 ACH (Automated Clearing House) payments: Electronic credit
and debit transfers. Most payment solutions use ACH to send
money (minus fees) to their customers.
 Merchant Account: A bank account that allows a customer to
receive payments through credit or debit cards. Merchant providers
are required to obey regulations established by card associations.
Many processors act as both the merchant account as well as the
payment gateway.
 Payment Gateway: The middleman between the merchant and
their sponsoring bank. It allows merchants to securely pass credit
card information between the customer and the merchant and also
between merchant and the payment processor.
 Payment Processor: A company that a merchant uses to handle
credit card transactions. Payment processors implement anti-fraud
measures to ensure that both the front-facing customer and the
merchant are protected.
 PCI (the Payment Card Industry) Compliance: A merchant or
payment gateway must set up their payment environment in a way
that meets the Payment Card Industry Data Security Standard (PCI
DSS).
 Source: http://sixrevisions.com/tools/online-payment-systems/
How Online Payment Works
Different payment gateways,
merchant accounts, and
bank accounts are setup to
work together (or not). Your
bank may also be able to
act as the merchant
account.
Source:
http://www.larryullman.com/
2012/10/10/introduction-to-
stripe/
Online Payment Systems
 Authorize.net
 PayPal
 Google Checkout
 Amazon Payments
 Stripe
 WePay
 Dwolla
 Braintree
 Samurai
Source: http://sixrevisions.com/tools/online-payment-
systems/
Stripe
Stripe acts as both the
payment gateway and
the merchant account.
Your website
communicates the
customer and order
information to Stripe,
Stripe clears the
payment information
with the associated
credit card company,
and Stripe puts the
money in your bank
account.
Source:
http://www.larryullman.c
om/2012/10/10/introducti
API Keys for Testing
Resources
 Card Numbers for Testing
https://stripe.com/docs/testing#cards
 Code Examples
https://stripe.com/docs/examples
 Docs
https://stripe.com/docs
Starting Point
 Borrowed example from
https://github.com/myg0v/Simple-Bootstrap-
Stripe-Payment-Form
When the Payment Succeeds,
Modify and Enhance
 Add Patron & Payment Details.
 Allow custom amount for payment.
 Change the currency to USD.
 Configure the validation for new fields.
(Bootstrapvalidator jQuery Plugin)
 Hide the payment form once the charge goes
through.
 Other examples:
https://stripe.com/docs/examples
Process
 You create a form on your website that accepts the payment details.
 You include a Stripe JavaScript library on the page.
 You write a JavaScript function that watches for the form submission (i.e.,
you create an event handler for the form’s submission).
 When the form is submitted, the user’s payment details are securely sent to
Stripe via Ajax.
 Stripe will confirm that the payment information is valid and return a token
that uniquely identifies that payment information.
 The JavaScript function that handles the Ajax response stores the token in
a hidden form element and submits the form.
 The server-side script (aka, the PHP code) that handles the form’s
submission uses the token to actually process the payment.
 So the customer never leaves your site but the payment information never
hits your server: the best of both worlds. (This is the process when all
works well; payment verification errors introduce new processes.)
Source: http://www.larryullman.com/2012/11/28/creating-a-form-for-handling-
payments-with-stripe/
JS/jQuery
PHP
Modified Form
Testing
Dashboard
Logs
Token Request
Charge Request
Failed Charge
Charge Response - Declined
Error Codes
More to be Done
 Send the confirmation e-mail upon the
payment success.
 … More.
Questions?
Photo credit: Flickr Nina`H
https://www.flickr.com/photos/ninahiironniemi/209281997

More Related Content

What's hot

PayU Biz Product Deck (1)
PayU Biz Product Deck (1)PayU Biz Product Deck (1)
PayU Biz Product Deck (1)
ICICI Bank
 

What's hot (20)

Aadhaar Enable Payment System
Aadhaar Enable Payment SystemAadhaar Enable Payment System
Aadhaar Enable Payment System
 
Paypal Integration For Android Application By LetsNurture
Paypal Integration For Android Application By LetsNurturePaypal Integration For Android Application By LetsNurture
Paypal Integration For Android Application By LetsNurture
 
PayU Biz Product Deck (1)
PayU Biz Product Deck (1)PayU Biz Product Deck (1)
PayU Biz Product Deck (1)
 
Stripe SCA
Stripe SCAStripe SCA
Stripe SCA
 
Pinch Product Dev
Pinch Product DevPinch Product Dev
Pinch Product Dev
 
Top 10 Features and Benefits of eCommerce Payment Gateway
Top 10 Features and Benefits of eCommerce Payment GatewayTop 10 Features and Benefits of eCommerce Payment Gateway
Top 10 Features and Benefits of eCommerce Payment Gateway
 
Payumoney
PayumoneyPayumoney
Payumoney
 
Cashless Payment Solution For Every Business
Cashless Payment Solution For Every Business Cashless Payment Solution For Every Business
Cashless Payment Solution For Every Business
 
EMV QRCode Payment in Vending Machine
EMV QRCode Payment in Vending MachineEMV QRCode Payment in Vending Machine
EMV QRCode Payment in Vending Machine
 
Razorpay Payment Gateway Integration In iOS Swift
Razorpay Payment Gateway Integration In iOS SwiftRazorpay Payment Gateway Integration In iOS Swift
Razorpay Payment Gateway Integration In iOS Swift
 
自動販賣機與開放式掃碼支付
自動販賣機與開放式掃碼支付自動販賣機與開放式掃碼支付
自動販賣機與開放式掃碼支付
 
When iOT meet FinTech.
When iOT meet FinTech.When iOT meet FinTech.
When iOT meet FinTech.
 
Startup Highway Workshop
Startup Highway WorkshopStartup Highway Workshop
Startup Highway Workshop
 
myPOS Mobile Top-up - Features & Benefits for Merchants
myPOS Mobile Top-up - Features & Benefits for MerchantsmyPOS Mobile Top-up - Features & Benefits for Merchants
myPOS Mobile Top-up - Features & Benefits for Merchants
 
myPOS devices - a payment solution for every business
myPOS devices - a payment solution for every businessmyPOS devices - a payment solution for every business
myPOS devices - a payment solution for every business
 
Joomla virtuemart auspost secure pay payment gateway
Joomla virtuemart auspost secure pay payment gatewayJoomla virtuemart auspost secure pay payment gateway
Joomla virtuemart auspost secure pay payment gateway
 
myPOS - Reshaping the world of payments
myPOS - Reshaping the world of paymentsmyPOS - Reshaping the world of payments
myPOS - Reshaping the world of payments
 
myPOS new mobile app - make your business mobile!
myPOS new mobile app - make your business mobile!myPOS new mobile app - make your business mobile!
myPOS new mobile app - make your business mobile!
 
myPOS - an innovative cashless solution
myPOS - an innovative cashless solutionmyPOS - an innovative cashless solution
myPOS - an innovative cashless solution
 
Payeezy Integration
Payeezy Integration Payeezy Integration
Payeezy Integration
 

Viewers also liked

The Mobile Web and the Mobile Websites of Libraries: How They Changed for the...
The Mobile Web and the Mobile Websites of Libraries: How They Changed for the...The Mobile Web and the Mobile Websites of Libraries: How They Changed for the...
The Mobile Web and the Mobile Websites of Libraries: How They Changed for the...
Bohyun Kim
 

Viewers also liked (15)

Take Better Care of Library Data and Spreadsheets with Google Visualization A...
Take Better Care of Library Data and Spreadsheets with Google Visualization A...Take Better Care of Library Data and Spreadsheets with Google Visualization A...
Take Better Care of Library Data and Spreadsheets with Google Visualization A...
 
Libraries Meet the Second Machine Age
Libraries Meet the Second Machine AgeLibraries Meet the Second Machine Age
Libraries Meet the Second Machine Age
 
Building a Faculty Publications Database
Building a Faculty Publications DatabaseBuilding a Faculty Publications Database
Building a Faculty Publications Database
 
Turning the IT Dept. Outward
Turning the IT Dept. OutwardTurning the IT Dept. Outward
Turning the IT Dept. Outward
 
Visualizing Library Data
Visualizing Library DataVisualizing Library Data
Visualizing Library Data
 
Strategically UX Oriented with Personas
Strategically UX Oriented with PersonasStrategically UX Oriented with Personas
Strategically UX Oriented with Personas
 
Back to the Future Part III: Libraries and the New Technology Frontier
Back to the Future Part III: Libraries and the New Technology FrontierBack to the Future Part III: Libraries and the New Technology Frontier
Back to the Future Part III: Libraries and the New Technology Frontier
 
Geek out : Adding Coding Skills to Your Professional Repertoire
Geek out: Adding Coding Skills to Your Professional RepertoireGeek out: Adding Coding Skills to Your Professional Repertoire
Geek out : Adding Coding Skills to Your Professional Repertoire
 
Preparing for the Makerspace Implemnetation at UMB HS/HSL
Preparing for the Makerspace Implemnetation at UMB HS/HSLPreparing for the Makerspace Implemnetation at UMB HS/HSL
Preparing for the Makerspace Implemnetation at UMB HS/HSL
 
Making a Makerspace Happen
Making a Makerspace HappenMaking a Makerspace Happen
Making a Makerspace Happen
 
Learning with Games in Medicine and Healthcare
Learning with Games in Medicine and HealthcareLearning with Games in Medicine and Healthcare
Learning with Games in Medicine and Healthcare
 
The Mobile Web and the Mobile Websites of Libraries: How They Changed for the...
The Mobile Web and the Mobile Websites of Libraries: How They Changed for the...The Mobile Web and the Mobile Websites of Libraries: How They Changed for the...
The Mobile Web and the Mobile Websites of Libraries: How They Changed for the...
 
Applying Gamification to Higher Education and Libraries
Applying Gamification to Higher Education and LibrariesApplying Gamification to Higher Education and Libraries
Applying Gamification to Higher Education and Libraries
 
Tata Motors Company Analysis Report 2015-2016
Tata Motors Company Analysis Report 2015-2016Tata Motors Company Analysis Report 2015-2016
Tata Motors Company Analysis Report 2015-2016
 
Library Proposal
Library ProposalLibrary Proposal
Library Proposal
 

Similar to Accepting Online Payment for Your Library and ‘Stripe’ as an Example

E commerce infrastructure
E commerce infrastructureE commerce infrastructure
E commerce infrastructure
sahilm87
 
Payment gateway testing
Payment gateway testingPayment gateway testing
Payment gateway testing
Atul Pant
 
AR/AP Providers Look to Payments for New Revenue
AR/AP Providers Look to Payments for New RevenueAR/AP Providers Look to Payments for New Revenue
AR/AP Providers Look to Payments for New Revenue
XTRMAccount
 

Similar to Accepting Online Payment for Your Library and ‘Stripe’ as an Example (20)

Factors to Consider While Choosing a Payment Gateway Provider
Factors to Consider While Choosing a Payment Gateway ProviderFactors to Consider While Choosing a Payment Gateway Provider
Factors to Consider While Choosing a Payment Gateway Provider
 
E commerce infrastructure
E commerce infrastructureE commerce infrastructure
E commerce infrastructure
 
Payment gateway testing
Payment gateway testingPayment gateway testing
Payment gateway testing
 
Payment Processor vs Payment Geteway The Biggest Difference.pptx
Payment Processor vs Payment Geteway The Biggest Difference.pptxPayment Processor vs Payment Geteway The Biggest Difference.pptx
Payment Processor vs Payment Geteway The Biggest Difference.pptx
 
Why Payment gateway integration is important.pdf
Why Payment gateway integration is important.pdfWhy Payment gateway integration is important.pdf
Why Payment gateway integration is important.pdf
 
Payment Gateway
Payment GatewayPayment Gateway
Payment Gateway
 
Mea1
Mea1Mea1
Mea1
 
ACH DEBIT v/s ACH CREDIT
ACH DEBIT v/s ACH CREDIT ACH DEBIT v/s ACH CREDIT
ACH DEBIT v/s ACH CREDIT
 
Guide to Understanding Credit Card Processing for Merchants
Guide to Understanding Credit Card Processing for MerchantsGuide to Understanding Credit Card Processing for Merchants
Guide to Understanding Credit Card Processing for Merchants
 
Monetize with PayPal X Payments Platform
Monetize with PayPal X Payments PlatformMonetize with PayPal X Payments Platform
Monetize with PayPal X Payments Platform
 
E Payment
E PaymentE Payment
E Payment
 
AR/AP Providers Look to Payments for New Revenue
AR/AP Providers Look to Payments for New RevenueAR/AP Providers Look to Payments for New Revenue
AR/AP Providers Look to Payments for New Revenue
 
Online Payment Gateway System
Online Payment Gateway SystemOnline Payment Gateway System
Online Payment Gateway System
 
Payment gateway
Payment gatewayPayment gateway
Payment gateway
 
Open web payments
Open web paymentsOpen web payments
Open web payments
 
Active Merchant
Active MerchantActive Merchant
Active Merchant
 
What Is Mobile App Payment Gateway Integration - consumer-sketch.pptx
What Is Mobile App Payment Gateway Integration - consumer-sketch.pptxWhat Is Mobile App Payment Gateway Integration - consumer-sketch.pptx
What Is Mobile App Payment Gateway Integration - consumer-sketch.pptx
 
How to Implement Stripe Get a Complete Insight!.docx.pdf
How to Implement Stripe Get a Complete Insight!.docx.pdfHow to Implement Stripe Get a Complete Insight!.docx.pdf
How to Implement Stripe Get a Complete Insight!.docx.pdf
 
All You Need to Know About Mobile Payment Gateways in 2023.pdf
All You Need to Know About Mobile Payment Gateways in 2023.pdfAll You Need to Know About Mobile Payment Gateways in 2023.pdf
All You Need to Know About Mobile Payment Gateways in 2023.pdf
 
ACH Payments(NACHA/NACH/Direct debit System)
ACH Payments(NACHA/NACH/Direct debit System)ACH Payments(NACHA/NACH/Direct debit System)
ACH Payments(NACHA/NACH/Direct debit System)
 

More from Bohyun Kim

More from Bohyun Kim (20)

Exploring Machine Learning for Libraries and Archives: Present and Future
Exploring Machine Learning for Libraries and Archives: Present and FutureExploring Machine Learning for Libraries and Archives: Present and Future
Exploring Machine Learning for Libraries and Archives: Present and Future
 
New Technologies of the Fourth Industrial Revolution: AI, IoT, Robotics, and ...
New Technologies of the Fourth Industrial Revolution: AI, IoT, Robotics, and ...New Technologies of the Fourth Industrial Revolution: AI, IoT, Robotics, and ...
New Technologies of the Fourth Industrial Revolution: AI, IoT, Robotics, and ...
 
Practical Considerations for Open Infrastructure
Practical Considerations for Open InfrastructurePractical Considerations for Open Infrastructure
Practical Considerations for Open Infrastructure
 
AI for Libraries
AI for LibrariesAI for Libraries
AI for Libraries
 
The Potential and Challenges of Today's AI
The Potential and Challenges of Today's AIThe Potential and Challenges of Today's AI
The Potential and Challenges of Today's AI
 
Robots: What Could Go Wrong? What Could Go Right?
Robots: What Could Go Wrong? What Could Go Right? Robots: What Could Go Wrong? What Could Go Right?
Robots: What Could Go Wrong? What Could Go Right?
 
AI & Us: Are We Intelligent Machines?
AI & Us: Are We Intelligent Machines?AI & Us: Are We Intelligent Machines?
AI & Us: Are We Intelligent Machines?
 
Blockchain: The New Technology and Its Applications for Libraries
Blockchain: The New Technology and Its Applications for LibrariesBlockchain: The New Technology and Its Applications for Libraries
Blockchain: The New Technology and Its Applications for Libraries
 
Machine Intelligence and Moral Decision-Making
Machine Intelligence and Moral Decision-MakingMachine Intelligence and Moral Decision-Making
Machine Intelligence and Moral Decision-Making
 
Impact of Artificial Intelligence (AI) on Libraries
Impact of Artificial Intelligence (AI) on Libraries Impact of Artificial Intelligence (AI) on Libraries
Impact of Artificial Intelligence (AI) on Libraries
 
Taking on a New Leadership Challenge: Student-Focused Learning in Artificial ...
Taking on a New Leadership Challenge: Student-Focused Learning in Artificial ...Taking on a New Leadership Challenge: Student-Focused Learning in Artificial ...
Taking on a New Leadership Challenge: Student-Focused Learning in Artificial ...
 
Moving Forward with Digital Disruption: A Right Mindset
Moving Forward with Digital Disruption: A Right MindsetMoving Forward with Digital Disruption: A Right Mindset
Moving Forward with Digital Disruption: A Right Mindset
 
 Blockchain Overview: Possibilities and Issues
 Blockchain Overview: Possibilities and Issues Blockchain Overview: Possibilities and Issues
 Blockchain Overview: Possibilities and Issues
 
AI Lab at a Library? Why Artificial Intelligence Matters & What Libraries Can Do
AI Lab at a Library? Why Artificial Intelligence Matters & What Libraries Can DoAI Lab at a Library? Why Artificial Intelligence Matters & What Libraries Can Do
AI Lab at a Library? Why Artificial Intelligence Matters & What Libraries Can Do
 
A Pedagogical Approach to Web Scale Discovery User Interface
A Pedagogical Approach to Web Scale Discovery User InterfaceA Pedagogical Approach to Web Scale Discovery User Interface
A Pedagogical Approach to Web Scale Discovery User Interface
 
From Virtual Reality to Blockchain: Current and Emerging Tech Trends
From Virtual Reality to Blockchain: Current and Emerging Tech TrendsFrom Virtual Reality to Blockchain: Current and Emerging Tech Trends
From Virtual Reality to Blockchain: Current and Emerging Tech Trends
 
Interdisciplinary Learning through Libraries on Artificial Intelligence
Interdisciplinary Learning through Libraries on Artificial IntelligenceInterdisciplinary Learning through Libraries on Artificial Intelligence
Interdisciplinary Learning through Libraries on Artificial Intelligence
 
Facing Change: Tweak or Transform?
Facing Change: Tweak or Transform?Facing Change: Tweak or Transform?
Facing Change: Tweak or Transform?
 
Innovating Together: the UX of Discovery
Innovating Together: the UX of DiscoveryInnovating Together: the UX of Discovery
Innovating Together: the UX of Discovery
 
Cleaning Up the Mess: Modernizing Your Dev Team’s Outdated Workflow
Cleaning Up the Mess: Modernizing Your Dev Team’s Outdated WorkflowCleaning Up the Mess: Modernizing Your Dev Team’s Outdated Workflow
Cleaning Up the Mess: Modernizing Your Dev Team’s Outdated Workflow
 

Recently uploaded

TrustArc Webinar - Unified Trust Center for Privacy, Security, Compliance, an...
TrustArc Webinar - Unified Trust Center for Privacy, Security, Compliance, an...TrustArc Webinar - Unified Trust Center for Privacy, Security, Compliance, an...
TrustArc Webinar - Unified Trust Center for Privacy, Security, Compliance, an...
TrustArc
 
Hyatt driving innovation and exceptional customer experiences with FIDO passw...
Hyatt driving innovation and exceptional customer experiences with FIDO passw...Hyatt driving innovation and exceptional customer experiences with FIDO passw...
Hyatt driving innovation and exceptional customer experiences with FIDO passw...
FIDO Alliance
 
CORS (Kitworks Team Study 양다윗 발표자료 240510)
CORS (Kitworks Team Study 양다윗 발표자료 240510)CORS (Kitworks Team Study 양다윗 발표자료 240510)
CORS (Kitworks Team Study 양다윗 발표자료 240510)
Wonjun Hwang
 

Recently uploaded (20)

State of the Smart Building Startup Landscape 2024!
State of the Smart Building Startup Landscape 2024!State of the Smart Building Startup Landscape 2024!
State of the Smart Building Startup Landscape 2024!
 
WebRTC and SIP not just audio and video @ OpenSIPS 2024
WebRTC and SIP not just audio and video @ OpenSIPS 2024WebRTC and SIP not just audio and video @ OpenSIPS 2024
WebRTC and SIP not just audio and video @ OpenSIPS 2024
 
الأمن السيبراني - ما لا يسع للمستخدم جهله
الأمن السيبراني - ما لا يسع للمستخدم جهلهالأمن السيبراني - ما لا يسع للمستخدم جهله
الأمن السيبراني - ما لا يسع للمستخدم جهله
 
Simplifying Mobile A11y Presentation.pptx
Simplifying Mobile A11y Presentation.pptxSimplifying Mobile A11y Presentation.pptx
Simplifying Mobile A11y Presentation.pptx
 
TrustArc Webinar - Unified Trust Center for Privacy, Security, Compliance, an...
TrustArc Webinar - Unified Trust Center for Privacy, Security, Compliance, an...TrustArc Webinar - Unified Trust Center for Privacy, Security, Compliance, an...
TrustArc Webinar - Unified Trust Center for Privacy, Security, Compliance, an...
 
Human Expert Website Manual WCAG 2.0 2.1 2.2 Audit - Digital Accessibility Au...
Human Expert Website Manual WCAG 2.0 2.1 2.2 Audit - Digital Accessibility Au...Human Expert Website Manual WCAG 2.0 2.1 2.2 Audit - Digital Accessibility Au...
Human Expert Website Manual WCAG 2.0 2.1 2.2 Audit - Digital Accessibility Au...
 
UiPath manufacturing technology benefits and AI overview
UiPath manufacturing technology benefits and AI overviewUiPath manufacturing technology benefits and AI overview
UiPath manufacturing technology benefits and AI overview
 
Navigating the Large Language Model choices_Ravi Daparthi
Navigating the Large Language Model choices_Ravi DaparthiNavigating the Large Language Model choices_Ravi Daparthi
Navigating the Large Language Model choices_Ravi Daparthi
 
Event-Driven Architecture Masterclass: Integrating Distributed Data Stores Ac...
Event-Driven Architecture Masterclass: Integrating Distributed Data Stores Ac...Event-Driven Architecture Masterclass: Integrating Distributed Data Stores Ac...
Event-Driven Architecture Masterclass: Integrating Distributed Data Stores Ac...
 
Hyatt driving innovation and exceptional customer experiences with FIDO passw...
Hyatt driving innovation and exceptional customer experiences with FIDO passw...Hyatt driving innovation and exceptional customer experiences with FIDO passw...
Hyatt driving innovation and exceptional customer experiences with FIDO passw...
 
Observability Concepts EVERY Developer Should Know (DevOpsDays Seattle)
Observability Concepts EVERY Developer Should Know (DevOpsDays Seattle)Observability Concepts EVERY Developer Should Know (DevOpsDays Seattle)
Observability Concepts EVERY Developer Should Know (DevOpsDays Seattle)
 
Overview of Hyperledger Foundation
Overview of Hyperledger FoundationOverview of Hyperledger Foundation
Overview of Hyperledger Foundation
 
Generative AI Use Cases and Applications.pdf
Generative AI Use Cases and Applications.pdfGenerative AI Use Cases and Applications.pdf
Generative AI Use Cases and Applications.pdf
 
Intro to Passkeys and the State of Passwordless.pptx
Intro to Passkeys and the State of Passwordless.pptxIntro to Passkeys and the State of Passwordless.pptx
Intro to Passkeys and the State of Passwordless.pptx
 
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
 
JohnPollard-hybrid-app-RailsConf2024.pptx
JohnPollard-hybrid-app-RailsConf2024.pptxJohnPollard-hybrid-app-RailsConf2024.pptx
JohnPollard-hybrid-app-RailsConf2024.pptx
 
Microsoft CSP Briefing Pre-Engagement - Questionnaire
Microsoft CSP Briefing Pre-Engagement - QuestionnaireMicrosoft CSP Briefing Pre-Engagement - Questionnaire
Microsoft CSP Briefing Pre-Engagement - Questionnaire
 
Cyber Insurance - RalphGilot - Embry-Riddle Aeronautical University.pptx
Cyber Insurance - RalphGilot - Embry-Riddle Aeronautical University.pptxCyber Insurance - RalphGilot - Embry-Riddle Aeronautical University.pptx
Cyber Insurance - RalphGilot - Embry-Riddle Aeronautical University.pptx
 
CORS (Kitworks Team Study 양다윗 발표자료 240510)
CORS (Kitworks Team Study 양다윗 발표자료 240510)CORS (Kitworks Team Study 양다윗 발표자료 240510)
CORS (Kitworks Team Study 양다윗 발표자료 240510)
 
Continuing Bonds Through AI: A Hermeneutic Reflection on Thanabots
Continuing Bonds Through AI: A Hermeneutic Reflection on ThanabotsContinuing Bonds Through AI: A Hermeneutic Reflection on Thanabots
Continuing Bonds Through AI: A Hermeneutic Reflection on Thanabots
 

Accepting Online Payment for Your Library and ‘Stripe’ as an Example

  • 1. ACCEPTING ONLINE PAYMENT FOR YOUR LIBRARY & ‘STRIPE’ AS AN EXAMPLE Code4Lib DC Unconference, Aug. 11-12, 2014. Bohyun Kim Associate Director for Library Applications and Knowledge Systems University of Maryland, Baltimore Health Sciences and Human Services Library Twitter: @bohyunkim Website: http://bohyunkim.net
  • 2. Elements of Online Payment  ACH (Automated Clearing House) payments: Electronic credit and debit transfers. Most payment solutions use ACH to send money (minus fees) to their customers.  Merchant Account: A bank account that allows a customer to receive payments through credit or debit cards. Merchant providers are required to obey regulations established by card associations. Many processors act as both the merchant account as well as the payment gateway.  Payment Gateway: The middleman between the merchant and their sponsoring bank. It allows merchants to securely pass credit card information between the customer and the merchant and also between merchant and the payment processor.  Payment Processor: A company that a merchant uses to handle credit card transactions. Payment processors implement anti-fraud measures to ensure that both the front-facing customer and the merchant are protected.  PCI (the Payment Card Industry) Compliance: A merchant or payment gateway must set up their payment environment in a way that meets the Payment Card Industry Data Security Standard (PCI DSS).  Source: http://sixrevisions.com/tools/online-payment-systems/
  • 3. How Online Payment Works Different payment gateways, merchant accounts, and bank accounts are setup to work together (or not). Your bank may also be able to act as the merchant account. Source: http://www.larryullman.com/ 2012/10/10/introduction-to- stripe/
  • 4. Online Payment Systems  Authorize.net  PayPal  Google Checkout  Amazon Payments  Stripe  WePay  Dwolla  Braintree  Samurai Source: http://sixrevisions.com/tools/online-payment- systems/
  • 5. Stripe Stripe acts as both the payment gateway and the merchant account. Your website communicates the customer and order information to Stripe, Stripe clears the payment information with the associated credit card company, and Stripe puts the money in your bank account. Source: http://www.larryullman.c om/2012/10/10/introducti
  • 6. API Keys for Testing
  • 7. Resources  Card Numbers for Testing https://stripe.com/docs/testing#cards  Code Examples https://stripe.com/docs/examples  Docs https://stripe.com/docs
  • 8. Starting Point  Borrowed example from https://github.com/myg0v/Simple-Bootstrap- Stripe-Payment-Form
  • 9.
  • 10.
  • 11. When the Payment Succeeds,
  • 12. Modify and Enhance  Add Patron & Payment Details.  Allow custom amount for payment.  Change the currency to USD.  Configure the validation for new fields. (Bootstrapvalidator jQuery Plugin)  Hide the payment form once the charge goes through.  Other examples: https://stripe.com/docs/examples
  • 13.
  • 14.
  • 15. Process  You create a form on your website that accepts the payment details.  You include a Stripe JavaScript library on the page.  You write a JavaScript function that watches for the form submission (i.e., you create an event handler for the form’s submission).  When the form is submitted, the user’s payment details are securely sent to Stripe via Ajax.  Stripe will confirm that the payment information is valid and return a token that uniquely identifies that payment information.  The JavaScript function that handles the Ajax response stores the token in a hidden form element and submits the form.  The server-side script (aka, the PHP code) that handles the form’s submission uses the token to actually process the payment.  So the customer never leaves your site but the payment information never hits your server: the best of both worlds. (This is the process when all works well; payment verification errors introduce new processes.) Source: http://www.larryullman.com/2012/11/28/creating-a-form-for-handling- payments-with-stripe/
  • 17.
  • 18. PHP
  • 19.
  • 23. Logs
  • 27. Charge Response - Declined
  • 29. More to be Done  Send the confirmation e-mail upon the payment success.  … More.
  • 30. Questions? Photo credit: Flickr Nina`H https://www.flickr.com/photos/ninahiironniemi/209281997