Code Monkey home page Code Monkey logo

Comments (5)

mickeyreiss avatar mickeyreiss commented on August 25, 2024

This is not good. We certainly don't intend to throw an exception either. We will look into this and push out a fix ASAP!

For reference, are you certain that your Braintree merchant account is PayPal enabled? (You can find this in the control panel under processing.)

from braintree_ios.

mickeyreiss avatar mickeyreiss commented on August 25, 2024

Are you using CocoaPods for the integration? If not, make sure you have the appropriate complier flags set to allow for categories. BTClient btPayPal_isPayPalEnabled is defined in the PayPal category on BTClient.

from braintree_ios.

gileze33 avatar gileze33 commented on August 25, 2024

Hey Mickey,

Yep, using CocoaPods - good point, my Braintree account isn't Paypal enabled, I just wasn't expecting to see an exception because of it!

I'm just wondering if this is actually a symptom of this issue? #43

Cheers
Giles

from braintree_ios.

mickeyreiss avatar mickeyreiss commented on August 25, 2024

I'll look into the crashes related to PayPal not enabled tomorrow (today is a holiday). If you find any quick fixes for your exact use cases, please feel free to submit a PR. They should all be along the lines of:

(pseudocode)
if (!payPalEnabled) {
  don't do anything related to paypal payment methods
  return nil in place of BTPayPalButtons
}

from braintree_ios.

mickeyreiss avatar mickeyreiss commented on August 25, 2024

This should be addressed in holistically in our latest release (3.3.0).

Feel free to reopen if you continue experience btPayPal_isPayPalEnabled crashes.

from braintree_ios.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.