ADAPTIVE PAYMENTS SDK                  September 2012
Objectiveof this talk:
Introduction               Tim Messerschmidt                 •    Mobile- & Web-Developer                 •    Twitter-Ent...
Slides         bit.ly/QWTUw2
Question      Which PayPal products are    already integrated in Magento?
Answer1.  Express Checkout2.  Website Payments  •  Standard  •  Pro3. Payflow Pro Gateway
PayPal Payment solutions at Magento
Content of today’s talkPayPal 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        ...
Adaptive Payments?Simple API that allows you to do:•  Simple payments (1:1)•  Parallel payments (1:n)•  Chained payments (...
Roles                  Payment        Sender                 Receiver                  API Caller
Simple payments
Parallel Payments                    Interesting for:                    •  Paying off a trip                    •  A cart...
Chained PaymentsInteresting for:•  MarketplacesFacts:•  Up to 5 receivers•  Fees can be divided•  Payments may be delayed ...
NicetyPayments can be preapproved•  Actual payment may be done later•  Small changes to Pay API-Call   •  actionType = ‘CR...
Requests & HeadersAdditional HTTP Headers are needed to do API callsSandbox API credentials for the API Caller accountX-PA...
Adaptive Payments SDK•  SDK is available for:   •  C#   •  Java   •  PHP•  Supports different data formats:   •  NVP   •  ...
SDK-Download    http://bit.ly/S6WC2Q (PHP)                  or at     x.com/developers/paypal
Installation of the SDK1.  Copy the lib folder to your project’s source path2.  Change paypal_sdk_clientproperties.php    ...
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
ResponseThe 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 conveni...
PayPal troubleshootingAPI documentation & guides:        x.com/developers/paypalMerchant technical service:        paypal....
Personal contact             @SeraAndroid / @PayPalEuroDev             gplus.to/SeraAndroid             github.com/seraphi...
QA     Questions?
Thanks!
Upcoming SlideShare
Loading in …5
×

Adaptive Payments SDK - Magento Developers Paradise

2,910 views
2,663 views

Published on

This talk was held during the Magento Developers Paradise 2012. It describes the possibilities of PayPal's Adaptive Payments and how to use them in combination with Magento.

Published in: Technology
0 Comments
4 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
2,910
On SlideShare
0
From Embeds
0
Number of Embeds
1,077
Actions
Shares
0
Downloads
14
Comments
0
Likes
4
Embeds 0
No embeds

No notes for slide

Adaptive Payments SDK - Magento Developers Paradise

  1. 1. ADAPTIVE PAYMENTS SDK September 2012
  2. 2. Objectiveof this talk:
  3. 3. Introduction Tim Messerschmidt •  Mobile- & Web-Developer •  Twitter-Enthusiast •  Open source contributor •  Developer Evangelist •  Responsible for D/A/CH
  4. 4. Slides bit.ly/QWTUw2
  5. 5. Question Which PayPal products are already integrated in Magento?
  6. 6. Answer1.  Express Checkout2.  Website Payments •  Standard •  Pro3. Payflow Pro Gateway
  7. 7. PayPal Payment solutions at Magento
  8. 8. Content of today’s talkPayPal Adaptive Payments •  Possible use cases PHP Adaptive Payments SDK •  Sample code!
  9. 9. Application Registration – x.com
  10. 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. 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. 12. Roles Payment Sender Receiver API Caller
  13. 13. Simple payments
  14. 14. Parallel Payments Interesting for: •  Paying off a trip •  A cart from different merchants
  15. 15. Chained PaymentsInteresting for:•  MarketplacesFacts:•  Up to 5 receivers•  Fees can be divided•  Payments may be delayed (permission needed) •  Money can be held up to 90 days
  16. 16. NicetyPayments 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. 17. Requests & HeadersAdditional HTTP Headers are needed to do API callsSandbox API credentials for the API Caller accountX-PAYPAL-SECURITY-USERID : Sandbox-Caller-User-IdX-PAYPAL-SECURITY-PASSWORD : Sandbox-Caller-PasswordX-PAYPAL-SECURITY-SIGNATURE : Sandbox-Caller-Security-SignatureGlobal Sandbox Application IDX-PAYPAL-APPLICATION-ID : Can be retrieved from x.comInput and output formatsX-PAYPAL-REQUEST-DATA-FORMAT : JSON, NV or XMLX-PAYPAL-RESPONSE-DATA-FORMAT : JSON, NV or XML
  18. 18. Adaptive Payments SDK•  SDK is available for: •  C# •  Java •  PHP•  Supports different data formats: •  NVP •  SOAP •  JSON
  19. 19. SDK-Download http://bit.ly/S6WC2Q (PHP) or at x.com/developers/paypal
  20. 20. Installation of the SDK1.  Copy the lib folder to your project’s source path2.  Change paypal_sdk_clientproperties.php •  Can be found in lib/Config/3.  Change web_constants.php •  Redirect urls •  See samples/web/AdaptivePayments/
  21. 21. Example Handle a parallel payment to multiple receivers in 3 easy steps
  22. 22. 1. Initial setup Uses predefined constants
  23. 23. 2. Set the sender & receiver(s)
  24. 24. 3. Finally pay
  25. 25. ResponseThe pay key can be used to obtain detailed information.It can be used as unique identifier.
  26. 26. Demo Open Demo
  27. 27. Résumé•  Nice to build marketplaces•  Enables processing more complex payments•  Preapproval rocks!•  Very convenient for digital goods: •  Music •  Videos •  Games
  28. 28. PayPal troubleshootingAPI documentation & guides: x.com/developers/paypalMerchant technical service: paypal.com/mts
  29. 29. Personal contact @SeraAndroid / @PayPalEuroDev gplus.to/SeraAndroid github.com/seraphimserapis slideshare.net/PayPalEUDevs
  30. 30. QA Questions?
  31. 31. Thanks!

×