Upload
paypal
View
1.381
Download
5
Embed Size (px)
DESCRIPTION
A talk from the Berlin Android Meet-up about "How to not annoy people with mobile payments". The talk shows the difficulties of implementing an own payment method and gives some useful suggestions how to ease that.
Citation preview
WITH MOBILE PAYMENTS HOW TO NOT ANNOY PEOPLE
July 2012
TIM MESSERSCHMIDT Developer Evangelist @SeraAndroid
1. How payments do look like 2. How to ease that..
2
Content
Slides: http://bit.ly/LMWcgI
Payment scenario
3
Sender Receiver
Transaction
4
• Get payment details from the user • Shipping address • Receiver • Payment amount (costs) • Payment method
• Do a few calculations • Shipping costs • Taxes for different countries • Currency conversion
• Provide some feedback • Error messages • Success messages
• Payment processing • Send details to Gateway • Wait for response • Handle response • Fulfillment
• Payment verification • Fraud protection • Secure connections
• Responsive design • Max 2-3 seconds • Update the inventory
Payment scenario
Don’t let the user jump off..
5
1. Usability 2. Feedback 3. Quick response
6
Don’t be shocked We’ve got solutions
Mobile Payments Library • Supports both Android and iOS • Based on our Adaptive Payments API • Supported payment types: – Simple – Parallel – Chained – Pre-approved
7
Code
8
1. Initialize the library
Code
9
2. Create a Payment
3. Let the library handle it..
Examples • MoneyBeam
– Uses NFC to request transactions – https://github.com/SeraphimSerapis/GADC-MoneyBeam
• YardSale – Uses ZXing to scan QR codes – https://github.com/zaffra/YardSale
10
Mobile Express Checkout • Magic happens in a WebView – Payment flows uses redirects to enable
payment at PayPal’s site • Uses your backend with Express Checkout – 3 API calls need to be implemented:
• SetExpressCheckout – Set details • GetExpressCheckoutDetails – Review the order • DoExpressCheckoutPayment – Pay
11
Advantage • Reuses existing implementations • Most of the logic can be shared between
different platforms • Mobile optimized – Automatic User-Agent check
• Just a few steps
12
PayPal Access • Utilize PayPal to login • Uses OAuth 2.0 & OpenID • Enables to speed up the process – No need to setup yet another account
• Easy to implement – Just a few simple callbacks
13
14
Use PayPal … we have cookies!
New technologies
15
Useful links • x.com/mobile – General overview • paypal.com/dts – Developer Tech Support • devportal.x.com – Application control • developer.paypal.com – Sandbox
16