Giter Site home page Giter Site logo

react-native-braintree-payments-drop-in's Introduction

react-native-braintree-payments-drop-in

React Native integration of Braintree Drop-in

Getting started

yarn add react-native-braintree-payments-drop-in

Mostly automatic installation

# Run this only if you are on RN < 0.60
react-native link react-native-braintree-payments-drop-in

iOS specific

You must have a iOS deployment target >= 9.0.

If you don't have a Podfile or are unsure on how to proceed, see the CocoaPods usage guide.

In your Podfile, add:

# uncomment the next line if you are on RN < 0.60
#pod 'BraintreeDropIn', '~> 6.0'

# uncomment the next line to support credit card scanning
# pod 'CardIO'

Then:

cd ios
bundle exec pod repo update # optional and can be very long
bundle exec pod install

Android specific

If you want to add card scanning, add in your app/build.gradle:

dependencies {
...
    implementation "io.card:android-sdk:5.+"

Configuration

For more configuration options, see Braintree's documentation (iOS | Android).

3D Secure

If you plan on using 3D Secure, you have to do the following.

iOS
Configure a new URL scheme

Add a bundle url scheme {BUNDLE_IDENTIFIER}.payments in your app Info via XCode or manually in the Info.plist. In your Info.plist, you should have something like:

<key>CFBundleURLTypes</key>
<array>
    <dict>
        <key>CFBundleTypeRole</key>
        <string>Editor</string>
        <key>CFBundleURLName</key>
        <string>com.myapp</string>
        <key>CFBundleURLSchemes</key>
        <array>
            <string>com.myapp.payments</string>
        </array>
    </dict>
</array>
Update your code

In your AppDelegate.m:

#import "BraintreeCore.h"

...
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
    ...
    [BTAppSwitch setReturnURLScheme:self.paymentsURLScheme];
}

- (BOOL)application:(UIApplication *)application
            openURL:(NSURL *)url
            options:(NSDictionary<UIApplicationOpenURLOptionsKey,id> *)options {

    if ([url.scheme localizedCaseInsensitiveCompare:self.paymentsURLScheme] == NSOrderedSame) {
        return [BTAppSwitch handleOpenURL:url options:options];
    }
    
    return [RCTLinkingManager application:application openURL:url options:options];
}

- (NSString *)paymentsURLScheme {
    NSString *bundleIdentifier = [[NSBundle mainBundle] bundleIdentifier];
    return [NSString stringWithFormat:@"%@.%@", bundleIdentifier, @"payments"];
}
Android

Setup browser switch.

Usage

For the API, see the Flow typings.

Basic

import BraintreeDropIn from 'react-native-braintree-payments-drop-in';

BraintreeDropIn.show({
  clientToken: 'token',
})
.then(result => console.log(result))
.catch((error) => {
  if (error.code === 'USER_CANCELLATION') {
    // update your UI to handle cancellation
  } else {
    // update your UI to handle other errors
  }
});

3D Secure

import BraintreeDropIn from 'react-native-braintree-payments-drop-in';

BraintreeDropIn.show({
  clientToken: 'token',
  threeDSecure: {
    amount: 1.0,
  },
})
.then(result => console.log(result))
.catch((error) => {
  if (error.code === 'USER_CANCELLATION') {
    // update your UI to handle cancellation
  } else {
    // update your UI to handle other errors
    // for 3D secure, there are two other specific error codes: 3DSECURE_NOT_ABLE_TO_SHIFT_LIABILITY and 3DSECURE_LIABILITY_NOT_SHIFTED
  }
});

react-native-braintree-payments-drop-in's People

Contributors

minishlink avatar mouselangelo avatar mspasov avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

react-native-braintree-payments-drop-in's Issues

Apple pay support

Unfortunately Braintree Drop In UI does not have Apple Pay flow support out of the box.
It requires to show Apple Pay controller and receive nonce manually.

Do you have plans to add apple pay support to your packages?

iOS 13 Font changes?

While the package works wonderfully in iOS 13. We've noticed the fonts are off between iOS 12 vs iOS 13. Has anyone noticed this?

Android - release build fails as org.jfrog.cardinalcommerce.gradle:cardinalmobilesdk.2.2.1-2 not found

image
I am getting org.jfrog.cardinalcommerce.gradle:cardinalmobilesdk.2.2.1-2 not found error when making the release mode for Android.

