Anda di halaman 1dari 30

monEtize your MOBILE appS with Paypal

Future of Mobile * London * 2011


Saulius Zukauskas PayPal @sauliuz

Developers Center of the Ecosystem

The SW ecosystem is the new differentiat or

Mobile Applications Worldwide 2. 2 2 Spending ($B) App stores fueling apps sales
2 .2 2 . 2 2 . 2

22 22

22 22

22 22

22 22
Source: Piper Jeffrey

Confidential and Proprietary

mCOMMERCE TRENDS
2009 Global m-Commerce ($105B)
Digital Content ($24B) Money transfer ($5B)

2012 Global m-Commerce ($473B)


Digital Content ($38B) Money transfer ($83B)

Physical Goods ($30B) Proximity Payments ($115B)

Proximity Payments ($46B)

Physical Goods ($237B)

Source: Informa

Confidential and Proprietary

mCOMMERCE IS EXPLODING ON NEW DEVICES

Portion of $600+B Ecommerce migrating to mcommerce: brands moving from product brochure to storefronts New Mobile Use cases: LBS Comparison shopping Private and time sensitive sales Mobile Coupons Personalized services

Confidential and Proprietary

SEVERAL BARRIERS STILL EXIST


CONSUMER EXPERIENCE

Consumers have less patience on mobile devices. Experience has to be better then the web Entering credit card info on a phone still a hassle Users are not willing to fill forms on a mobile device for billing and shipping information When redirected to a browser to pay within an app, consumers get confused and abandon the process
CONSUMER TRUST

Consumers not comfortable entering financial info into an unknown developer app

Confidential and Proprietary

PayPal for mobile


Integration Options
Mobile Payment Library (in-app)
Completely in-application payments Include the Library in your code Library contains all UI screens and communication with PayPal APIs Android OS, iOS, Blackberry

Mobile Express Checkout


Mobile Browser based checkout (WebKit) For mobile browser optimised sites or launch browser from app Uses Existing Express Checkout APIs with User Agent Detection Guest Checkout Android OS, iOS, Blackberry, Windows Phone 7

Confidential and Proprietary

14/04/12

PayPal for MOBILE MEC EXPERIENCE


Mobile Express Checkout - WebKit

Confidential and Proprietary

14/04/12

Mobile Payments Library


Making it easier for developers

Library designed for simple integration No need to code payment UI Flexible Payment Flows (Adaptive Payments)
Making it better for consumers

More convenient than entering credit card No need to redirect to a browser. Consumers dont need to share their financial info
A growing feature set

P2P transactions In-app purchase for physical good and services Payment settled immediately to your PP account Supports Android, iOS, Blackberry OS

Confidential and Proprietary

MPL Look And Feel

Confidential and Proprietary

MPL and ADVANCED Payment FLOWS

Confidential and Proprietary

DEDICATED WEB PORTAL

Confidential and Proprietary

Getting Started with the Library


The package includes:
Quick getting started guide The technical document The library A sample demo app that integrates the library

What else you need to start coding:


Test APPID from your x.com account (APP-80W284485P519543T) PayPal Sandbox account (developer.paypal.com)

Confidential and Proprietary

Integration overview

Confidential and Proprietary

13

Mobile Express Checkout (MEC)


1. SetExpressCheckout: Sets up the transaction, Transaction identified by Token returned by the SetExpressCheckout API operation.

2. Redirect to PayPal Mobile URL https://www.paypal.com/cgibin/webscr?cmd=_expresscheckout&token=valueFromSetExpressCheckoutResponse 3. If the buyer approves the payment, PayPal redirects to the successURL with Token + The buyers unique identifier (Payer ID) 4. GetExpressCheckout: Obtains information about the buyer from PayPal, including shipping information. DoExpressCheckout: Handles the payment and completes the transaction.

5.

Confidential and Proprietary

MPL INTEGRATION
Four simple steps: 1. Initialize the library 2. Generate the Pay with PayPal button 3. Add the payment details 4. Wait for callback

Confidential and Proprietary

1. Initializing the Library


Initialize the library with this method
ppObj=PayPal.initWithAppID(this.getBaseContext(), APP80W284485P519543T, PayPal.ENV_SANDBOX);

Three possible environments


ENV_LIVE, ENV_SANDBOX, ENV_NONE

Update the Manifest


<activity android:name=com.paypal.android.MEP.PayPalActivity> <uses-permission android:name="android.permission.INTERNET"/> <uses-permission android:name="android.permission.READ_PHONE_STATE"/>

Confidential and Proprietary

2. Generate the PayPal button

Create a PayPal button with this method


CheckoutButton payPalButton = pp.getCheckoutButton(this, PayPal.BUTTON_278x43, CheckoutButton.TEXT_PAY); payPalButton.setOnClickListener(this); mainLayout.addView(payPalButton);

Two button types can be used, This will determine the text on the checkout pages
TEXT_PAY TEXT_DONATE

Confidential and Proprietary

3. Add the Payment Details


Use the onClick method to create the new payment
public void onClick (View arg0) { PayPalPayment newPayment = new PayPalPayment(); newPayment.setSubtotal(new BigDecimal(6.00); newPayment.setCurrency(USD); newPayment.setRecipient(test@testingMPL.com); newpayment.setPaymentType(PayPal.PAYMENT_TYPE_GOODS); newpayment.setMerchantName(The Gift Store) Intent checkoutIntent = PayPal.getInstance().checkout(payment, this); startActivityForResult(checkoutIntent,1); }

Optional methods can be used for more functionality

enableDynamicAmountCalculationEnabled(boolean) setShippingEnabled(boolean) setLanguage(String)

Confidential and Proprietary

4. Handle a Callback

Three types of call back responses to handle in the optional ResultDelegate class
public void paymentSucceeded() public void paymentCancelled() public void paymentFailed()

Confidential and Proprietary

Supported Languages
Argentina: es_AR Brazil: pt_BR Australia: en_AU Belgium: en_BE, nl_BE, fr_BE Canada: en_CA, fr_CA France: fr_FR, en_FR Germany: de_DE, en_DE Hong Kong: zh_HK, en_HK India: en_IN Italy: it_IT Japan: ja_JP, en_JP Mexico: es_MX, en_MX Netherlands: nl_NL, en_NL Poland: pl_PL, en_PL Singapore: en_SG Spain: es_ES, en_ES Switzerland: de_CH, en_CH, fr_CH Taiwan: zh_TW, en_TW United States: en_US (default)

Confidential and Proprietary

Reports and Notifications

Confidential and Proprietary

21

Senders History and Recipients History

Confidential and Proprietary

22

Submitting your app for approval

Confidential and Proprietary

23

App Submission Requirements

Confidential and Proprietary

App Submission Form

Confidential and Proprietary

App Submission Form

Confidential and Proprietary

App Submission Form

Confidential and Proprietary

My Apps Status

Confidential and Proprietary

HELPFUL HINTS
1. Visit Apps 101 on www.x.com/developers/paypal 2. Understand the PayPal X Developer Agreement to know what is and is not allowed before you begin coding: https:// www.x.com/developers/paypal/paypal-developer-agreement 3. Be as descriptive as possible when relating; What your application does Your application payment flow Who all the players (senders and receivers) are in the payment flow 1. Contact Developer Technical Services (DTS) if you have any technical MPL questions via www.paypal.com/dts

Confidential and Proprietary

QUESTIONS?

Confidential and Proprietary

Anda mungkin juga menyukai