diff --git a/Demo/Application/Base/Settings/Settings.bundle/Root.plist b/Demo/Application/Base/Settings/Settings.bundle/Root.plist
index 6d15b54aa5..5aefbc50f6 100644
--- a/Demo/Application/Base/Settings/Settings.bundle/Root.plist
+++ b/Demo/Application/Base/Settings/Settings.bundle/Root.plist
@@ -18,9 +18,7 @@
Titles
PayPal - Native Checkout
- PayPal - Vault
- PayPal - Checkout
- PayPal - Pay Later
+ PayPal - Web Checkout
Credit Card Tokenization
Venmo - Custom Button
Apple Pay - PassKit
@@ -33,9 +31,7 @@
Values
BraintreeDemoPayPalNativeCheckoutViewController
- BraintreeDemoPayPalVaultViewController
- BraintreeDemoPayPalCheckoutViewController
- BraintreeDemoPayPalPayLaterViewController
+ BraintreeDemoPayPalWebCheckoutViewController
BraintreeDemoCardTokenizationViewController
BraintreeDemoVenmoViewController
BraintreeDemoApplePayPassKitViewController
diff --git a/Demo/Application/Features/PayPal - Checkout/BraintreeDemoPayPalCheckoutViewController.swift b/Demo/Application/Features/PayPal - Checkout/BraintreeDemoPayPalCheckoutViewController.swift
deleted file mode 100644
index 45712cf67f..0000000000
--- a/Demo/Application/Features/PayPal - Checkout/BraintreeDemoPayPalCheckoutViewController.swift
+++ /dev/null
@@ -1,38 +0,0 @@
-import UIKit
-import BraintreePayPal
-
-class BraintreeDemoPayPalCheckoutViewController: BraintreeDemoPaymentButtonBaseViewController {
-
- override func createPaymentButton() -> UIView! {
- lazy var payPalCheckoutButton: UIButton = {
- let payPalCheckoutButton = UIButton(type: .system)
- payPalCheckoutButton.setTitle("PayPal Checkout", for: .normal)
- payPalCheckoutButton.setTitleColor(.blue, for: .normal)
- payPalCheckoutButton.setTitleColor(.lightGray, for: .highlighted)
- payPalCheckoutButton.setTitleColor(.lightGray, for: .disabled)
- payPalCheckoutButton.addTarget(self, action: #selector(tappedPayPalCheckout), for: .touchUpInside)
- return payPalCheckoutButton
- }()
-
- return payPalCheckoutButton
- }
-
- @objc func tappedPayPalCheckout(_ sender: UIButton) {
- progressBlock("Tapped PayPal - Checkout using BTPayPalClient")
- sender.setTitle("Processing...", for: .disabled)
- sender.isEnabled = false
-
- let client = BTPayPalClient(apiClient: apiClient)
- let request = BTPayPalCheckoutRequest(amount: "4.30")
-
- client.tokenize(request) { nonce, error in
- sender.isEnabled = true
-
- guard let nonce = nonce else {
- self.progressBlock(error?.localizedDescription)
- return
- }
- self.completionBlock(nonce)
- }
- }
-}
diff --git a/Demo/Application/Features/PayPal - Pay Later/BraintreeDemoPayPalPayLaterViewController.swift b/Demo/Application/Features/PayPal - Pay Later/BraintreeDemoPayPalPayLaterViewController.swift
deleted file mode 100644
index 797a158e9b..0000000000
--- a/Demo/Application/Features/PayPal - Pay Later/BraintreeDemoPayPalPayLaterViewController.swift
+++ /dev/null
@@ -1,39 +0,0 @@
-import UIKit
-import BraintreePayPal
-
-class BraintreeDemoPayPalPayLaterViewController: BraintreeDemoPaymentButtonBaseViewController {
-
- override func createPaymentButton() -> UIView! {
- lazy var payPalPayLaterButton: UIButton = {
- let payPalPayLaterButton = UIButton(type: .system)
- payPalPayLaterButton.setTitle("PayPal with Pay Later Offered", for: .normal)
- payPalPayLaterButton.setTitleColor(.blue, for: .normal)
- payPalPayLaterButton.setTitleColor(.lightGray, for: .highlighted)
- payPalPayLaterButton.setTitleColor(.lightGray, for: .disabled)
- payPalPayLaterButton.addTarget(self, action: #selector(tappedPayPalPayLater), for: .touchUpInside)
- return payPalPayLaterButton
- }()
-
- return payPalPayLaterButton
- }
-
- @objc func tappedPayPalPayLater(_ sender: UIButton) {
- progressBlock("Tapped PayPal - initiating with Pay Later offered")
- sender.setTitle("Processing...", for: .disabled)
- sender.isEnabled = false
-
- let client = BTPayPalClient(apiClient: apiClient)
- let request = BTPayPalCheckoutRequest(amount: "4.30")
- request.offerPayLater = true
-
- client.tokenize(request) { nonce, error in
- sender.isEnabled = true
-
- guard let nonce = nonce else {
- self.progressBlock(error?.localizedDescription)
- return
- }
- self.completionBlock(nonce)
- }
- }
-}
diff --git a/Demo/Application/Features/PayPal - Vault/BraintreeDemoPayPalVaultViewController.swift b/Demo/Application/Features/PayPal - Vault/BraintreeDemoPayPalVaultViewController.swift
deleted file mode 100644
index 0a00d144c8..0000000000
--- a/Demo/Application/Features/PayPal - Vault/BraintreeDemoPayPalVaultViewController.swift
+++ /dev/null
@@ -1,38 +0,0 @@
-import UIKit
-import BraintreePayPal
-
-class BraintreeDemoPayPalVaultViewController: BraintreeDemoPaymentButtonBaseViewController {
-
- override func createPaymentButton() -> UIView! {
- lazy var payPalVaultButton: UIButton = {
- let payPalVaultButton = UIButton(type: .system)
- payPalVaultButton.setTitle("PayPal Vault", for: .normal)
- payPalVaultButton.setTitleColor(.blue, for: .normal)
- payPalVaultButton.setTitleColor(.lightGray, for: .highlighted)
- payPalVaultButton.setTitleColor(.lightGray, for: .disabled)
- payPalVaultButton.addTarget(self, action: #selector(tappedPayPalVault), for: .touchUpInside)
- return payPalVaultButton
- }()
-
- return payPalVaultButton
- }
-
- @objc func tappedPayPalVault(_ sender: UIButton) {
- progressBlock("Tapped PayPal - Vault using BTPayPalClient")
- sender.setTitle("Processing...", for: .disabled)
- sender.isEnabled = false
-
- let client = BTPayPalClient(apiClient: apiClient)
- let request = BTPayPalVaultRequest()
-
- client.tokenize(request) { nonce, error in
- sender.isEnabled = true
-
- guard let nonce = nonce else {
- self.progressBlock(error?.localizedDescription)
- return
- }
- self.completionBlock(nonce)
- }
- }
-}
diff --git a/Demo/Application/Features/PayPal - Web Checkout/BraintreeDemoPayPalWebCheckoutViewController.swift b/Demo/Application/Features/PayPal - Web Checkout/BraintreeDemoPayPalWebCheckoutViewController.swift
new file mode 100644
index 0000000000..e7f7f19538
--- /dev/null
+++ b/Demo/Application/Features/PayPal - Web Checkout/BraintreeDemoPayPalWebCheckoutViewController.swift
@@ -0,0 +1,93 @@
+import Foundation
+import UIKit
+import BraintreePayPal
+
+class BraintreeDemoPayPalWebCheckoutViewController: BraintreeDemoPaymentButtonBaseViewController {
+
+ lazy var payPalClient = BTPayPalClient(apiClient: apiClient)
+
+ override func createPaymentButton() -> UIView! {
+ let payPalCheckoutButton = paymentButton(title: "PayPal Checkout", action: #selector(tappedPayPalCheckout))
+ let payPalVaultButton = paymentButton(title: "PayPal Vault", action: #selector(tappedPayPalVault))
+ let payPalPayLaterButton = paymentButton(title: "PayPal with Pay Later Offered", action: #selector(tappedPayPalPayLater))
+
+ let buttons = [payPalCheckoutButton, payPalVaultButton, payPalPayLaterButton]
+ let stackView = UIStackView(arrangedSubviews: buttons)
+ stackView.axis = .vertical
+ stackView.alignment = .center
+ stackView.distribution = .fillEqually
+ stackView.translatesAutoresizingMaskIntoConstraints = false
+
+ return stackView
+ }
+
+ @objc func tappedPayPalCheckout(_ sender: UIButton) {
+ progressBlock("Tapped PayPal - Checkout using BTPayPalClient")
+ sender.setTitle("Processing...", for: .disabled)
+ sender.isEnabled = false
+
+ let request = BTPayPalCheckoutRequest(amount: "4.30")
+
+ payPalClient.tokenize(request) { nonce, error in
+ sender.isEnabled = true
+
+ guard let nonce else {
+ self.progressBlock(error?.localizedDescription)
+ return
+ }
+
+ self.completionBlock(nonce)
+ }
+ }
+
+ @objc func tappedPayPalVault(_ sender: UIButton) {
+ progressBlock("Tapped PayPal - Vault using BTPayPalClient")
+ sender.setTitle("Processing...", for: .disabled)
+ sender.isEnabled = false
+
+ let request = BTPayPalVaultRequest()
+
+ payPalClient.tokenize(request) { nonce, error in
+ sender.isEnabled = true
+
+ guard let nonce else {
+ self.progressBlock(error?.localizedDescription)
+ return
+ }
+
+ self.completionBlock(nonce)
+ }
+ }
+
+ @objc func tappedPayPalPayLater(_ sender: UIButton) {
+ progressBlock("Tapped PayPal - initiating with Pay Later offered")
+ sender.setTitle("Processing...", for: .disabled)
+ sender.isEnabled = false
+
+ let request = BTPayPalCheckoutRequest(amount: "4.30")
+ request.offerPayLater = true
+
+ payPalClient.tokenize(request) { nonce, error in
+ sender.isEnabled = true
+
+ guard let nonce else {
+ self.progressBlock(error?.localizedDescription)
+ return
+ }
+
+ self.completionBlock(nonce)
+ }
+ }
+
+ // TODO: move into a shared class once the base ViewControllers are converted to Swift
+ func paymentButton(title: String, action: Selector) -> UIButton {
+ let button = UIButton(type: .system)
+ button.setTitle(title, for: .normal)
+ button.setTitleColor(.blue, for: .normal)
+ button.setTitleColor(.lightGray, for: .highlighted)
+ button.setTitleColor(.lightGray, for: .disabled)
+ button.translatesAutoresizingMaskIntoConstraints = false
+ button.addTarget(self, action: action, for: .touchUpInside)
+ return button
+ }
+}
diff --git a/Demo/Demo.xcodeproj/project.pbxproj b/Demo/Demo.xcodeproj/project.pbxproj
index 60d73612ff..01902434e7 100644
--- a/Demo/Demo.xcodeproj/project.pbxproj
+++ b/Demo/Demo.xcodeproj/project.pbxproj
@@ -63,9 +63,6 @@
A9C4E07F24EC2A0C002F6FF2 /* ThreeDSecure_UITests_Extensions.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9C4E07E24EC2A0C002F6FF2 /* ThreeDSecure_UITests_Extensions.swift */; };
BE35FCD82A1BD162008F0326 /* BraintreeLocalPayment.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = BE35FCD72A1BD162008F0326 /* BraintreeLocalPayment.framework */; };
BE35FCD92A1BD162008F0326 /* BraintreeLocalPayment.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = BE35FCD72A1BD162008F0326 /* BraintreeLocalPayment.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
- BE4F788927EE2B6D00FF4C0E /* BraintreeDemoPayPalVaultViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = BE4F788827EE2B6D00FF4C0E /* BraintreeDemoPayPalVaultViewController.swift */; };
- BE4F788E27EE394600FF4C0E /* BraintreeDemoPayPalCheckoutViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = BE4F788D27EE394600FF4C0E /* BraintreeDemoPayPalCheckoutViewController.swift */; };
- BE4F789027EE3C1D00FF4C0E /* BraintreeDemoPayPalPayLaterViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = BE4F788F27EE3C1D00FF4C0E /* BraintreeDemoPayPalPayLaterViewController.swift */; };
BE777AC427D9370400487D23 /* BraintreeDemoSEPADirectDebitViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = BE777AC327D9370400487D23 /* BraintreeDemoSEPADirectDebitViewController.swift */; };
BE9BD75928872E4D00022983 /* BraintreeSEPADirectDebit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = BE9BD75828872E4D00022983 /* BraintreeSEPADirectDebit.framework */; };
BE9BD75A28872E4D00022983 /* BraintreeSEPADirectDebit.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = BE9BD75828872E4D00022983 /* BraintreeSEPADirectDebit.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
@@ -74,6 +71,8 @@
BEBD52872AABA513005D6687 /* BraintreeDemoThreeDSecurePaymentFlowViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = BEBD52862AABA513005D6687 /* BraintreeDemoThreeDSecurePaymentFlowViewController.swift */; };
BEBD52852AAB9649005D6687 /* BraintreeDemoAmexViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = BEBD52842AAB9649005D6687 /* BraintreeDemoAmexViewController.swift */; };
BEBD52832AAB62FB005D6687 /* BraintreeDemoApplePayViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = BEBD52822AAB62FB005D6687 /* BraintreeDemoApplePayViewController.swift */; };
+ BEBD52852AAB9649005D6687 /* BraintreeDemoAmexViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = BEBD52842AAB9649005D6687 /* BraintreeDemoAmexViewController.swift */; };
+ BED7C4CA2ABDD35700EF8550 /* BraintreeDemoPayPalWebCheckoutViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = BED7C4C92ABDD35700EF8550 /* BraintreeDemoPayPalWebCheckoutViewController.swift */; };
BEE930492A98FE9200C85779 /* BraintreeDemoBTDataCollectorViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = BEE930482A98FE9200C85779 /* BraintreeDemoBTDataCollectorViewController.swift */; };
BEE9304B2A992F6200C85779 /* BraintreeDemoCardTokenizationViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = BEE9304A2A992F6200C85779 /* BraintreeDemoCardTokenizationViewController.swift */; };
/* End PBXBuildFile section */
@@ -187,9 +186,6 @@
A9C4E07E24EC2A0C002F6FF2 /* ThreeDSecure_UITests_Extensions.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ThreeDSecure_UITests_Extensions.swift; sourceTree = ""; };
BE24C66A28E490F30067B11A /* PayPalCheckout.xcframework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcframework; name = PayPalCheckout.xcframework; path = ../Frameworks/XCFrameworks/PayPalCheckout.xcframework; sourceTree = ""; };
BE35FCD72A1BD162008F0326 /* BraintreeLocalPayment.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; path = BraintreeLocalPayment.framework; sourceTree = BUILT_PRODUCTS_DIR; };
- BE4F788827EE2B6D00FF4C0E /* BraintreeDemoPayPalVaultViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BraintreeDemoPayPalVaultViewController.swift; sourceTree = ""; };
- BE4F788D27EE394600FF4C0E /* BraintreeDemoPayPalCheckoutViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BraintreeDemoPayPalCheckoutViewController.swift; sourceTree = ""; };
- BE4F788F27EE3C1D00FF4C0E /* BraintreeDemoPayPalPayLaterViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BraintreeDemoPayPalPayLaterViewController.swift; sourceTree = ""; };
BE777AC327D9370400487D23 /* BraintreeDemoSEPADirectDebitViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BraintreeDemoSEPADirectDebitViewController.swift; sourceTree = ""; };
BE9BD75828872E4D00022983 /* BraintreeSEPADirectDebit.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; path = BraintreeSEPADirectDebit.framework; sourceTree = BUILT_PRODUCTS_DIR; };
BEAAAA332A98E5E6001ECA63 /* BraintreeDemoIdealViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BraintreeDemoIdealViewController.swift; sourceTree = ""; };
@@ -197,6 +193,8 @@
BEBD52862AABA513005D6687 /* BraintreeDemoThreeDSecurePaymentFlowViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BraintreeDemoThreeDSecurePaymentFlowViewController.swift; sourceTree = ""; };
BEBD52842AAB9649005D6687 /* BraintreeDemoAmexViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BraintreeDemoAmexViewController.swift; sourceTree = ""; };
BEBD52822AAB62FB005D6687 /* BraintreeDemoApplePayViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BraintreeDemoApplePayViewController.swift; sourceTree = ""; };
+ BEBD52842AAB9649005D6687 /* BraintreeDemoAmexViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BraintreeDemoAmexViewController.swift; sourceTree = ""; };
+ BED7C4C92ABDD35700EF8550 /* BraintreeDemoPayPalWebCheckoutViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BraintreeDemoPayPalWebCheckoutViewController.swift; sourceTree = ""; };
BEE930482A98FE9200C85779 /* BraintreeDemoBTDataCollectorViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BraintreeDemoBTDataCollectorViewController.swift; sourceTree = ""; };
BEE9304A2A992F6200C85779 /* BraintreeDemoCardTokenizationViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BraintreeDemoCardTokenizationViewController.swift; sourceTree = ""; };
C8E5BAD1DA81AAD310B19786 /* Pods-Demo.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Demo.release.xcconfig"; path = "Target Support Files/Pods-Demo/Pods-Demo.release.xcconfig"; sourceTree = ""; };
@@ -374,7 +372,6 @@
A0988F5924DB44B10095EEEE /* Features */ = {
isa = PBXGroup;
children = (
- 8017E951268FB7C100AE796C /* Views */,
A0988F7824DB44B10095EEEE /* 3D Secure */,
A0988F7E24DB44B10095EEEE /* Amex */,
A0988F7224DB44B10095EEEE /* Apple Pay - PassKit */,
@@ -382,11 +379,10 @@
A0988F5C24DB44B10095EEEE /* Fraud Protection - BTDataCollector */,
A0988F6224DB44B10095EEEE /* Ideal */,
57108A132832E704004EB870 /* PayPal - Native Checkout */,
- A0988F7B24DB44B10095EEEE /* PayPal - Vault */,
- A0988F5F24DB44B10095EEEE /* PayPal - Checkout */,
- A0988F6824DB44B10095EEEE /* PayPal - Pay Later */,
+ BED7C4C82ABDD32E00EF8550 /* PayPal - Web Checkout */,
BE777AC227D936E700487D23 /* SEPA Direct Debit */,
A0988F8124DB44B10095EEEE /* Venmo - Custom Button */,
+ 8017E951268FB7C100AE796C /* Views */,
);
path = Features;
sourceTree = "";
@@ -399,14 +395,6 @@
path = "Fraud Protection - BTDataCollector";
sourceTree = "";
};
- A0988F5F24DB44B10095EEEE /* PayPal - Checkout */ = {
- isa = PBXGroup;
- children = (
- BE4F788D27EE394600FF4C0E /* BraintreeDemoPayPalCheckoutViewController.swift */,
- );
- path = "PayPal - Checkout";
- sourceTree = "";
- };
A0988F6224DB44B10095EEEE /* Ideal */ = {
isa = PBXGroup;
children = (
@@ -415,14 +403,6 @@
path = Ideal;
sourceTree = "";
};
- A0988F6824DB44B10095EEEE /* PayPal - Pay Later */ = {
- isa = PBXGroup;
- children = (
- BE4F788F27EE3C1D00FF4C0E /* BraintreeDemoPayPalPayLaterViewController.swift */,
- );
- path = "PayPal - Pay Later";
- sourceTree = "";
- };
A0988F6B24DB44B10095EEEE /* Credit Card Tokenization */ = {
isa = PBXGroup;
children = (
@@ -447,14 +427,6 @@
path = "3D Secure";
sourceTree = "";
};
- A0988F7B24DB44B10095EEEE /* PayPal - Vault */ = {
- isa = PBXGroup;
- children = (
- BE4F788827EE2B6D00FF4C0E /* BraintreeDemoPayPalVaultViewController.swift */,
- );
- path = "PayPal - Vault";
- sourceTree = "";
- };
A0988F7E24DB44B10095EEEE /* Amex */ = {
isa = PBXGroup;
children = (
@@ -557,6 +529,14 @@
path = "SEPA Direct Debit";
sourceTree = "";
};
+ BED7C4C82ABDD32E00EF8550 /* PayPal - Web Checkout */ = {
+ isa = PBXGroup;
+ children = (
+ BED7C4C92ABDD35700EF8550 /* BraintreeDemoPayPalWebCheckoutViewController.swift */,
+ );
+ path = "PayPal - Web Checkout";
+ sourceTree = "";
+ };
F1D1FED7D4B39E9B6D0FCC73 /* Pods */ = {
isa = PBXGroup;
children = (
@@ -784,8 +764,8 @@
buildActionMask = 2147483647;
files = (
A0988F9524DB44B20095EEEE /* BraintreeDemoBaseViewController.m in Sources */,
- BE4F789027EE3C1D00FF4C0E /* BraintreeDemoPayPalPayLaterViewController.swift in Sources */,
BEAAAA342A98E5E6001ECA63 /* BraintreeDemoIdealViewController.swift in Sources */,
+ BED7C4CA2ABDD35700EF8550 /* BraintreeDemoPayPalWebCheckoutViewController.swift in Sources */,
BEBD52872AABA513005D6687 /* BraintreeDemoThreeDSecurePaymentFlowViewController.swift in Sources */,
803FB9DE26D93146002BF92D /* BTCardFormView.swift in Sources */,
A0988FFA24DB44B20095EEEE /* BraintreeDemoMerchantAPIClient.swift in Sources */,
@@ -794,7 +774,6 @@
A0988FE624DB44B20095EEEE /* main.m in Sources */,
A0988F9724DB44B20095EEEE /* BraintreeDemoContainmentViewController.m in Sources */,
BEE9304B2A992F6200C85779 /* BraintreeDemoCardTokenizationViewController.swift in Sources */,
- BE4F788927EE2B6D00FF4C0E /* BraintreeDemoPayPalVaultViewController.swift in Sources */,
42D47A152554679D0012BAF1 /* BraintreeDemoSceneDelegate.m in Sources */,
A0988F9424DB44B20095EEEE /* BraintreeDemoPaymentButtonBaseViewController.m in Sources */,
80D36DEE2A7967F20035380E /* BraintreeDemoVenmoViewController.swift in Sources */,
@@ -802,7 +781,6 @@
A0988F9624DB44B20095EEEE /* BraintreeDemoAppDelegate.m in Sources */,
BEAAAD052970A70D000BD296 /* BTSEPADirectDebitTestHelper.swift in Sources */,
57108A152832E789004EB870 /* BraintreeDemoPayPalNativeCheckoutViewController.swift in Sources */,
- BE4F788E27EE394600FF4C0E /* BraintreeDemoPayPalCheckoutViewController.swift in Sources */,
BEBD52832AAB62FB005D6687 /* BraintreeDemoApplePayViewController.swift in Sources */,
A0988F9224DB44B20095EEEE /* BraintreeDemoSettings.swift in Sources */,
);
diff --git a/Demo/UI Tests/PayPal UI Tests/PayPal_Checkout_UITests.swift b/Demo/UI Tests/PayPal UI Tests/PayPal_Checkout_UITests.swift
index 08452ff198..dc7a21d97d 100644
--- a/Demo/UI Tests/PayPal UI Tests/PayPal_Checkout_UITests.swift
+++ b/Demo/UI Tests/PayPal UI Tests/PayPal_Checkout_UITests.swift
@@ -15,7 +15,7 @@ class PayPal_Checkout_UITests: XCTestCase {
continueAfterFailure = false
app.launchArguments.append("-EnvironmentSandbox")
app.launchArguments.append("-MockedPayPalTokenizationKey")
- app.launchArguments.append("-Integration:BraintreeDemoPayPalCheckoutViewController")
+ app.launchArguments.append("-Integration:BraintreeDemoPayPalWebCheckoutViewController")
app.launch()
app.buttons["PayPal Checkout"].tap()
diff --git a/Demo/UI Tests/PayPal UI Tests/PayPal_Vault_UITests.swift b/Demo/UI Tests/PayPal UI Tests/PayPal_Vault_UITests.swift
index 4489f95090..54cb523b06 100644
--- a/Demo/UI Tests/PayPal UI Tests/PayPal_Vault_UITests.swift
+++ b/Demo/UI Tests/PayPal UI Tests/PayPal_Vault_UITests.swift
@@ -15,7 +15,7 @@ class PayPal_Vault_UITests: XCTestCase {
continueAfterFailure = false
app.launchArguments.append("-EnvironmentSandbox")
app.launchArguments.append("-MockedPayPalTokenizationKey")
- app.launchArguments.append("-Integration:BraintreeDemoPayPalVaultViewController")
+ app.launchArguments.append("-Integration:BraintreeDemoPayPalWebCheckoutViewController")
app.launch()
app.buttons["PayPal Vault"].tap()