BTConfiguration+LocalPayment.m 375 B

1234567891011121314
  1. #if __has_include(<Braintree/BraintreePaymentFlow.h>)
  2. #import <Braintree/BTConfiguration+LocalPayment.h>
  3. #else
  4. #import <BraintreePaymentFlow/BTConfiguration+LocalPayment.h>
  5. #endif
  6. @implementation BTConfiguration (LocalPayment)
  7. - (BOOL)isLocalPaymentEnabled {
  8. // Local Payments are enabled when PayPal is enabled
  9. return [self.json[@"paypalEnabled"] isTrue];
  10. }
  11. @end