Releases: paypal/paypal-ios
Releases · paypal/paypal-ios
2.0.1
2.0.0
- Breaking Changes
- PayPalNativePayments
- Remove entire PayPalNativePayments module
- PayPalWebPayments
- Replace delegate pattern with completion handlers and Swift concurrency
- Remove
PayPalWebCheckoutDelegateandPayPalVaultDelegate - Remove
start(request:)method that uses delegate callbacks - Remove
vault(vaultRequest:)method that uses delegate callbacks - Add
start(request:completion(PayPalWebCheckoutResult?, CoreSDKError?) -> Void)toPayPalWebCheckoutClient - Add
vault(vaultRequest:completion(PayPalVaultResult?, CoreSDKError?) -> Void)toPayPalWebCheckoutClient - Add
start(request:) async throws -> PayPalCheckoutResult - Add
vault(vaultRequest:) async throws -> PayPalVaultResult
- Remove
- Update completion handler types to use
Resultinstead of optional tuples- Change
startcompletion from(PayPalWebCheckoutResult?, CoreSDKError?)toResult<PayPalWebCheckoutResult, CoreSDKError> - Change
vaultcompletion from(PayPalVaultResult?, CoreSDKError?)toResult<PayPalVaultResult, CoreSDKError>
- Change
- Replace delegate pattern with completion handlers and Swift concurrency
- CardPayments
- Replace delegate pattern with completion handlers and Swift concurrency
- Remove
CardDelegateandCardVaultDelegate - Remove
approveOrder(request:)method that uses delegate callbacks - Remove
vault(vaultRequest:)method that uses delegate callbacks - Add
approveOrder(request:completion:(CardResult?, CoreSDKError?) -> Void)toCardClient - Add
vault(request:completion:(CardVaultResult?, CoreSDKError?) -> Void)toCardClient - Add
approveOrder(request:) async throws -> CardResult - Add
vault(vaultRequest:) async throws -> CardVaultResult
- Remove
- Update completion handler types to use
Resultinstead of optional tuples- Change
approveOrdercompletion from(CardResult?, CoreSDKError?)toResult<CardResult, CoreSDKError> - Change
vaultcompletion from(CardVaultResult?, CoreSDKError?)toResult<CardVaultResult, CoreSDKError>
- Change
- Replace delegate pattern with completion handlers and Swift concurrency
- PayPalNativePayments
- CorePayments
- Make
CoreSDKErrorconform to Equatable - Rename
NetworkingClientErrortoNetworkingError - Make
NetworkingErrorenum and static constants public
- Make
- CardPayments
- Make
CardErrorenum and static constants public - Rename
CardClientErrortoCardError- Add
threeDSecureCanceledErrortoCardError - Add public static function
isThreeDSecureCanceled(Error)toCardErrorto distinguish cancellation error from threeDSecure verification - Make
CardErrorpublic to expose cancellation error handling helper
- Add
- Make
- PayPalWebPayments
- Rename
PayPalWebCheckoutClientErrortoPayPalError - Add
.checkoutCanceledErrorandvaultCanceledErrortoPayPalError - Add public static functions
isCheckoutCanceled(Error)andisVaultCanceled(Error)toPayPalErrorto distinguish cancellation errors in PayPal flows. - Make
PayPalErrorpublic to expose cancellation error handling helpers - Make
PayPalErrorenum and static constants public
- Rename
2.0.0-beta2
- CorePayments
- Make
CoreSDKErrorconform to Equatable - Rename
NetworkingClientErrortoNetworkingError - Make
NetworkingErrorenum and static constants public
- Make
- CardPayments
- Make
CardErrorenum and static constants public
- Make
- PayPalPayments
- Make
PayPalErrorenum and static constants public
- Make
2.0.0-beta1
- Breaking Changes
- PayPalNativePayments
- Remove entire PayPalNativePayments module
- PayPalWebPayments
- Replace delegate pattern with completion handlers and Swift concurrency
- Remove
PayPalWebCheckoutDelegateandPayPalVaultDelegate - Remove
start(request:)method that uses delegate callbacks - Remove
vault(vaultRequest:)method that uses delegate callbacks - Add
start(request:completion(PayPalWebCheckoutResult?, CoreSDKError?) -> Void)toPayPalWebCheckoutClient - Add
vault(vaultRequest:completion(PayPalVaultResult?, CoreSDKError?) -> Void)toPayPalWebCheckoutClient - Add
start(request:) async throws -> PayPalCheckoutResult - Add
vault(vaultRequest:) async throws -> PayPalVaultResult
- Remove
- Replace delegate pattern with completion handlers and Swift concurrency
- CardPayments
- Replace delegate pattern with completion handlers and Swift concurrency
- Remove
CardDelegateandCardVaultDelegate - Remove
approveOrder(request:)method that uses delegate callbacks - Remove
vault(vaultRequest:)method that uses delegate callbacks - Add
approveOrder(request:completion:(CardResult?, CoreSDKError?) -> Void)toCardClient - Add
vault(request:completion:(CardVaultResult?, CoreSDKError?) -> Void)toCardClient - Add
approveOrder(request:) async throws -> CardResult - Add
vault(vaultRequest:) async throws -> CardVaultResult
- Remove
- Replace delegate pattern with completion handlers and Swift concurrency
- PayPalNativePayments
- PayPalWebPayments
- Rename
PayPalWebCheckoutClientErrortoPayPalError - Add
.checkoutCanceledErrorandvaultCanceledErrortoPayPalError - Add public static functions
isCheckoutCanceled(Error)andisVaultCanceled(Error)toPayPalErrorto distinguish cancellation errors in PayPal flows. - Make
PayPalErrorpublic to expose cancellation error handling helpers
- Rename
- CardPayments
- Rename
CardClientErrortoCardError - Add
threeDSecureCanceledErrortoCardError - Add public static function
isThreeDSecureCanceled(Error)toCardErrorto distinguish cancellation error from threeDSecure verification - Make
CardErrorpublic to expose cancellation error handling helper
- Rename
1.5.0
- PayPalWebPayments
- Deprecate
PayPalVaultRequest(url:setupTokenID:) - Add
PayPalVaultRequest(setupTokenID:)
- Deprecate
- CorePayments
- Bug fix for live graphQL url
1.4.0
- PayPalNativePayments (DEPRECATED)
- Note: This module is deprecated and will be removed in a future version of the SDK
- Add deprecated warning message to all public classes and methods
1.3.2
- PaymentButtons
- Add black boundary around white buttons
1.3.1
- FraudProtection
- Include
DeviceIDprivacy term inPrivacyInfo.xcprivacyfile
- Include
1.3.0
1.2.0
- Bump to PPRiskMagnes v5.5.0 with code signing & a privacy manifest file
- Require Xcode 15.0+ and Swift 5.9+ (per App Store requirements)
- Meets Apple's new Privacy Update requirements
- PaymentButtons
- Add
customcase forPaymentButtonEdges - Support VoiceOver by adding button accessibility labels
- Fixed frame alignment and width issue occuring in SwiftUI
- Fixed button alignment and size bug in SwiftUI with
intrinsicContentSize- The height cannot be set smaller than 38px or width shorter than 300px
- Added analytics events
payment-button:initializedandpayment-button:tapped
- Add
- CardPayments
- Add
statusproperty toCardVaultResult - Add
didAttemptThreeDSecureAuthenticationproperty toCardVaultResult - Add
statusproperty toCardResult - Add
didAttemptThreeDSecureAuthenticationproperty toCardResult - Add
cardThreeDSecureDidCancel()toCardVaultDelegate - Add
cardThreeDSecureWillLaunch()toCardVaultDelegate - Add
cardThreeDSecureDidFinish()toCardVaultDelegate
- Add
- PayPalWebPayments
- Add
PayPalVaultRequesttype for interacting withvaultmethod - Add
vault(_:)method toPayPalWebCheckoutClient - Add
PayPalVaultResulttype to return vault result - Add
PayPalVaultDelegateto handle results from vault flow - Add
PayPalWebCheckoutClientError.paypalVaultResponseErrorfor missing or invalid response from vaulting
- Add