Giter VIP home page Giter VIP logo

android-checkout-sdk's Introduction

PayPal Checkout Samples for Android

Maven Central Sonatype Nexus (Snapshots)

This repository contains various sample applications for the PayPal Checkout SDK for Android. If you have questions, comments, or ideas related to the Android Checkout SDK or the sample apps please create a new issue if one related to your question does not already exist.

Sample App Preparation

The sample project is intended to be as hands off as possible. With that in mind, there are only two values which are required to this sample app and they include:

  1. An app client ID. This is used by the CheckoutConfig and ensures your application can authorize customers to place orders.
  2. A corresponding app secret. This is required for generating payment tokens. This is not required for your own implementation of the PayPal Checkout SDK and is only used to illustrate how you could generate tokens for customer orders with a backend system.
  3. Setting a return URL.

Please reference our developer documentation overview to learn about how to create a new PayPal application as well as how to find those details. At this time, the SDK is in limited release so please be sure to follow all of the steps outlined. Once you have the credentials available you will want to add them to QuickStartConstants.kt.

// QuickStartConstants.kt
const val PAYPAL_CLIENT_ID = "YOUR-CLIENT-ID-HERE"
const val PAYPAL_SECRET = "ONLY-FOR-QUICKSTART-DO-NOT-INCLUDE-SECRET-IN-CLIENT-SIDE-APPLICATIONS"

Setting a Return URL

A return URL is required for redirecting users back to the sample app after authenticating. For more details on setting a return URL please see our developer documentation, however instead of setting the Live App Settings you want to ensure you are setting your Sandbox App Settings. The return URL you should use is com.paypal.checkoutsamples://paypalpay.

Releases

New versions of the Android Checkout SDK are published via MavenCentral. Please refer to the badge at the top of this repository for the latest version of the SDK. Please see our change log to understand what changed from one version to the next.

Adding Dependency via Gradle Groovy DSL

implementation 'com.paypal.checkout:android-sdk:<CURRENT-VERSION>'

Adding Dependency via Gradle Kotlin DSL

implementation("com.paypal.checkout:android-sdk:<CURRENT-VERSION>")

Snapshots

Snapshot builds are available through Sonatype and can be used for early testing of new features or validating a reported issue has been resolved. Snapshots should not be considered stable or production ready. Please use the latest stable release of the Android Checkout SDK for production builds.

android-checkout-sdk's People

Contributors

codyengel avatar jcnoriega avatar tdchow avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.