Flutter In App Payment v1.7.6 SCA not working

Flutter on Android in app payments was working on earlier square version. Updated to 1.7.6 and now payments work but not SCA verification. Verification popup does not appear and usageError is passed back. Payments without SCA work fine. Only tested in sandbox. Using cardEntryFlowWithBuyerVerification.
Tried to revert back to earlier versions 1.7.2 and 1.7.4 but gradle gives errors preventing this.

The latest version of In-App Payments according to our Release notes is 1.6.2 on Android. Where are you seeing 1.7.2/1.7.4? :slightly_smiling_face:

Ah, the Flutter version. Thank you. When you updated did you also update all the buyerVerificationVersion dependency to your module build.gradle file? :slightly_smiling_face:

Hi Bryan,
Sorry I am not clear on what you mean.

This is my android level build.gradle

buildscript {
ext.kotlin_version = ‘1.6.10’
repositories {
google()
mavenCentral()
}

dependencies {
    classpath 'com.android.tools.build:gradle:7.1.3'
    classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}

}

allprojects {
repositories {
google()
mavenCentral()
}
tasks.withType(JavaCompile) {
options.compilerArgs << “-Xlint:unchecked” << “-Xlint:deprecation”
}
}

ext {
sqipVersion = ‘1.7.4’
}

rootProject.buildDir = ‘…/build’
subprojects {
project.buildDir = “${rootProject.buildDir}/${project.name}”
}
subprojects {
project.evaluationDependsOn(‘:app’)
}

tasks.register(“clean”, Delete) {
delete rootProject.buildDir
}

Thanks Bryan,
That helped me realise the sqipVersion refers to Android SDK and that I can’t revert to Futter plugin version 1.7.4. I will have to stick with 1.7.6

I am now setting sqipVersion to 1.6.2

I have altered my app/build.gradle and android/build.gradle to almost the same as shown in

and

I am using
_onStartCardEntryFlowWithBuyerVerification()
the same as in

Normal payments work fine, SCA payments fail on BuyerValidation giving error code usageError.
instead of validation dialog. I am missing something.

Any suggestions would be appreciated.

debugMessage or error is:
No configuration was found for DS ID [SIMULATOR]. Please provide configuration for this DS. Error code: [1032]

What’s your app ID? :slightly_smiling_face:

AppID : sandbox-sq0idb-zGkjAvBSt8Y9wQE3olAYsA
Have downloaded repo to test and get same error.

Thanks, checking with the team. :slightly_smiling_face:

Is there any news regarding this?
I can recreate the error by : Downloading the in-app-payments-flutter-plugin from github. Setting the values for squareApplicationId and squareLocationId in config.dart. Commenting out _onStartCardEntryFlow() and replacing it with _onStartCardEntryFlowWithBuyerVerification() in function _showOrderSheet() in package buy_sheet.dart