How to test paypal payment using braintree sandbox
<p>I am using braintree in my app for payment(Credit card &amp; Paypal). I am using custom UI. When click on pay by Paypal button, i am using the following code.</p>

<pre><code>    braintreeClient = BTAPIClient(authorization: tokenizationKey)!
    let payPalDriver = BTPayPalDriver(APIClient: braintreeClient)
    payPalDriver.viewControllerPresentingDelegate = self
    //payPalDriver.appSwitchDelegate = self // Optional

    // Specify the transaction amount here. "2.32" is used in this example.
    let request = BTPayPalRequest(amount: "2.32")
    request.currencyCode = "USD" // Optional; see BTPayPalRequest.h for more options

    payPalDriver.requestOneTimePayment(request) { (tokenizedPayPalAccount, error) in
        if let tokenizedPayPalAccount = tokenizedPayPalAccount {
            print("Got a nonce: \(tokenizedPayPalAccount.nonce)")

            // Access additional information

            // See BTPostalAddress.h for details

        } else if error != nil {
            // Handle error here...
        } else {
            // Buyer canceled payment approval
        }
    }
</code></pre>

<p>It opens this link <a href="https://checkout.paypal.com/one-touch-login-sandbox/index.html?action=setup_billing_agreement&amp;ba_token=BA-HERMES-SANDBOX-TOKEN&amp;cancel_url=com.pronto.btreeInteg.payments%3A%2F%2Fonetouch%2Fv1%2Fcancel&amp;controller=client_api%2Fpaypal_hermes&amp;experience_profile%5Baddress_override%5D=false&amp;experience_profile%5Bno_shipping%5D=1&amp;merchant_id=qkd2xjhc84nhd5b3&amp;return_url=com.pronto.btreeInteg.payments%3A%2F%2Fonetouch%2Fv1%2Fsuccess&amp;version=1" rel="nofollow noreferrer">https://checkout.paypal.com/one-touch-login-sandbox/index.html?action=setup_billing_agreement&amp;ba_token=BA-HERMES-SANDBOX-TOKEN&amp;cancel_url=com.pronto.btreeInteg.payments%3A%2F%2Fonetouch%2Fv1%2Fcancel&amp;controller=client_api%2Fpaypal_hermes&amp;experience_profile%5Baddress_override%5D=false&amp;experience_profile%5Bno_shipping%5D=1&amp;merchant_id=qkd2xjhc84nhd5b3&amp;return_url=com.pronto.btreeInteg.payments%3A%2F%2Fonetouch%2Fv1%2Fsuccess&amp;version=1</a> . It gives me dummy nonce. i want check with my Paypal a/c by login. Right now i am using Braintree sandbox a/c.</p>