Skip to content

Commit

Permalink
Remove MXO (#291)
Browse files Browse the repository at this point in the history
* Remove MXO

* remove Package.resolved file containing incompatible pinstorage version

* CHANGELOG entry

* Jax feedback and docStrings correction

* Remove PatchOrder for MXO, unused files in demo app

* Remove more classes used exclusively for MXO
  • Loading branch information
KunJeongPark authored Oct 14, 2024
1 parent 1eb22f1 commit b747307
Show file tree
Hide file tree
Showing 42 changed files with 32 additions and 2,353 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
# PayPal iOS SDK Release Notes

## unreleased
* Breaking Changes
* PayPalNativePayments
* Remove entire PayPalNativePayments module
* PayPalWebPayments
* Deprecate `PayPalVaultRequest(url:setupTokenID:)`
* Add `PayPalVaultRequest(setupTokenID:)`
Expand Down
51 changes: 0 additions & 51 deletions Demo/Demo.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

99 changes: 0 additions & 99 deletions Demo/Demo/Helpers/OrderRequestHelpers.swift

This file was deleted.

6 changes: 0 additions & 6 deletions Demo/Demo/Models/ProcessOrderParams.swift

This file was deleted.

7 changes: 0 additions & 7 deletions Demo/Demo/Models/ShippingPreference.swift

This file was deleted.

68 changes: 0 additions & 68 deletions Demo/Demo/Models/UpdateOrderParams.swift

This file was deleted.

12 changes: 0 additions & 12 deletions Demo/Demo/Networking/DemoMerchantAPI.swift
Original file line number Diff line number Diff line change
Expand Up @@ -116,18 +116,6 @@ final class DemoMerchantAPI {
return try parse(from: data)
}

/// This function replicates a way a merchant may go about patching an order on their server and is not part of the SDK flow.
/// - Parameters:
/// - updateOrderParams: the parameters to update the order with
/// - Throws: an error explaining why patching the order failed
func updateOrder(_ updateOrderParams: UpdateOrderParams, selectedMerchantIntegration: MerchantIntegration) async throws {
guard let url = buildBaseURL(with: "/orders/" + updateOrderParams.orderID) else {
throw URLResponseError.invalidURL
}
let urlRequest = buildURLRequest(method: "PATCH", url: url, body: updateOrderParams.updateOperations)
_ = try await data(for: urlRequest)
}

/// This function fetches a clientID to initialize any module of the SDK
/// - Parameters:
/// - environment: the current environment
Expand Down
5 changes: 0 additions & 5 deletions Demo/Demo/SwiftUIComponents/FeatureSelectionView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,6 @@ struct FeatureSelectionView: View {
} label: {
Text("PayPal Vaulting")
}
NavigationLink {
SwiftUINativeCheckoutDemo()
} label: {
Text("Native Checkout")
}
NavigationLink {
SwiftUIPaymentButtonDemo()
} label: {
Expand Down
113 changes: 0 additions & 113 deletions Demo/Demo/SwiftUIComponents/SwiftUINativeCheckoutDemo.swift

This file was deleted.

Loading

0 comments on commit b747307

Please sign in to comment.