| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- #if __has_include(<Braintree/BraintreePayPal.h>)
- #import <Braintree/BTPayPalDriver.h>
- #else
- #import <BraintreePayPal/BTPayPalDriver.h>
- #endif
- #import <AuthenticationServices/AuthenticationServices.h>
- #import "BTPayPalRequest_Internal.h"
- @class BTPayPalCreditFinancing;
- @class BTPayPalCreditFinancingAmount;
- @class BTJSON;
- NS_ASSUME_NONNULL_BEGIN
- @interface BTPayPalDriver ()
- /**
- Exposed for testing the approvalURL construction
- */
- @property (nonatomic, strong) NSURL *approvalUrl;
- /**
- Exposed for testing to get the instance of BTAPIClient
- */
- @property (nonatomic, strong, nullable) BTAPIClient *apiClient;
- /**
- Exposed for testing the clientMetadataID associated with this request
- */
- @property (nonatomic, strong) NSString *clientMetadataID;
- /**
- Exposed for testing the intent associated with this request
- */
- @property (nonatomic, strong) BTPayPalRequest *payPalRequest;
- /**
- Exposed for testing, the ASWebAuthenticationSession instance used for the PayPal flow
- */
- @property (nonatomic, strong, nullable) ASWebAuthenticationSession *authenticationSession;
- /**
- Exposed for testing, for determining if ASWebAuthenticationSession was started
- */
- @property (nonatomic, assign) BOOL isAuthenticationSessionStarted;
- + (nullable BTPayPalCreditFinancingAmount *)creditFinancingAmountFromJSON:(BTJSON *)amountJSON;
- + (nullable BTPayPalCreditFinancing *)creditFinancingFromJSON:(BTJSON *)creditFinancingOfferedJSON;
- /**
- Exposed for testing the flow after the customer has authorized the payment in the browser
- */
- - (void)handleBrowserSwitchReturnURL:(NSURL *)url paymentType:(BTPayPalPaymentType)paymentType completion:(void (^)(BTPayPalAccountNonce * _Nullable tokenizedCheckout, NSError * _Nullable error))completionBlock;
- @end
- NS_ASSUME_NONNULL_END
|