SlideShare a Scribd company logo
ADAPTIVE PAYMENTS SDK



                  September 2012
Objective
of this talk:
Introduction


               Tim Messerschmidt
                 •    Mobile- & Web-Developer
                 •    Twitter-Enthusiast
                 •    Open source contributor
                 •    Developer Evangelist
                       •  Responsible for D/A/CH
Slides




         bit.ly/QWTUw2
Question




      Which PayPal products are
    already integrated in Magento?
Answer


1.  Express Checkout
2.  Website Payments
  •  Standard
  •  Pro
3. Payflow Pro Gateway
PayPal Payment solutions at Magento
Content of today’s talk



PayPal Adaptive Payments
  •  Possible use cases
  
PHP Adaptive Payments SDK
  •  Sample code!
Application Registration – x.com
Different permissions



        Depending on the requests and level of
         information detail you need to request
                      permissions.
                            
        (Can be done in the developer console)
Adaptive Payments?

Simple API that allows you to do:

•  Simple payments (1:1)
•  Parallel payments (1:n)
•  Chained payments (1:1:n)
   •  Instant
   •  Delayed
Roles

                  Payment




        Sender
                 Receiver




                  API Caller
Simple payments
Parallel Payments



                    Interesting for:
                    •  Paying off a trip
                    •  A cart from different
                       merchants
Chained Payments

Interesting for:
•  Marketplaces

Facts:
•  Up to 5 receivers
•  Fees can be divided
•  Payments may be delayed (permission needed)
   •  Money can be held up to 90 days
Nicety

Payments can be preapproved
•  Actual payment may be done later
•  Small changes to Pay API-Call
   •  actionType = ‘CREATE’
   •  Returns a pay key
•  Uses an additional API-Call
   •  ExecutePayment
   •  Checks payment status
Requests & Headers

Additional HTTP Headers are needed to do API calls
Sandbox API credentials for the API Caller account
X-PAYPAL-SECURITY-USERID : Sandbox-Caller-User-Id
X-PAYPAL-SECURITY-PASSWORD : Sandbox-Caller-Password
X-PAYPAL-SECURITY-SIGNATURE : Sandbox-Caller-Security-Signature

Global Sandbox Application ID
X-PAYPAL-APPLICATION-ID : Can be retrieved from x.com

Input and output formats
X-PAYPAL-REQUEST-DATA-FORMAT : JSON, NV or XML
X-PAYPAL-RESPONSE-DATA-FORMAT : JSON, NV or XML
Adaptive Payments SDK

•  SDK is available for:
   •  C#
   •  Java
   •  PHP
•  Supports different data formats:
   •  NVP
   •  SOAP
   •  JSON
SDK-Download




    http://bit.ly/S6WC2Q (PHP)
                  or at
     x.com/developers/paypal
Installation of the SDK


1.  Copy the lib folder to your project’s source path
2.  Change paypal_sdk_clientproperties.php
    •  Can be found in lib/Config/
3.  Change web_constants.php
    •  Redirect urls
    •  See samples/web/AdaptivePayments/
Example




 Handle a parallel payment to multiple receivers
                 in 3 easy steps
1. Initial setup




                   Uses predefined
                   constants
2. Set the sender & receiver(s)
3. Finally pay
Response




The pay key can be used to obtain detailed information.
It can be used as unique identifier.
Demo




       Open Demo
Résumé


•    Nice to build marketplaces
•    Enables processing more complex payments
•    Preapproval rocks!
•    Very convenient for digital goods:
      •  Music
      •  Videos
      •  Games
PayPal troubleshooting



API documentation & guides:
  
 
 
 
 
 
 
x.com/developers/paypal

Merchant technical service:
  
 
 
 
 
 
 
paypal.com/mts
Personal contact


             @SeraAndroid / @PayPalEuroDev

             gplus.to/SeraAndroid

             github.com/seraphimserapis

             slideshare.net/PayPalEUDevs
QA




     Questions?
Thanks!

More Related Content

KEY
Payments using Stripe.com
PPTX
Tips on back end
PPTX
Evolution of the PayPal API Platform: Enabling the future of Money at WooComm...
PPT
Razorpay
PPTX
Best New Low Cost Android Tablet POS System; The Clover Station
PDF
Payment api basics
PPTX
Seedhack 2013
PPTX
WebIT PayPal Standard Product
Payments using Stripe.com
Tips on back end
Evolution of the PayPal API Platform: Enabling the future of Money at WooComm...
Razorpay
Best New Low Cost Android Tablet POS System; The Clover Station
Payment api basics
Seedhack 2013
WebIT PayPal Standard Product

