From 00809bee58e702d591d66117a17fe28fe95f3319 Mon Sep 17 00:00:00 2001 From: sshropshire <58225613+sshropshire@users.noreply.github.com> Date: Thu, 12 Oct 2023 13:57:48 -0500 Subject: [PATCH] [Docs] Add Cardinal SDK Code Snippet for Top-level build.gradle File (#198) * Add Cardinal SDK code snippet for build.gradle file. * Update docs/PayPalNativePayments/README.md Co-authored-by: Devon Apple (PayPal) <105875840+devapplepaypal@users.noreply.github.com> --------- Co-authored-by: Devon Apple (PayPal) <105875840+devapplepaypal@users.noreply.github.com> --- docs/PayPalNativePayments/README.md | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/docs/PayPalNativePayments/README.md b/docs/PayPalNativePayments/README.md index 714373282..cc0100ee3 100644 --- a/docs/PayPalNativePayments/README.md +++ b/docs/PayPalNativePayments/README.md @@ -21,7 +21,7 @@ The order created on your server will be used to authorize or capture funds. For ### 1. Add the PayPal Native Payments module to your app -In your `build.gradle` file, add the following dependency: +In your app's `build.gradle` file, add the following dependency: ```groovy dependencies { @@ -29,6 +29,22 @@ dependencies { } ``` +Also, add the following to your project's top-level `build.gradle` file: + +```groovy +allprojects { + repositories { + maven { + url "https://cardinalcommerceprod.jfrog.io/artifactory/android" + credentials { + username "paypal_sgerritz" + password "AKCp8jQ8tAahqpT5JjZ4FRP2mW7GMoFZ674kGqHmupTesKeAY2G8NcmPKLuTxTGkKjDLRzDUQ" + } + } + } +} +``` + ### 2. Sample App Preparation In order to integrate PayPal native payments, you will need: