Android resource linking failed /Users/sample/AndroidStudioProjects/MyApp/app/build/intermediates/merged_manifests/debug/AndroidManifest.xml:18: error: unexpected element found in <manifest>
Manifest merger failed with multiple errors, see logs
Upon expanding the Merged Manifest view you would then see an additional error:
Error: Missing 'package' key attribute on element package
As UPI sdk is compiled on sdk version 29 with androidx support , it might happen that your app and SDK have common dependencies that lead to compile-time errors due to the duplicity of classes.In such cases, you need to define resolutionStrategy on your project/App's build.gradle. For more details, Gradle doc.1configurations.all {Copied!
Post Data can be generated by using
To make payment through PhonePe, you must have to add payu phonepe dependency.
GradleAdd below url in root project build.gradle:1allprojects {2repositories {3maven {4url "https://phonepe.mycloudrepo.io/public/repositories/phonepe-intentsdk-android"5}6}7}Copied!Add below dependency to project build.gradle
To make payment through Google Pay, you must have to add PayU Google Pay dependency.
GradleAdd below dependency to project build.gradle
To make payment through Samsung Pay, you must have to add payu samsung pay dependency.
GradleAdd below dependency to project build.gradle
Generate Postdata Using upi-sdk
Once you check the payment the availability of Payment, you could go ahead to make the payment.
Following are error messages w.r.t. Samsung Pay initialisation failure.1- Error Codes : Error messages23- 1 : VENDOR_NOT_SUPPORTED // Device Vendor is not supported4- 2 : DEVICE_NOT_SUPPORTED // Device is not supported5- 3 : APP_VERSION_MISMATCH // Samsung Pay version doesn't meet requirements6- 4 : COUNTRY_NOT_SUPPORTED // Country of device origin is not supported by Samsung Pay7- 5 : MERCHANT_KEY_NOT_REGISTER_FOR_SAMSUNG_PAY // Merchant is not registered for8Samsung Pay with PayU9- 6 : CONTEXT_NULL // Context is null10- 7 : PAYMENT_ID_NOT_PRESENT // Check your postdataCopied!In case below error is received while processing payment please check your Payment Post Data/ Payment hash1- code : 10022- errormsg : MERCHANT_INFO_NOT_PRESENT3- code : 10044- errormsg : INVOKING_APP_NOT_INSTALLED_CODE //Selected app is not installed on device.5- code : 10056- errormsg : INVOKING_APP_NOT_ONBOARDED_CODE //Uses has not onboarded on UPI on selected applicationCopied!
To make the payment, first you need to create UpiConfig and provide mandatory parameters, merchant key and postdata, that we described above.
In order to make Intent Payment by Specific UPI app kindly set the desired name of UPI app in upiConfig object as below.
You can disable the Manual VPA Fallback option from Generic Intent tray from backend as well as from frontend.In order to disable it from front end, set UpiConfig.TRUE to setDisableIntentSeamlessFailure flag of UpiConfig.
1upiConfig.setDisableIntentSeamlessFailure(UpiConfig.FALSE/UpiConfig.TRUE);Copied!
Provide the PayUUPICallback instance and Upiconfig object to Upi makepayment() method.