public static void approvePayment ( BraintreeFragment fragment , LocalPaymentRequest request ) { fragment . browserSwitch ( BraintreeRequestCodes . LOCAL_PAYMENT , request . getApprovalUrl ( ) ) ; fragment . sendAnalyticsEvent ( paymentTypeForAnalytics ( ) + ".local-payment.webswitch.initiate.succeeded" ) ; }
Initiates the browser switch for a payment flow by opening a browser where the customer can authenticate with their bank .