Skip to content

Commit

Permalink
Merge pull request #327 from paypal/1.3.0
Browse files Browse the repository at this point in the history
Update SDK version to 1.3.0
  • Loading branch information
chpypl committed Apr 3, 2024
2 parents a1afa75 + e1acd96 commit 422136b
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 4 deletions.
28 changes: 28 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,33 @@
# Change Log

## Version 1.3.0

* Add `hasUserLocationConsent` parameter to `PayPalCheckout.start()`, `PayPalCheckout.startCheckout()`, `PaymentButtonContainer.setup()`, and `PaymentButton.setup()`

Note: Merchant applications are responsible for collecting user data consent. If your app has obtained consent from the user to collect location data in compliance with
[Google Play Developer Program policies](https://support.google.com/googleplay/android-developer/answer/10144311#personal-sensitive),
set `hasUserLocationConsent` to `true`. This flag enables PayPal to collect necessary information required for Fraud Detection and Risk Management.

Merchant applications may be required to display a disclosure before collecting user location data in accordance with Google’s
[Best practices for prominent disclosures and consent](https://support.google.com/googleplay/android-developer/answer/11150561?hl=en&ref_topic=12797379&sjid=10421482417907285178-NC).
By setting `userHasLocationConsent` to true, your app is enabled to share device location data with a third party (PayPal) for Fraud Detection and Risk Management.

[Examples of prominent in-app disclosures](https://support.google.com/googleplay/android-developer/answer/9799150?hl=en#Prominent%20in-app%20disclosure)

Note: If you are seeing the Play Store flag your APK after updating to this version, please try following these steps:
1. Go to your Play Console
2. Select the app
3. Go to App bundle explorer
4. Select the violating APK/app bundle's App version at the top right dropdown menu, and make a note of which releases they are under
5. Go to the track with the violation. It will be one of these 4 pages: Internal / Closed / Open testing or Production
6. Near the top right of the page, click Create new release. (You may need to click Manage track first)
If the release with the violating APK is in a draft state, discard the release
7. Add the new version of app bundles or APKs
Make sure the non-compliant version of app bundles or APKs is under the Not included section of this release
8. To save any changes you make to your release, select Save
9. When you've finished preparing your release, select Review release, and then proceed to roll out the release to 100%.
10. If the violating APK is released to multiple tracks, repeat steps 5-9 in each track

## Version 1.2.1

* Upgraded the data-collector SDK to version 3.21.0 which made updates to Device Data collection related to Google Play's User Data Policy
Expand Down
2 changes: 1 addition & 1 deletion quickstart-kotlin/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ android {

dependencies {
// PayPal Checkout SDK Libraries
implementation 'com.paypal.checkout:android-sdk:1.2.1'
implementation 'com.paypal.checkout:android-sdk:1.3.0'

// Other Dependencies Related To Sample App
implementation fileTree(dir: "libs", include: ["*.jar"])
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,10 @@ class OrdersQuickStartActivity : AppCompatActivity() {
actions.create(order) { id ->
Log.d(tag, "Order ID: $id")
}
}
},
// This sample app has not obtained consent from the buyer to collect location data.
// This flag enables PayPal to collect necessary information required for Fraud Detection and Risk Management
hasUserLocationConsent = false
)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,10 @@ class PaymentButtonQuickStartActivity : AppCompatActivity() {
onError = OnError { errorInfo ->
Log.v(tag, "OnError")
Log.d(tag, "Error details: $errorInfo")
}
},
// This sample app has not obtained consent from the buyer to collect location data.
// This flag enables PayPal to collect necessary information required for Fraud Detection and Risk Management
hasUserLocationConsent = false
)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,10 @@ class TokenQuickStartActivity : AppCompatActivity() {
val createdOrder = createOrder()
createdOrder?.let { createOrderActions.set(createdOrder.id) }
}
}
},
// This sample app has not obtained consent from the buyer to collect location data.
// This flag enables PayPal to collect necessary information required for Fraud Detection and Risk Management
hasUserLocationConsent = false
)
}

Expand Down

0 comments on commit 422136b

Please sign in to comment.