react-native info
System:
OS: macOS 10.15.1
CPU: (8) x64 Intel(R) Core(TM) i7-4770HQ CPU @ 2.20GHz
Memory: 5.98 GB / 16.00 GB
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 10.16.3 - /usr/local/bin/node
npm: 6.9.0 - /usr/local/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
SDKs:
iOS SDK:
Platforms: iOS 13.0, DriverKit 19.0, macOS 10.15, tvOS 13.0, watchOS 6.0
Android SDK:
API Levels: 22, 23, 25, 26, 27, 28, 29
Build Tools: 23.0.1, 25.0.0, 27.0.3, 28.0.2, 28.0.3, 29.0.0, 29.0.2
System Images: android-28 | Google APIs Intel x86 Atom, android-28 | Google Play Intel x86 Atom, android-29 | Google APIs Intel x86 Atom, android-29 | Google Play Intel x86 Atom
IDEs:
Android Studio: 3.5 AI-191.8026.42.35.5791312
Xcode: 11.0/11A420a - /usr/bin/xcodebuild
npmPackages:
react: 16.8.6 => 16.8.6
react-native: 0.60.6 => 0.60.6
npmGlobalPackages:
react-native-log-ios: 1.0.1
react-native: 0.60.5

braintree library version: 1.2.0
@Minishlink any idea how to fix this? It is working fine during debug mode and iOS release mode.

Problem with 3D Secure in Android

Hi,

I am trying to use react-native-braintree-payments-drop-in to pay with 3D Secure, following the instructions of the Readme. It works properly in iOS but fails in Android - always get:

3DSECURE_NOT_ABLE_TO_SHIFT_LIABILITY: [Error: 3D Secure liability cannot be shifted]

My versions are:

"react": "16.3.1",
"react-native": "0.55.4",
"react-native-braintree-payments-drop-in": "1.0.1"

I have configured the browser switch as the documentation says:

<activity android:name="com.braintreepayments.api.BraintreeBrowserSwitchActivity"
       android:launchMode="singleTask">
       <intent-filter>
           <action android:name="android.intent.action.VIEW" />
           <category android:name="android.intent.category.DEFAULT" />
           <category android:name="android.intent.category.BROWSABLE" />
           <data android:scheme="com.myapp.braintree" />
       </intent-filter>
     </activity>

This is how I am using it:

BraintreeDropIn.show({
        clientToken: token,
        threeDSecure: {
          amount: 0.99,
        },
      })
      .then(result => {
        console.log(result);
      })
      .catch((error) => {
        if (error.code === 'USER_CANCELLATION') {
          console.log('Cancelled by user: ', error);
        } else if (error.code === '3DSECURE_NOT_ABLE_TO_SHIFT_LIABILITY' || error.code === '3DSECURE_LIABILITY_NOT_SHIFTED'){
          console.log('Error with 3D Secure during payment ', error.code, ': ', error);
        } else {
          // update your UI to handle other errors
          console.log('Error during payment: ', error);
        }
      });

Also, I have tried including the ThreeDSecureWebViewActivity but I get the same error:

      <activity android:name="com.braintreepayments.api.threedsecure.ThreeDSecureWebViewActivity" ></activity>

Thanks

Fastlane build BraintreeDropIn uikit pods fail

Upgraded BraintreeDropIn Pods from 7.4.0 to 7.5.0 and fastlane build fails. All good when reverted back to 7.4.0

❌  /Users/vagrant/git/ios/Pods/BraintreeDropIn/BraintreeUIKit/Helpers/BTUIKAppearance.m:66:50: property 'systemBackgroundColor' not found on object of type 'UIColor'
        sharedTheme.barBackgroundColor = UIColor.systemBackgroundColor;
                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
❌  /Users/vagrant/git/ios/Pods/BraintreeDropIn/BraintreeUIKit/Helpers/BTUIKAppearance.m:67:51: property 'systemGroupedBackgroundColor' not found on object of type 'UIColor'
        sharedTheme.formBackgroundColor = UIColor.systemGroupedBackgroundColor;
                                                 ^
❌  /Users/vagrant/git/ios/Pods/BraintreeDropIn/BraintreeUIKit/Helpers/BTUIKAppearance.m:68:56: property 'secondarySystemGroupedBackgroundColor' not found on object of type 'UIColor'
        sharedTheme.formFieldBackgroundColor = UIColor.secondarySystemGroupedBackgroundColor;
                                                  ^
