{"id":19888886,"url":"https://github.com/paypal/android-checkout-sdk","last_synced_at":"2025-06-16T05:05:45.912Z","repository":{"id":41798120,"uuid":"262426354","full_name":"paypal/android-checkout-sdk","owner":"paypal","description":null,"archived":false,"fork":false,"pushed_at":"2024-04-17T09:37:08.000Z","size":281,"stargazers_count":78,"open_issues_count":69,"forks_count":36,"subscribers_count":15,"default_branch":"main","last_synced_at":"2025-05-02T17:59:06.183Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/paypal.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2020-05-08T20:52:13.000Z","updated_at":"2025-04-24T23:31:47.000Z","dependencies_parsed_at":"2023-11-13T22:31:43.733Z","dependency_job_id":"d4e31a76-7798-4856-9804-24581ffa4e04","html_url":"https://github.com/paypal/android-checkout-sdk","commit_stats":null,"previous_names":[],"tags_count":39,"template":false,"template_full_name":null,"purl":"pkg:github/paypal/android-checkout-sdk","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paypal%2Fandroid-checkout-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paypal%2Fandroid-checkout-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paypal%2Fandroid-checkout-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paypal%2Fandroid-checkout-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/paypal","download_url":"https://codeload.github.com/paypal/android-checkout-sdk/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paypal%2Fandroid-checkout-sdk/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260101918,"owners_count":22959041,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-12T18:08:33.779Z","updated_at":"2025-06-16T05:05:45.872Z","avatar_url":"https://github.com/paypal.png","language":"Kotlin","funding_links":["https://developer.paypal.com/docs/business/native-checkout/android/"],"categories":[],"sub_categories":[],"readme":"# PayPal Checkout Samples for Android\n\n![Maven Central](https://img.shields.io/maven-central/v/com.paypal.checkout/android-sdk?style=for-the-badge) ![Sonatype Nexus (Snapshots)](https://img.shields.io/nexus/s/com.paypal.checkout/android-sdk?server=https%3A%2F%2Foss.sonatype.org\u0026style=for-the-badge)\n\n### Notice:\nThis integration path is only active for existing developers who have previously integrated the PayPal Android Checkout SDK. For any new developers seeking the Native Checkout experience, this integration path is considered inactive. Please integrate via [BrainTree Android SDK](https://github.com/braintree/braintree_android) or [PayPal Android SDK](https://github.com/paypal/Android-SDK/).\n\n---\n\nThis 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](https://github.com/paypal/paypalcheckout-samples-android/issues) if one related to your question does not already exist.\n\n### Android Version Requirement\nThe SDK will work with apps that have a minimum version of 21. However, to launch the PayPal flow,\na check for Android 23 or higher must be done.\n\n```kotlin\n    if (Build.VERSION.SDK_INT \u003e= Build.VERSION_CODES.M) {\n        PayPalCheckout.setConfig(...)\n    } else {\n        Toast.makeText(this, \"Checkout SDK only available for API 23+\", Toast.LENGTH_SHORT).show()\n    }\n\n    ...\n\n    if (Build.VERSION.SDK_INT \u003e= Build.VERSION_CODES.M) {\n        PayPalCheckout.startCheckout(...)\n    } else {\n        Toast.makeText(this, \"Checkout SDK only available for API 23+\", Toast.LENGTH_SHORT).show()\n    }\n```\n\n## Sample App Preparation\n\nThe sample project is intended to be as hands off as possible. With that in mind, there are only two\nvalues which are required to this sample app and they include:\n\n1. An app client ID. This is used by the CheckoutConfig and ensures your application can authorize\ncustomers to place orders.\n2. A corresponding app secret. This is required for generating payment tokens. This is not required\nfor your own implementation of the PayPal Checkout SDK and is only used to illustrate how you could\ngenerate tokens for customer orders with a backend system.\n3. Setting a return URL.\n\nPlease reference our [developer documentation](https://developer.paypal.com/docs/business/native-checkout/android/)\noverview 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.**\nOnce you have the credentials available you will want to add them to `QuickStartConstants.kt`.\n\n```kotlin\n// QuickStartConstants.kt\nconst val PAYPAL_CLIENT_ID = \"YOUR-CLIENT-ID-HERE\"\nconst val PAYPAL_SECRET = \"ONLY-FOR-QUICKSTART-DO-NOT-INCLUDE-SECRET-IN-CLIENT-SIDE-APPLICATIONS\"\n```\n\n### Setting a Return URL\n\nA 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](https://developer.paypal.com/docs/business/native-checkout/android/#know-before-you-code),\nhowever 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`.\n\n## Releases\n\nNew 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](CHANGELOG.md) to understand what changed from one version to the next.\n\n### Adding Dependency via Gradle Groovy DSL\n```groovy\nimplementation 'com.paypal.checkout:android-sdk:\u003cCURRENT-VERSION\u003e'\n```\n\n### Adding Dependency via Gradle Kotlin DSL\n```kotlin\nimplementation(\"com.paypal.checkout:android-sdk:\u003cCURRENT-VERSION\u003e\")\n```\n\n### Snapshots\n\nSnapshot builds are available [through Sonatype](https://oss.sonatype.org/content/repositories/snapshots/) 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.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpaypal%2Fandroid-checkout-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpaypal%2Fandroid-checkout-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpaypal%2Fandroid-checkout-sdk/lists"}