Your SlideShare is downloading. ×
In-app Payments with PayPal's Mobile Payment Library (MPL)
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

In-app Payments with PayPal's Mobile Payment Library (MPL)

10,392
views

Published on

With increasing smart phone adoption, m-commerce is set to explode in the next few years. However, dealing with payments is still a hassle for both consumers and developers. The PayPal Mobile Payments …

With increasing smart phone adoption, m-commerce is set to explode in the next few years. However, dealing with payments is still a hassle for both consumers and developers. The PayPal Mobile Payments Library (MPL) aims to remove friction from payments and truly unleash m-commerce on the iPhone/iPad and Android platform. In this session you will learn how to integrate the PayPal Library and start accepting in-app payments for goods and services in your apps in a matter of minutes.

Published in: Technology

1 Comment
7 Likes
Statistics
Notes
No Downloads
Views
Total Views
10,392
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
0
Comments
1
Likes
7
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. SiliconValleycodecamp_10
    In-app Payments with PayPal's Mobile Payment Library (MPL)
    Pragati RaiPragati.Rai@paypal.com
  • 2. Developers Center of the Ecosystem
    Mobile Applications Worldwide Spending ($B)
    The SW ecosystem is the new differentiator
    App stores fueling apps sales
    Source: Piper Jeffrey
  • 3. Goods and Services Exploding on New Devices
    • Portion of $600+B Ecommerce migrating to mcommerce: brands moving from product brochure to storefronts
    • 4. New Mobile Use cases:
    • 5. Coupons
    • 6. Comparison shopping
    • 7. Private and time sensitive sales
    • 8. Ticketing
    • 9. eBay app shows the potential: $600m in 09 and $1.5B in 2010
    • 10. Amazon has quoted $1B in mobile volume in last 12M
  • Mobile Payments Library
    Making it easier for developers
    Making it better for consumers
    A growing feature set
    • Library designed to be integrated in less then 5 minutes
    • 11. No need to code payment UI
    • 12. More convenient than entering credit card
    • 13. No need to redirect to a browser and risk losing your customer.
    • 14. Consumers don’t need to share their financial info
    • 15. Physical goods and services
    • 16. In-app purchase
    • 17. Payment settled immediately to your PP account
    • 18. Supports iOS3.0 and above (and Android 1.5 and above)
  • Getting Started with the Library
    First download the library at https://www.x.com/mpl
    The package includes:
    • Quick getting started guide
    • 19. The technical document
    • 20. The library
    • 21. A sample pizza 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)
  • 22. Demo on Android
  • 23. Overview of Integration
    Four simple steps:
    Initialize the library
    Generate the “Pay with PayPal” button
    Add the payment details
    Wait for callback
  • 24. 1. Initializing the Library
    Initialize the library with this method
    ppObj=PayPal.initWithAppID(this.getBaseContext(), “APP-80W284485P519543T“, 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"/>
  • 25. 2. Generate the PayPal Button
    Create a PayPal button with this method
    CheckoutButtonpayPalButton = (CheckoutButton) ppObj.getPaymentButton(PayPal.BUTTON_278x43, this, PayPal.PAYMENT_TYPE_HARD_GOODS);
    payPalButton.setOnClickListener(this);
    mainLayout.addView(payPalButton);
    Various payment types can be used
    HARD_GOODS,
    SERVICE,
    PERSONAL,
  • 26. 3. Add the Payment Details
    Use the onClick method to create the new payment
    public void onClick (View arg0) {
    PayPalPaymentnewPayment = new PayPalPayment();
    newPayment.setAmount (10.f);
    newPayment.setCurrency(“USD”);
    newPayment.setRecipient(“pragati.rai@paypal.com”);
    newPayment.setItemDescription(“bike chain”);
    Intent checkoutIntent = new Intent (this, PayPalActivity.class);
    checkoutIntent.putExtra(PayPalActivity.EXTRA_PAYMENT_INFO, newPayment);
    this.startActivityForResult(checkoutIntent,1);
    Optional methods can be used for more functionality
    enableDynamicAmountCalculation()
    setShippingEnabled()
    setLang()
  • 27. 4. Handle a Callback
    Three types of call back responses to handle
    public void paymentSucceeded(String transactionID)
    public void paymentCancelled()
    public void paymentFailed(String errorID, string errorMessage)
  • 28. 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)
  • 29. Standard PayPal Infrastructure
    FEES
    - Standard accounts: 2.9% +$0.30
    - Micropayments: 5% + $0.05
    REPORTS
    Settlement Report
    Contains all balance-affecting daily transactions
    Transaction Detail Report
    Contains status of all transactions in a 24 hour period
    Superset of data contained in Settlement Report including buyer data
    Dispute Resolution Report
    Contains all new dispute cases or cases that have changed in the last 24 hours
    Enables reconciliation of dispute cases against money moving transactions
  • 30. Submissions, Feedback, Forums, Docs…
  • 31. SiliconValleycodecamp_10
    Q&A
    Pragati Rai Pragati.Rai@paypal.com
  • 32. SiliconValleycodecamp_10
    Thank you!
    To learn more, visit www.x.com