pikaju / flutter-braintree

Flutter plugin that wraps the native Braintree SDKs. Enables payments with credit cards, PayPal, Google Pay and more.
https://pub.dev/packages/flutter_braintree
MIT License
64 stars 116 forks source link

PlatformException(braintree_error, Parsing error response failed, null, null) #72

Open Significantinfotech2020 opened 3 years ago

Significantinfotech2020 commented 3 years ago

I want implement paypal payment integration. But I got below error:

PlatformException(braintree_error, Parsing error response failed, null, null)

--> I used flutter_braintree: ^1.2.1 package version.

--> I also implemented below code in "AndroidManifest.xml" file

<activity android:name="com.braintreepayments.api.BraintreeBrowserSwitchActivity"
            android:launchMode="singleTask">
            <intent-filter>
                <action android:name="android.intent.action.VIEW" ></action>
                <category android:name="android.intent.category.DEFAULT" ></category>
                <category android:name="android.intent.category.BROWSABLE" ></category>
                <data android:scheme="${applicationId}.braintree" ></data>
            </intent-filter>
</activity>
<meta-data android:name="com.google.android.gms.wallet.api.enabled" android:value="true"/>

--> Also add below dependencies in (app:gradle)

    implementation 'org.jfrog.cardinalcommerce.gradle:cardinalmobilesdk:2.2.5-2'
    implementation 'com.braintreepayments.api:braintree:3.17.4'
    implementation 'com.braintreepayments.api:drop-in:5.2.0'
    implementation 'com.braintreepayments.api:three-d-secure:3.17.4'
    implementation 'io.card:android-sdk:5.5.1'

--> This is add in (project:gradle) file

repositories {
            maven {
                url "https://cardinalcommerceprod.jfrog.io/artifactory/android"
                credentials {
                    username 'braintree_team_sdk'
                    password 'AKCp8jQcoDy2hxSWhDAUQKXLDPDx6NYRkqrgFLRc3qDrayg6rrCbJpsKKyMwaykVL8FWusJpp'
                }
            }
}

So, please help me to solve out this issue.

hacmak18 commented 2 years ago

try with latest version of package.

AwaisQazii commented 1 year ago

my issue was fixed by setting amount properly