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

Bump PayPal Messages to v1.0.0 alpha.1 #1286

Merged
merged 18 commits into from
May 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion Braintree.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ Pod::Spec.new do |s|
s.subspec "PayPalMessaging" do |s|
s.source_files = "Sources/BraintreePayPalMessaging/*.swift"
s.dependency "Braintree/Core"
s.dependency "PayPalMessages", '1.0.0-prerelease.6'
s.dependency "PayPalMessages", '1.0.0-alpha.1'
end

s.subspec "ThreeDSecure" do |s|
Expand Down
20 changes: 10 additions & 10 deletions Braintree.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@
BE57E1132847F8C9002CFBAC /* BTDataCollector.swift in Sources */ = {isa = PBXBuildFile; fileRef = BE57E1122847F8C9002CFBAC /* BTDataCollector.swift */; };
BE5898992B30B15600AA196E /* BTPayPalMessagingTextAlignment_Tests.swift in Sources */ = {isa = PBXBuildFile; fileRef = BE5898982B30B15600AA196E /* BTPayPalMessagingTextAlignment_Tests.swift */; };
BE58989B2B30B49000AA196E /* BTPayPalMessagingOfferType_Tests.swift in Sources */ = {isa = PBXBuildFile; fileRef = BE58989A2B30B49000AA196E /* BTPayPalMessagingOfferType_Tests.swift */; };
BE58989D2B30B5BC00AA196E /* BTPayPalMessagingPlacement_Tests.swift in Sources */ = {isa = PBXBuildFile; fileRef = BE58989C2B30B5BB00AA196E /* BTPayPalMessagingPlacement_Tests.swift */; };
BE58989D2B30B5BC00AA196E /* BTPayPalMessagingPageType_Tests.swift in Sources */ = {isa = PBXBuildFile; fileRef = BE58989C2B30B5BB00AA196E /* BTPayPalMessagingPageType_Tests.swift */; };
BE58989F2B30B68300AA196E /* BTPayPalMessagingLogoType_Tests.swift in Sources */ = {isa = PBXBuildFile; fileRef = BE58989E2B30B68300AA196E /* BTPayPalMessagingLogoType_Tests.swift */; };
BE5898A12B30B75500AA196E /* BTPayPalMessagingColor_Tests.swift in Sources */ = {isa = PBXBuildFile; fileRef = BE5898A02B30B75500AA196E /* BTPayPalMessagingColor_Tests.swift */; };
BE5898A32B30B82500AA196E /* BTPayPalMessagingRequest_Tests.swift in Sources */ = {isa = PBXBuildFile; fileRef = BE5898A22B30B82500AA196E /* BTPayPalMessagingRequest_Tests.swift */; };
Expand Down Expand Up @@ -274,7 +274,7 @@
BEA0F91E2B23728000C21EFA /* BTPayPalMessagingDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = BEA0F91D2B23728000C21EFA /* BTPayPalMessagingDelegate.swift */; };
BEA0F9202B23731700C21EFA /* BTPayPalMessagingLogoType.swift in Sources */ = {isa = PBXBuildFile; fileRef = BEA0F91F2B23731700C21EFA /* BTPayPalMessagingLogoType.swift */; };
BEA0F9222B23736500C21EFA /* BTPayPalMessagingOfferType.swift in Sources */ = {isa = PBXBuildFile; fileRef = BEA0F9212B23736500C21EFA /* BTPayPalMessagingOfferType.swift */; };
BEA0F9242B2373A600C21EFA /* BTPayPalMessagingPlacement.swift in Sources */ = {isa = PBXBuildFile; fileRef = BEA0F9232B2373A600C21EFA /* BTPayPalMessagingPlacement.swift */; };
BEA0F9242B2373A600C21EFA /* BTPayPalMessagingPageType.swift in Sources */ = {isa = PBXBuildFile; fileRef = BEA0F9232B2373A600C21EFA /* BTPayPalMessagingPageType.swift */; };
BEA0F9262B2373E400C21EFA /* BTPayPalMessagingTextAlignment.swift in Sources */ = {isa = PBXBuildFile; fileRef = BEA0F9252B2373E400C21EFA /* BTPayPalMessagingTextAlignment.swift */; };
BEA0F9282B23741900C21EFA /* BTPayPalMessagingRequest.swift in Sources */ = {isa = PBXBuildFile; fileRef = BEA0F9272B23741900C21EFA /* BTPayPalMessagingRequest.swift */; };
BEA0F92A2B23768600C21EFA /* BTPayPalMessagingError.swift in Sources */ = {isa = PBXBuildFile; fileRef = BEA0F9292B23768600C21EFA /* BTPayPalMessagingError.swift */; };
Expand Down Expand Up @@ -897,7 +897,7 @@
BE57E1122847F8C9002CFBAC /* BTDataCollector.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BTDataCollector.swift; sourceTree = "<group>"; };
BE5898982B30B15600AA196E /* BTPayPalMessagingTextAlignment_Tests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BTPayPalMessagingTextAlignment_Tests.swift; sourceTree = "<group>"; };
BE58989A2B30B49000AA196E /* BTPayPalMessagingOfferType_Tests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BTPayPalMessagingOfferType_Tests.swift; sourceTree = "<group>"; };
BE58989C2B30B5BB00AA196E /* BTPayPalMessagingPlacement_Tests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BTPayPalMessagingPlacement_Tests.swift; sourceTree = "<group>"; };
BE58989C2B30B5BB00AA196E /* BTPayPalMessagingPageType_Tests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BTPayPalMessagingPageType_Tests.swift; sourceTree = "<group>"; };
BE58989E2B30B68300AA196E /* BTPayPalMessagingLogoType_Tests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BTPayPalMessagingLogoType_Tests.swift; sourceTree = "<group>"; };
BE5898A02B30B75500AA196E /* BTPayPalMessagingColor_Tests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BTPayPalMessagingColor_Tests.swift; sourceTree = "<group>"; };
BE5898A22B30B82500AA196E /* BTPayPalMessagingRequest_Tests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BTPayPalMessagingRequest_Tests.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -949,7 +949,7 @@
BEA0F91D2B23728000C21EFA /* BTPayPalMessagingDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BTPayPalMessagingDelegate.swift; sourceTree = "<group>"; };
BEA0F91F2B23731700C21EFA /* BTPayPalMessagingLogoType.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BTPayPalMessagingLogoType.swift; sourceTree = "<group>"; };
BEA0F9212B23736500C21EFA /* BTPayPalMessagingOfferType.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BTPayPalMessagingOfferType.swift; sourceTree = "<group>"; };
BEA0F9232B2373A600C21EFA /* BTPayPalMessagingPlacement.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BTPayPalMessagingPlacement.swift; sourceTree = "<group>"; };
BEA0F9232B2373A600C21EFA /* BTPayPalMessagingPageType.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BTPayPalMessagingPageType.swift; sourceTree = "<group>"; };
BEA0F9252B2373E400C21EFA /* BTPayPalMessagingTextAlignment.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BTPayPalMessagingTextAlignment.swift; sourceTree = "<group>"; };
BEA0F9272B23741900C21EFA /* BTPayPalMessagingRequest.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BTPayPalMessagingRequest.swift; sourceTree = "<group>"; };
BEA0F9292B23768600C21EFA /* BTPayPalMessagingError.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BTPayPalMessagingError.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -1847,7 +1847,7 @@
BEA0F9292B23768600C21EFA /* BTPayPalMessagingError.swift */,
BEA0F91F2B23731700C21EFA /* BTPayPalMessagingLogoType.swift */,
BEA0F9212B23736500C21EFA /* BTPayPalMessagingOfferType.swift */,
BEA0F9232B2373A600C21EFA /* BTPayPalMessagingPlacement.swift */,
BEA0F9232B2373A600C21EFA /* BTPayPalMessagingPageType.swift */,
BEA0F9272B23741900C21EFA /* BTPayPalMessagingRequest.swift */,
BEA0F9252B2373E400C21EFA /* BTPayPalMessagingTextAlignment.swift */,
BECC91962B20E01F00A2EE42 /* BTPayPalMessagingView.swift */,
Expand All @@ -1861,12 +1861,12 @@
BE5898A02B30B75500AA196E /* BTPayPalMessagingColor_Tests.swift */,
BE58989E2B30B68300AA196E /* BTPayPalMessagingLogoType_Tests.swift */,
BE58989A2B30B49000AA196E /* BTPayPalMessagingOfferType_Tests.swift */,
BE58989C2B30B5BB00AA196E /* BTPayPalMessagingPlacement_Tests.swift */,
BE58989C2B30B5BB00AA196E /* BTPayPalMessagingPageType_Tests.swift */,
BE5898A22B30B82500AA196E /* BTPayPalMessagingRequest_Tests.swift */,
BE5898982B30B15600AA196E /* BTPayPalMessagingTextAlignment_Tests.swift */,
BECC91982B20E1E400A2EE42 /* BTPayPalMessagingView_Tests.swift */,
BEF137E12B3359B000B9B225 /* MockBTPayPalMessagingDelegate.swift */,
BECC919C2B20E87D00A2EE42 /* Info.plist */,
BEF137E12B3359B000B9B225 /* MockBTPayPalMessagingDelegate.swift */,
);
path = BraintreePayPalMessagingTests;
sourceTree = "<group>";
Expand Down Expand Up @@ -3346,7 +3346,7 @@
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
BEA0F9242B2373A600C21EFA /* BTPayPalMessagingPlacement.swift in Sources */,
BEA0F9242B2373A600C21EFA /* BTPayPalMessagingPageType.swift in Sources */,
BEA0F9222B23736500C21EFA /* BTPayPalMessagingOfferType.swift in Sources */,
BEF137E02B33309A00B9B225 /* BTPayPalMessagingView.swift in Sources */,
BE67CDBE2B29FC3D00BA4904 /* BTPayPalMessagingAnalytics.swift in Sources */,
Expand All @@ -3368,7 +3368,7 @@
BE5898992B30B15600AA196E /* BTPayPalMessagingTextAlignment_Tests.swift in Sources */,
BE58989B2B30B49000AA196E /* BTPayPalMessagingOfferType_Tests.swift in Sources */,
BECC91992B20E1E400A2EE42 /* BTPayPalMessagingView_Tests.swift in Sources */,
BE58989D2B30B5BC00AA196E /* BTPayPalMessagingPlacement_Tests.swift in Sources */,
BE58989D2B30B5BC00AA196E /* BTPayPalMessagingPageType_Tests.swift in Sources */,
BEF137E22B3359B000B9B225 /* MockBTPayPalMessagingDelegate.swift in Sources */,
BE5898A12B30B75500AA196E /* BTPayPalMessagingColor_Tests.swift in Sources */,
);
Expand Down Expand Up @@ -6716,7 +6716,7 @@
repositoryURL = "https://github.com/paypal/paypal-messages-ios";
requirement = {
kind = exactVersion;
version = "1.0.0-prerelease.6";
version = "1.0.0-alpha.1";
};
};
BEE2E4B52900436600C03FDD /* XCRemoteSwiftPackageReference "paypalcheckout-ios" */ = {
Expand Down
8 changes: 4 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
## unreleased
* BraintreePayPalNativeCheckout
* Bump PayPalCheckout to version 1.3.0 with code signing & a privacy manifest file.
* BraintreePayPalMessaging (BETA)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like this accidentally got added under the 6.11.0 section at some point but hasn't actually been released. Lets remove it from there and move it under unreleased and update the names there:

* BraintreePayPalMessaging (BETA)
  * Add `BTPayPalMessagingRequest`, `BTPayPalMessagingColor`, `BTPayPalMessagingLogoType`, `BTPayPalMessagingOfferType`, `BTPayPalMessagingPlacement`, `BTPayPalMessagingTextAlignment`, and `BTPayPalMessagingDelegate`
  * Add `BTPayPalMessagingView` to display PayPal messages to promote offers such as Pay Later and PayPal Credit to customers.
    * To get started create a `BTPayPalMessagingView` and call `start(_:)` with a `BTPayPalMessagingRequest`

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated here: f22a9b1

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lets also delete it from the 6.11.0 section since it wasn't actually released there

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated: ae5a8a4

* Add `BTPayPalMessagingRequest`, `BTPayPalMessagingColor`, `BTPayPalMessagingLogoType`, `BTPayPalMessagingOfferType`, `BTPayPalMessagingPageType`, `BTPayPalMessagingTextAlignment`, and `BTPayPalMessagingDelegate`
* Add `BTPayPalMessagingView` to display PayPal messages to promote offers such as Pay Later and PayPal Credit to customers.
* To get started create a `BTPayPalMessagingView` and call `start(_:)` with a `BTPayPalMessagingRequest`

## 5.25.0 (2024-04-10)
* Require Xcode 15.0+ and Swift 5.9+ (per [Apple App Store requirements](https://developer.apple.com/news/upcoming-requirements/?id=04292024a))
Expand Down Expand Up @@ -50,10 +54,6 @@
* Update all SDK errors to be public and [Equatable](https://developer.apple.com/documentation/swift/equatable) (fixes #1152 and #1080)
* BraintreeThreeDSecure
* Fix bug where `BTThreeDSecureClient.initializeChallenge()` callback wasn't properly invoked (fixes #1154)
* BraintreePayPalMessaging (BETA)
* Add `BTPayPalMessagingRequest`, `BTPayPalMessagingColor`, `BTPayPalMessagingLogoType`, `BTPayPalMessagingOfferType`, `BTPayPalMessagingPlacement`, `BTPayPalMessagingTextAlignment`, and `BTPayPalMessagingDelegate`
* Add `BTPayPalMessagingView` to display PayPal messages to promote offers such as Pay Later and PayPal Credit to customers.
* To get started create a `BTPayPalMessagingView` and call `start(_:)` with a `BTPayPalMessagingRequest`

## 6.10.0 (2023-11-17)
* BraintreePayPalNativeCheckout
Expand Down
2 changes: 1 addition & 1 deletion Cartfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
binary "https://assets.braintreegateway.com/mobile/ios/carthage-frameworks/cardinal-mobile/CardinalMobile.json" == 2.2.5-9
binary "https://assets.braintreegateway.com/mobile/ios/carthage-frameworks/pp-risk-magnes/PPRiskMagnes.json" == 5.5.0-static-Xcode15-MinOSVersion100
binary "https://github.com/paypal/paypalcheckout-ios/raw/main/Carthage/PayPalCheckout.json" == 1.3.0
binary "https://github.com/paypal/paypal-messages-ios/raw/prerelease/Carthage/PayPalMessages.json" == 1.0.0-prerelease.6
binary "https://github.com/paypal/paypal-messages-ios/raw/alpha/Carthage/PayPalMessages.json" == 1.0.0-alpha.1
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ final class PayPalMessaging_Success_UITests: XCTestCase {
func testStart_withValidRequest_firesDelegates() {
XCTAssertTrue(app.buttons["DELEGATE: didAppear fired"].waitForExistence(timeout: 10))

let expectedButtonText = "PayPal - Pay monthly for purchases of $199.00-$10,000.00. Learn more"
let expectedButtonText = "PayPal - Pay monthly for purchases of $199-$10,000. Learn more"
waitForElementToBeHittable(app.buttons[expectedButtonText])
app.buttons[expectedButtonText].tap()
sleep(2)

app.buttons["PayPal Learn More Modal Close"].tap()
app.buttons["PayPal learn more modal close"].tap()
sleep(2)

XCTAssertTrue(app.buttons["DELEGATE: didSelect fired"].waitForExistence(timeout: 10))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public enum BTPayPalMessagingLogoType {
case alternative

/// "PayPal" as bold text inline with the message
case simple
case none
richherrera marked this conversation as resolved.
Show resolved Hide resolved

var logoTypeRawValue: PayPalMessageLogoType {
switch self {
Expand All @@ -25,7 +25,7 @@ public enum BTPayPalMessagingLogoType {
return .primary
case .alternative:
return .alternative
case .simple:
case .none:
return .none
}
}
Expand Down
43 changes: 43 additions & 0 deletions Sources/BraintreePayPalMessaging/BTPayPalMessagingPageType.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
import Foundation
import PayPalMessages

/// Message location within an application
/// - Note: This module is in beta. It's public API may change or be removed in future releases.
public enum BTPayPalMessagingPageType {

/// Home view
case home

/// Individual product details view
case productDetails

/// Shopping cart view
case cart

/// Popover shopping cart view that covers part of the view
case miniCart

/// Checkout view
case checkout

/// Search results
case searchResults

var pageTypeRawValue: PayPalMessagePageType {
Copy link
Contributor

@scannillo scannillo May 6, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be nice if we could just expose specific classes from the PayPalMessages library to our merchants.

(Don't think Swift allows it)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, TBH - at this stage (no pilot merchants), I would prefer having merchants directly integrate with the PayPalMessages library versus have our SDK be a tight wrapper around it's public API.

Or even having a "module" in our SDK that merely exposes the PayPalMessages library. The decision to wrap it was mostly from product pressure on the Messaging side.

Very much an aside/not relevant to this PR - but wanted to give you context.

switch self {
case .home:
return .home
case .productDetails:
return .productDetails
case .cart:
return .cart
case .miniCart:
return .miniCart
case .checkout:
return .checkout
case .searchResults:
return .searchResults
}
}
}

38 changes: 0 additions & 38 deletions Sources/BraintreePayPalMessaging/BTPayPalMessagingPlacement.swift

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import Foundation
public struct BTPayPalMessagingRequest {

var amount: Double?
var placement: BTPayPalMessagingPlacement?
var pageType: BTPayPalMessagingPageType?
var offerType: BTPayPalMessagingOfferType?
var buyerCountry: String?
var logoType: BTPayPalMessagingLogoType
Expand All @@ -17,23 +17,23 @@ public struct BTPayPalMessagingRequest {
/// Initialize a `BTPayPalMessaging`
/// - Parameters:
/// - amount: Price expressed in cents amount based on the current context (i.e. individual product price vs total cart price)
/// - placement: Message screen location (e.g. product, cart, home)
/// - pageType: Message screen location (e.g. product, cart, home)
/// - offerType: Preferred message offer to display
/// - buyerCountry: Consumer's country (Integrations must be approved by PayPal to use this option)
/// - logoType: Logo type option for a PayPal Message. Defaults to `.inline`
/// - textAlignment: Text alignment option for a PayPal Message. Defaults to `.right`
/// - color: Text and logo color option for a PayPal Message. Defaults to `.black`
public init(
amount: Double? = nil,
placement: BTPayPalMessagingPlacement? = nil,
pageType: BTPayPalMessagingPageType? = nil,
offerType: BTPayPalMessagingOfferType? = nil,
buyerCountry: String? = nil,
logoType: BTPayPalMessagingLogoType = .inline,
textAlignment: BTPayPalMessagingTextAlignment = .right,
color: BTPayPalMessagingColor = .black
) {
self.amount = amount
self.placement = placement
self.pageType = pageType
self.offerType = offerType
self.buyerCountry = buyerCountry
self.logoType = logoType
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public enum BTPayPalMessagingTextAlignment {
/// Text aligned to the right
case right

var textAlignmentRawValue: PayPalMessageTextAlignment {
var textAlignmentRawValue: PayPalMessageTextAlign {
jaxdesmarais marked this conversation as resolved.
Show resolved Hide resolved
switch self {
case .left:
return .left
Expand Down
4 changes: 2 additions & 2 deletions Sources/BraintreePayPalMessaging/BTPayPalMessagingView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public class BTPayPalMessagingView: UIView {
clientID: clientID,
environment: configuration.environment == "production" ? .live : .sandbox,
amount: request.amount,
placement: request.placement?.placementRawValue,
pageType: request.pageType?.pageTypeRawValue,
offerType: request.offerType?.offerTypeRawValue
)

Expand All @@ -68,7 +68,7 @@ public class BTPayPalMessagingView: UIView {
style: PayPalMessageStyle(
logoType: request.logoType.logoTypeRawValue,
color: request.color.messageColorRawValue,
textAlignment: request.textAlignment.textAlignmentRawValue
textAlign: request.textAlignment.textAlignmentRawValue
)
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ final class BTPayPalMessagingLogoType_Tests: XCTestCase {
}

func testLogoType_withNone_returnsRawValueNone() {
XCTAssertEqual(BTPayPalMessagingLogoType.simple.logoTypeRawValue, .none)
XCTAssertEqual(BTPayPalMessagingLogoType.none.logoTypeRawValue, .none)
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
import XCTest
import PayPalMessages
@testable import BraintreePayPalMessaging

final class BTPayPalMessagingPageType_Tests: XCTestCase {

func testPageType_withHome_returnsPageTypeHome() {
XCTAssertEqual(BTPayPalMessagingPageType.home.pageTypeRawValue, .home)
}

func testPageType_withCategory_returnsPageTypeProductDetails() {
XCTAssertEqual(BTPayPalMessagingPageType.productDetails.pageTypeRawValue, .productDetails)
}

func testPageType_withProduct_returnsPageTypeCart() {
XCTAssertEqual(BTPayPalMessagingPageType.cart.pageTypeRawValue, .cart)
}

func testPageType_withCart_returnsPageTypeMiniCart() {
XCTAssertEqual(BTPayPalMessagingPageType.miniCart.pageTypeRawValue, .miniCart)
}

func testPageType_withPayment_returnsPageTypeCheckout() {
XCTAssertEqual(BTPayPalMessagingPageType.checkout.pageTypeRawValue, .checkout)
}

func testPageType_withSearchResults_returnsPageTypeSearchResults() {
XCTAssertEqual(BTPayPalMessagingPageType.searchResults.pageTypeRawValue, .searchResults)
}
}

This file was deleted.