Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V7 app switch url #1474

Open
wants to merge 2 commits into
base: v7
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
* Update `BTThreeDSecureRequest.amount` to be a `String`
* BraintreeCore
* Remove `fetchPaymentMethodNonces` methods and parser
* BraintreePayPal
* Update PayPal app URL query scheme from `paypal-app-switch-checkout` to `paypal`

## unreleased
* BraintreePayPal
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
<array>
<string>com.braintreepayments.Demo.payments</string>
<string>com.venmo.touch.v2</string>
<string>paypal-app-switch-checkout</string>
<string>paypal</string>
</array>
<key>LSRequiresIPhoneOS</key>
<true/>
Expand Down
2 changes: 1 addition & 1 deletion Sources/BraintreeCore/BTCoreConstants.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import Foundation
public static let venmoURLScheme: String = "com.venmo.touch.v2"

/// URL Scheme for PayPal App
public static let payPalURLScheme: String = "paypal-app-switch-checkout"
public static let payPalURLScheme: String = "paypal"

static let apiVersion: String = "2016-10-07"

Expand Down
14 changes: 14 additions & 0 deletions V7_MIGRATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ _Documentation for v7 will be published to https://developer.paypal.com/braintre
1. [SEPA Direct Debit](#sepa-direct-debit)
1. [Local Payments](#local-payments)
1. [3D Secure](#3d-secure)]
1. [PayPal](#paypal)
1. [PayPal Native Checkout](#paypal-native-checkout)


Expand Down Expand Up @@ -40,6 +41,19 @@ v7 updates `BTLocalPaymentRequest` to require setting all properties through the
## 3D Secure
All properties within `BTThreeDSecureRequest` can only be accessed on the initializer vs via the dot syntax.

## PayPal

### App Switch
For the App Switch flow, you must update your `info.plist` with a simplified URL query scheme name, `paypal`.

```diff
<key>LSApplicationQueriesSchemes</key>
<array>
- <string>paypal-app-switch-checkout</string>
+ <string>paypal</string>
</array>
```

## PayPal Native Checkout
The PayPal Native Checkout integration is no longer supported. Please remove it from your app and
use the [PayPal (web)](https://developer.paypal.com/braintree/docs/guides/paypal/overview/ios/v6) integration.