Viewers also liked (6)

PPTX
MWC Keynote
PDF
The Art of Big Data
PDF
Easy Mobile Payments
PDF
Concrete indentity really getting to know your users
PPT
Tame Your Build And Deployment Process With Hudson, PHPUnit, and SSH
PPT
HIVE: Data Warehousing & Analytics on Hadoop
MWC Keynote
The Art of Big Data
Easy Mobile Payments
Concrete indentity really getting to know your users
Tame Your Build And Deployment Process With Hudson, PHPUnit, and SSH
HIVE: Data Warehousing & Analytics on Hadoop
Ad

Similar to Adaptive Payments SDK - Magento Developers Paradise (20)

PPT
Adaptive Payments: Changing How We Pay with PIN, Pre-approved and Split Payments
PPTX
Monetizing your apps with PayPal API:s
PPTX
Monetizing your Applications with PayPal X Payments Platform
PPTX
Monetizing your Applications with PayPal X Payments Platform
PPTX
Seedhack 2012 FIn Tech
PPTX
Sdk day2
PPTX
Providing Full Featured Payments (API) at Scale
PPTX
Monetize with PayPal X Payments Platform
PDF
Paypal Adaptive Payments
PDF
Redesigning PayPal APIs for Scale and Simplicity - QCon San Francisco 2013
PDF
PayPal APIs Up and Running Second Edition Matthew A. Russell
PDF
PayPal APIs Up and Running Second Edition Matthew A. Russell
PDF
PayPal APIs Up and Running Second Edition Matthew A. Russell
PDF
PayPal APIs Up and Running Second Edition Matthew A. Russell
PPTX
Barcelona Developers Conference 2011
PPTX
Adaptive payments-talk
PDF
Mobile payments with PayPal
PDF
Startup Highway Workshop
PPTX
Commerce Case Studies
PPTX
Open web payments
Adaptive Payments: Changing How We Pay with PIN, Pre-approved and Split Payments
Monetizing your apps with PayPal API:s
Monetizing your Applications with PayPal X Payments Platform
Monetizing your Applications with PayPal X Payments Platform
Seedhack 2012 FIn Tech
Sdk day2
Providing Full Featured Payments (API) at Scale
Monetize with PayPal X Payments Platform
Paypal Adaptive Payments
Redesigning PayPal APIs for Scale and Simplicity - QCon San Francisco 2013
PayPal APIs Up and Running Second Edition Matthew A. Russell
PayPal APIs Up and Running Second Edition Matthew A. Russell
PayPal APIs Up and Running Second Edition Matthew A. Russell
PayPal APIs Up and Running Second Edition Matthew A. Russell
Barcelona Developers Conference 2011
Adaptive payments-talk
Mobile payments with PayPal
Startup Highway Workshop
Commerce Case Studies
Open web payments
Ad

More from PayPal (20)

PPTX
PayPal's Private Cloud @ Scale
PDF
Kraken Front-Trends
PPTX
Kraken
PDF
Death To Passwords Droid Edition
PPTX
Future Of Payments
PDF
The web can do that better - My adventure with HTML5 Vide, WebRTC and Shared ...
PDF
Death To Passwords
PDF
KrakenJS
PPTX
Battle Hack London Intro
PPTX
Authentication for Droids
PDF
Online Identity: Getting to know your users
PPTX
Mobile payments at Droidcon Eastern Europe
PPTX
Reinvigorating Stagnant Innovation Through Your Developer Network
PDF
Open Identity - getting to know your users
PPTX
The Profitable Startup
PDF
Droidcon Paris: The new Android SDK
PPTX
Berlin Battle hack presentation
PDF
From Good To Great
PDF
Hack & Tell
PDF
Payments for the REST of us
PayPal's Private Cloud @ Scale
Kraken Front-Trends
Kraken
Death To Passwords Droid Edition
Future Of Payments
The web can do that better - My adventure with HTML5 Vide, WebRTC and Shared ...
Death To Passwords
KrakenJS
Battle Hack London Intro
Authentication for Droids
Online Identity: Getting to know your users
Mobile payments at Droidcon Eastern Europe
Reinvigorating Stagnant Innovation Through Your Developer Network
Open Identity - getting to know your users
The Profitable Startup
Droidcon Paris: The new Android SDK
Berlin Battle hack presentation
From Good To Great
Hack & Tell
Payments for the REST of us

Recently uploaded (20)

PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PPTX
Machine Learning_overview_presentation.pptx
PDF
A comparative analysis of optical character recognition models for extracting...
PPTX
Cloud computing and distributed systems.
PPT
Teaching material agriculture food technology
PDF
Electronic commerce courselecture one. Pdf
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
MIND Revenue Release Quarter 2 2025 Press Release
The Rise and Fall of 3GPP – Time for a Sabbatical?
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Reach Out and Touch Someone: Haptics and Empathic Computing
20250228 LYD VKU AI Blended-Learning.pptx
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Mobile App Security Testing_ A Comprehensive Guide.pdf
Advanced methodologies resolving dimensionality complications for autism neur...
Unlocking AI with Model Context Protocol (MCP)
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Review of recent advances in non-invasive hemoglobin estimation
Dropbox Q2 2025 Financial Results & Investor Presentation
Machine Learning_overview_presentation.pptx
A comparative analysis of optical character recognition models for extracting...
Cloud computing and distributed systems.
Teaching material agriculture food technology
Electronic commerce courselecture one. Pdf
Programs and apps: productivity, graphics, security and other tools
MIND Revenue Release Quarter 2 2025 Press Release

Adaptive Payments SDK - Magento Developers Paradise

  • 1. ADAPTIVE PAYMENTS SDK September 2012
  • 3. Introduction Tim Messerschmidt •  Mobile- & Web-Developer •  Twitter-Enthusiast •  Open source contributor •  Developer Evangelist •  Responsible for D/A/CH
  • 4. Slides bit.ly/QWTUw2
  • 5. Question Which PayPal products are already integrated in Magento?
  • 6. Answer 1.  Express Checkout 2.  Website Payments •  Standard •  Pro 3. Payflow Pro Gateway
  • 8. Content of today’s talk PayPal Adaptive Payments •  Possible use cases PHP Adaptive Payments SDK •  Sample code!
  • 10. Different permissions Depending on the requests and level of information detail you need to request permissions. (Can be done in the developer console)
  • 11. Adaptive Payments? Simple API that allows you to do: •  Simple payments (1:1) •  Parallel payments (1:n) •  Chained payments (1:1:n) •  Instant •  Delayed
  • 12. Roles Payment Sender Receiver API Caller
  • 14. Parallel Payments Interesting for: •  Paying off a trip •  A cart from different merchants
  • 15. Chained Payments Interesting for: •  Marketplaces Facts: •  Up to 5 receivers •  Fees can be divided •  Payments may be delayed (permission needed) •  Money can be held up to 90 days
  • 16. Nicety Payments can be preapproved •  Actual payment may be done later •  Small changes to Pay API-Call •  actionType = ‘CREATE’ •  Returns a pay key •  Uses an additional API-Call •  ExecutePayment •  Checks payment status
  • 17. Requests & Headers Additional HTTP Headers are needed to do API calls Sandbox API credentials for the API Caller account X-PAYPAL-SECURITY-USERID : Sandbox-Caller-User-Id X-PAYPAL-SECURITY-PASSWORD : Sandbox-Caller-Password X-PAYPAL-SECURITY-SIGNATURE : Sandbox-Caller-Security-Signature Global Sandbox Application ID X-PAYPAL-APPLICATION-ID : Can be retrieved from x.com Input and output formats X-PAYPAL-REQUEST-DATA-FORMAT : JSON, NV or XML X-PAYPAL-RESPONSE-DATA-FORMAT : JSON, NV or XML
  • 18. Adaptive Payments SDK •  SDK is available for: •  C# •  Java •  PHP •  Supports different data formats: •  NVP •  SOAP •  JSON
  • 19. SDK-Download http://bit.ly/S6WC2Q (PHP) or at x.com/developers/paypal
  • 20. Installation of the SDK 1.  Copy the lib folder to your project’s source path 2.  Change paypal_sdk_clientproperties.php •  Can be found in lib/Config/ 3.  Change web_constants.php •  Redirect urls •  See samples/web/AdaptivePayments/
  • 21. Example Handle a parallel payment to multiple receivers in 3 easy steps
  • 22. 1. Initial setup Uses predefined constants
  • 23. 2. Set the sender & receiver(s)
  • 25. Response The pay key can be used to obtain detailed information. It can be used as unique identifier.
  • 26. Demo Open Demo
  • 27. Résumé •  Nice to build marketplaces •  Enables processing more complex payments •  Preapproval rocks! •  Very convenient for digital goods: •  Music •  Videos •  Games
  • 28. PayPal troubleshooting API documentation & guides: x.com/developers/paypal Merchant technical service: paypal.com/mts
  • 29. Personal contact @SeraAndroid / @PayPalEuroDev gplus.to/SeraAndroid github.com/seraphimserapis slideshare.net/PayPalEUDevs
  • 30. QA Questions?