Skip to content

Commit

Permalink
[Docs] Add Cardinal SDK Code Snippet for Top-level build.gradle File (#…
Browse files Browse the repository at this point in the history
…198)

* Add Cardinal SDK code snippet for build.gradle file.

* Update docs/PayPalNativePayments/README.md

Co-authored-by: Devon Apple (PayPal) <[email protected]>

---------

Co-authored-by: Devon Apple (PayPal) <[email protected]>
  • Loading branch information
sshropshire and devapplepaypal authored Oct 12, 2023
1 parent 6dc11b3 commit 00809be
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion docs/PayPalNativePayments/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,30 @@ 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 {
implementation "com.paypal.android:paypal-native-payments:<CURRENT-VERSION>"
}
```

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:
Expand Down

0 comments on commit 00809be

Please sign in to comment.