❌  /Users/vagrant/git/ios/Pods/BraintreeDropIn/BraintreeUIKit/Helpers/BTUIKAppearance.m:69:48: property 'labelColor' not found on object of type 'UIColor'
        sharedTheme.primaryTextColor = UIColor.labelColor;
                                                       ^
❌  /Users/vagrant/git/ios/Pods/BraintreeDropIn/BraintreeUIKit/Helpers/BTUIKAppearance.m:70:50: property 'secondaryLabelColor' not found on object of type 'UIColor'
        sharedTheme.secondaryTextColor = UIColor.secondaryLabelColor;
                                               ^
❌  /Users/vagrant/git/ios/Pods/BraintreeDropIn/BraintreeUIKit/Helpers/BTUIKAppearance.m:71:52: property 'placeholderTextColor' not found on object of type 'UIColor'
        sharedTheme.placeholderTextColor = UIColor.placeholderTextColor;
                                                 ^
❌  /Users/vagrant/git/ios/Pods/BraintreeDropIn/BraintreeUIKit/Helpers/BTUIKAppearance.m:72:41: property 'separatorColor' not found on object of type 'UIColor'
        sharedTheme.lineColor = UIColor.separatorColor;
                                                   ^
❌  /Users/vagrant/git/ios/Pods/BraintreeDropIn/BraintreeUIKit/Helpers/BTUIKAppearance.m:73:33: use of undeclared identifier 'UIBlurEffectStyleSystemMaterial'
        sharedTheme.blurStyle = UIBlurEffectStyleSystemMaterial;
                                        ^
❌  /Users/vagrant/git/ios/Pods/BraintreeDropIn/BraintreeUIKit/Helpers/BTUIKAppearance.m:74:50: use of undeclared identifier 'UIActivityIndicatorViewStyleMedium'; did you mean 'UIActivityIndicatorViewStyleWhite'?
        sharedTheme.activityIndicatorViewStyle = UIActivityIndicatorViewStyleMedium;
                                ^
❌  /Users/vagrant/git/ios/Pods/BraintreeDropIn/BraintreeUIKit/Helpers/BTUIKAppearance.m:77:41: property 'systemBlueColor' not found on object of type 'UIColor'
        sharedTheme.tintColor = UIColor.systemBlueColor;
    ^
❌  /Users/vagrant/git/ios/Pods/BraintreeDropIn/BraintreeUIKit/Helpers/BTUIKAppearance.m:78:45: property 'systemGrayColor' not found on object of type 'UIColor'
        sharedTheme.disabledColor = UIColor.systemGrayColor;
                                        ^
❌  /Users/vagrant/git/ios/Pods/BraintreeDropIn/BraintreeUIKit/Helpers/BTUIKAppearance.m:79:52: property 'systemRedColor' not found on object of type 'UIColor'
        sharedTheme.errorForegroundColor = UIColor.systemRedColor;
                                            ^
❌  /Users/vagrant/git/ios/Pods/BraintreeDropIn/BraintreeUIKit/Helpers/BTUIKAppearance.m:81:49: property 'systemGreenColor' not found on object of type 'UIColor'
        sharedTheme.switchOnTintColor = UIColor.systemGreenColor;

Application tried to open a nil modal view controller

I am trying to implement BraintreeDropIn in my react native app for both iOS and Android but when calling the method BraintreeDropIn.show with the token, etc. in react native I get the following error on the simulator:

Exception 'Application tried to open a nil modal view controller on target <UIViewController: 0x7fa8ece0a980>.' was thrown while invoking show on target RNBraintreeDropIn with params ...

Android - Manifest Merger failed - Attribute application@allowBackup value=(false) when running app

Manifest merger failed : Attribute application@allowBackup value=(false) from AndroidManifest.xml:13:7-34
[1] is also present at [org.jfrog.cardinalcommerce.gradle:cardinalmobilesdk:2.1.4-1] AndroidManifest.xml:14:9-35 value=(true).
[1] Suggestion: add 'tools:replace="android:allowBackup"' to element at AndroidManifest.xml:7:5-117 to override.

Can you please help me fix this issue?
I'm getting this when running the project with the lib installed. I have not setup 3DSecure as I don't need it currently.=

iOS 13 Dark Mode

I had an issue with a recent update, BraintreeDropIn version has gone to 7.5 which caused caused a build issue in the Xcode version I was on. I've since updated Xcode, however if you're using dark mode, then you can add the dynamic option to the RNBraintreeDropIn.m file, which will automatically pick up when the drop-in is displayed.

BTUIKAppearance.sharedInstance.colorScheme = BTUIKColorSchemeDynamic;

Happy to submit a PR...

error: linker command failed with exit code 1 (use -v to see invocation)

Hello, I have an issue:

Undefined symbols for architecture arm64:
"OBJC_CLASS$_BTThreeDSecureRequest", referenced from:
objc-class-ref in libBraintreeDropIn.a(BTCardFormViewController.o)
"OBJC_CLASS$_BTPaymentFlowDriver", referenced from:
objc-class-ref in libBraintreeDropIn.a(BTCardFormViewController.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

pod --version 1.4.0

Can you help ?

VaultManager in braintree is not working

hi, I want to let user to delete his saved payment cards I am using this package
"react-native-braintree-payments-drop-in": "^1.2.0",

BraintreeDropIn.show({
clientToken: this.state.clientToken,
vaultManager: true <-- i also add this but it is not showing me edit option
}).then(result => {

is there something i am missing

Get a Error when build project, any help ?

Did everything in the instruction, Below is error log when build project, please help! Thanks.

Undefined symbols for architecture x86_64:
"OBJC_CLASS$_BTPaymentFlowDriver", referenced from:
objc-class-ref in libBraintreeDropIn.a(BTCardFormViewController.o)
"OBJC_CLASS$_BTThreeDSecureRequest", referenced from:
objc-class-ref in libBraintreeDropIn.a(BTCardFormViewController.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

null is not an object on iOS

I'm trying to implement this using the basic flow as indicated in the README:
image

When I build and run, and click the button that calls the function paymentPanel, I get this error:
Screen Shot 2019-05-08 at 12 16 54 AM

I have no idea what the hell this issue is and I need to fix it asap. Thank you!

3DSECURE related questions

Hi,

  • Can you please help me understand how should I treat 3DSECURE_NOT_ABLE_TO_SHIFT_LIABILITY and 3DSECURE_LIABILITY_NOT_SHIFTED errors?

From this and this code I understand that some payment requests may fail only because I provide threeDSecureOptions.

  1. Does it mean I should NOT always ask for a payment to be 3DS in order to increase the successful payment rate?
  2. If so how do I know for which payments I can ask for 3DS and for which I should NOT?

Thanks.

PS.
Are there any plans to make this repository to consume the newest Android v3 SDK from Braintree in order to support 3DS 2.0?

BraintreeDropIn is undefined

Hello,
I've tried the basic example in my app.
With this in my component
import BraintreeDropIn from 'react-native-braintree-payments-drop-in';

And this

BraintreeDropIn.show({
      clientToken: token,
    })
    .then(result => console.log(result))
    .catch((error) => {
      if (error.code === 'USER_CANCELLATION') {
        // update your UI to handle cancellation
      } else {
        // update your UI to handle other errors
      }
    });

In iOS I've the error

Cannot read property 'show' of undefined

I've setup all my project like the readme explain, but I can't have the BraintreeDropIn class included, it's always undefined!!!
But the file are present in node_modules and the path are correct!

What am I doing wrong?!
Please help, I'm stuck too long on this :(

Thanks!

Build issue RN7 with 1.1.4 Android

Any suggestions?

`* What went wrong:
Execution failed for task ':app:checkDebugDuplicateClasses'.

A failure occurred while executing com.android.build.gradle.internal.tasks.CheckDuplicatesRunnable
Duplicate class com.braintreepayments.api.BuildConfig found in modules jetified-braintree-3.14.2-runtime (com.braintreepayments.api:braintree:3.14.2) and jetified-braintree-core-4.26.0-runtime (com.braintreepayments.api:braintree-core:4.26.0)
Duplicate class com.braintreepayments.api.Card found in modules jetified-braintree-3.14.2-runtime (com.braintreepayments.api:braintree:3.14.2) and jetified-card-4.26.0-runtime (com.braintreepayments.api:card:4.26.0)
Duplicate class com.braintreepayments.api.Card$1 found in modules jetified-braintree-3.14.2-runtime (com.braintreepayments.api:braintree:3.14.2) and jetified-card-4.26.0-runtime (com.braintreepayments.api:card:4.26.0)
Duplicate class com.braintreepayments.api.CrashReporter found in modules jetified-braintree-3.14.2-runtime (com.braintreepayments.api:braintree:3.14.2) and jetified-braintree-core-4.26.0-runtime (com.braintreepayments.api:braintree-core:4.26.0)
Duplicate class com.braintreepayments.api.DataCollector found in modules jetified-braintree-3.14.2-runtime (com.braintreepayments.api:braintree:3.14.2) and jetified-data-collector-4.26.0-runtime (com.braintreepayments.api:data-collector:4.26.0)
Duplicate class com.braintreepayments.api.DataCollector$1 found in modules jetified-braintree-3.14.2-runtime (com.braintreepayments.api:braintree:3.14.2) and jetified-data-collector-4.26.0-runtime
(com.braintreepayments.api:data-collector:4.26.0)
Duplicate class com.braintreepayments.api.DataCollector$1$1 found in modules jetified-braintree-3.14.2-runtime (com.braintreepayments.api:braintree:3.14.2) and jetified-data-collector-4.26.0-runtime (com.braintreepayments.api:data-collector:4.26.0)
Duplicate class com.braintreepayments.api.Json found in modules jetified-core-3.14.2-runtime (com.braintreepayments.api:core:3.14.2) and jetified-shared-utils-4.26.0-runtime (com.braintreepayments.api:shared-utils:4.26.0)
Duplicate class com.braintreepayments.api.PaymentMethod found in modules jetified-braintree-3.14.2-runtime (com.braintreepayments.api:braintree:3.14.2) and jetified-braintree-core-4.26.0-runtime (com.braintreepayments.api:braintree-core:4.26.0)
Duplicate class com.braintreepayments.api.ThreeDSecureActivity found in modules jetified-braintree-3.14.2-runtime (com.braintreepayments.api:braintree:3.14.2) and jetified-three-d-secure-4.26.0-runtime (com.braintreepayments.api:three-d-secure:4.26.0)
Duplicate class lib.android.paypal.com.magnessdk.Environment found in modules jetified-data-collector-3.14.2-runtime (com.paypal.android.sdk:data-collector:3.14.2) and jetified-paypal-data-collector-4.26.0-runtime (com.braintreepayments.api:paypal-data-collector:4.26.0)
Duplicate class lib.android.paypal.com.magnessdk.InvalidInputException found in modules jetified-data-collector-3.14.2-runtime (com.paypal.android.sdk:data-collector:3.14.2) and jetified-paypal-data-collector-4.26.0-runtime (com.braintreepayments.api:paypal-data-collector:4.26.0)
Duplicate class lib.android.paypal.com.magnessdk.MagnesResult found in modules jetified-data-collector-3.14.2-runtime (com.paypal.android.sdk:data-collector:3.14.2) and jetified-paypal-data-collector-4.26.0-runtime (com.braintreepayments.api:paypal-data-collector:4.26.0)
Duplicate class lib.android.paypal.com.magnessdk.MagnesSDK found in modules jetified-data-collector-3.14.2-runtime (com.paypal.android.sdk:data-collector:3.14.2) and jetified-paypal-data-collector-4.26.0-runtime (com.braintreepayments.api:paypal-data-collector:4.26.0)
Duplicate class lib.android.paypal.com.magnessdk.MagnesSettings found in modules jetified-data-collector-3.14.2-runtime (com.paypal.android.sdk:data-collector:3.14.2) and jetified-paypal-data-collector-4.26.0-runtime (com.braintreepayments.api:paypal-data-collector:4.26.0)
Duplicate class lib.android.paypal.com.magnessdk.MagnesSettings$Builder found in modules jetified-data-collector-3.14.2-runtime (com.paypal.android.sdk:data-collector:3.14.2) and jetified-paypal-data-collector-4.26.0-runtime (com.braintreepayments.api:paypal-data-collector:4.26.0)
Duplicate class lib.android.paypal.com.magnessdk.MagnesSource found in modules jetified-data-collector-3.14.2-runtime (com.paypal.android.sdk:data-collector:3.14.2) and jetified-paypal-data-collector-4.26.0-runtime (com.braintreepayments.api:paypal-data-collector:4.26.0)
Duplicate class lib.android.paypal.com.magnessdk.a found in modules jetified-data-collector-3.14.2-runtime (com.paypal.android.sdk:data-collector:3.14.2) and jetified-paypal-data-collector-4.26.0-runtime (com.braintreepayments.api:paypal-data-collector:4.26.0)
Duplicate class lib.android.paypal.com.magnessdk.b found in modules jetified-data-collector-3.14.2-runtime (com.paypal.android.sdk:data-collector:3.14.2) and jetified-paypal-data-collector-4.26.0-runtime (com.braintreepayments.api:paypal-data-collector:4.26.0)
Duplicate class lib.android.paypal.com.magnessdk.c found in modules jetified-data-collector-3.14.2-runtime (com.paypal.android.sdk:data-collector:3.14.2) and jetified-paypal-data-collector-4.26.0-runtime (com.braintreepayments.api:paypal-data-collector:4.26.0)
Duplicate class lib.android.paypal.com.magnessdk.c$a found in modules jetified-data-collector-3.14.2-runtime (com.paypal.android.sdk:data-collector:3.14.2) and jetified-paypal-data-collector-4.26.0-runtime (com.braintreepayments.api:paypal-data-collector:4.26.0)
Duplicate class lib.android.paypal.com.magnessdk.c$b found in modules jetified-data-collector-3.14.2-runtime (com.paypal.android.sdk:data-collector:3.14.2) and jetified-paypal-data-collector-4.26.0-runtime (com.braintreepayments.api:paypal-data-collector:4.26.0)
Duplicate class lib.android.paypal.com.magnessdk.c$c found in modules jetified-data-collector-3.14.2-runtime (com.paypal.android.sdk:data-collector:3.14.2) and jetified-paypal-data-collector-4.26.0-runtime (com.braintreepayments.api:paypal-data-collector:4.26.0)
Duplicate class lib.android.paypal.com.magnessdk.c$d found in modules jetified-data-collector-3.14.2-runtime (com.paypal.android.sdk:data-collector:3.14.2) and jetified-paypal-data-collector-4.26.0-runtime (com.braintreepayments.api:paypal-data-collector:4.26.0)
Duplicate class lib.android.paypal.com.magnessdk.c$e found in modules jetified-data-collector-3.14.2-runtime (com.paypal.android.sdk:data-collector:3.14.2) and jetified-paypal-data-collector-4.26.0-runtime (com.braintreepayments.api:paypal-data-collector:4.26.0)
Duplicate class lib.android.paypal.com.magnessdk.d found in modules jetified-data-collector-3.14.2-runtime (com.paypal.android.sdk:data-collector:3.14.2) and jetified-paypal-data-collector-4.26.0-runtime (com.braintreepayments.api:paypal-data-collector:4.26.0)
Duplicate class lib.android.paypal.com.magnessdk.e found in modules jetified-data-collector-3.14.2-runtime (com.paypal.android.sdk:data-collector:3.14.2) and jetified-paypal-data-collector-4.26.0-runtime (com.braintreepayments.api:paypal-data-collector:4.26.0)

 Go to the documentation to learn how to <a href="d.android.com/r/tools/classpath-sync-errors">Fix dependency resolution errors</a>.`

Execution failed for task ':react-native-braintree-payments-drop-in:verifyReleaseResources'.

Hello! So I am just trying to build my app for ios and android. The ios version has been released onto the App Store. However, whenever I run ./gradlew assembleRelease - the build processes for a few minutes before failing.

  • What went wrong:
    Execution failed for task ':react-native-braintree-payments-drop-in:verifyReleaseResources'.

com.android.ide.common.process.ProcessException: Failed to execute aapt

Some help with this would be hugely appreciated! Thanks.

Braintree and BraintreeDropIn Pods not available on the latest version.

When I upgrade to the latest version (1.2.0) the Braintree and BraintreeDropIn pods are not available. The RNBraintreeDropIn is automatically installed, but when I run the app with this setup the drop in UI is not triggered.
If I run the react-native link command, and run pod install, the podspec for the RNBraintreeDropIn pod is not found.

But if I downgrade to 1.0.1 and then install the Braintree and BraintreeDropIn pods, the library works as expected.
I am using react native 0.60.6.

@Minishlink Any idea what is wrong?

Crash the app in react native 0.59.4

I updated to the lastest version of react native and in IOS when I push the button that it uses this code crash the app and it closes. I tried with the versions 1.0.1 ( my previous version) and 1.0.4

In Android the same button go well.

Before to the update I used 0.55.4 version and in both SO went well.

I have the same problem

Hello @Minishlink I have the exact same problem as in #11 and can't find the solution.
I installed all properly, added the podfile and installed it and it is still not working.
It will be very helpful if you can help me.
thank you. :)

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.