Your SlideShare is downloading. ×
Adaptive Payments SDK - Magento Developers Paradise
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×

Introducing the official SlideShare app

Stunning, full-screen experience for iPhone and Android

Text the download link to your phone

Standard text messaging rates apply

Adaptive Payments SDK - Magento Developers Paradise

2,360
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.

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
2 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
2,360
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
8
Comments
0
Likes
2
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. ADAPTIVE PAYMENTS SDK September 2012
  • 2. Objectiveof this talk:
  • 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. Answer1.  Express Checkout2.  Website Payments •  Standard •  Pro3. Payflow Pro Gateway
  • 7. PayPal Payment solutions at Magento
  • 8. Content of today’s talkPayPal Adaptive Payments •  Possible use cases PHP Adaptive Payments SDK •  Sample code!
  • 9. Application Registration – x.com
  • 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
  • 13. Simple payments
  • 14. Parallel Payments Interesting for: •  Paying off a trip •  A cart from different merchants
  • 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. 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. 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. 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 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. 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)
  • 24. 3. Finally pay
  • 25. ResponseThe 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 troubleshootingAPI documentation & guides: x.com/developers/paypalMerchant technical service: paypal.com/mts
  • 29. Personal contact @SeraAndroid / @PayPalEuroDev gplus.to/SeraAndroid github.com/seraphimserapis slideshare.net/PayPalEUDevs
  • 30. QA Questions?
  • 31. Thanks!