mkharibalaji / react-native-adyen-payment Goto Github PK
View Code? Open in Web Editor NEWReact Native Adyen Payment
Home Page: https://mkharibalaji.github.io/react-native-adyen-payment/
License: MIT License
React Native Adyen Payment
Home Page: https://mkharibalaji.github.io/react-native-adyen-payment/
License: MIT License
hello,
we have a crash on Android Huawei devices.
On production, after validation on my banque application, my app crash.
the reason, I found on the ADB Logcat, that Huawei kill the main process.
After applying the pull request #7 manually to bypass the crash, I am seeing unexpected behaviour on Android.
When calling startPayment()
with onError
set, cancelling the payment by clicking off the overlay does not call the onError
listener. This is different from how it's behaving on iOS, where pressing Cancel
calls the listener with code = "ERROR_CANCELLED"
and error = "Transaction Cancelled"
.
Similarly, calling startPaymentPromise()
in this way:
(async () => {
try {
const response = await AdyenPayment.startPaymentPromise(AdyenPayment.SCHEME, componentData, paymentDetails);
console.log('Success', response);
} catch (e) {
console.log('Error', e);
}
})();
does not cause the catch block to be run. This is unexpected (though this is consistent with iOS, second issue incoming).
Hi there,
We've been busy with integrating Adyen using your project, however we are running into the following issue:
If we use the Adyen test server, everything works fine up until the screen where we confirm the payment. However, when the payment is completed using our own API the modal / overlay never closes. My guess is that this has something to do with how the returnUrl is handled, but I can't figure out what. We are currently sending the returnUrl to our own API the same way as we do to the test API and do not manipulate it in any way.
If we can get some pointers we can help with documenting this, as the documentation is lacking, also on Adyen's side.
Method used:
var paymentDetails = {
amount: {
value: 200,//In Multiples of hundred
currency: 'EUR'
},
reference: "XXXXXXXX",
shopperReference : "XXXXXX",
shopperEmail : "[email protected]",
channel: (Platform.OS === 'ios') ? "iOS" : "Android",
countryCode: "FR",
shopperLocale: "fr_FR",
returnUrl: (Platform.OS === 'ios') ? 'charlyapp://' : "adyencheckout://<packageName>",
merchantAccount: MERCHANT_ACCOUNT,
additionalData : {
allow3DS2 : true,
executeThreeD : true
}
};
Hi ! First - thanks for the library.
I try to use DROP-IN in my react native app. I have fallowing errors in these methods:
Credit Card - after submiting payment: SOLVED!!!!
{"status":422,"errorCode":"174","message":"Unable to decrypt data","errorType":"validation"}
Multibanco, MBWay - after clicking on payment in payments list, application crashes. But it seems that results of the requests to the server are correct. I saw these errors (short version):
MBWay:
{"resultCode":"Pending","action":{"paymentData":"ADdf02 ...... }
E/AndroidRuntime: FATAL EXCEPTION: main
com.adyen.checkout.core.exception.CheckoutException: Action type not found - await
Multibanco:
{"resultCode":"PresentToShopper","action":{"paymentMethodType":"multibanco" ... }
E/CO.ActionHandler: Unknown Action - voucher
E/AndroidRuntime: FATAL EXCEPTION: main
Caused by: java.lang.reflect.InvocationTargetException
Caused by: org.json.JSONException: Value UNKNOWN of type java.lang.String cannot be converted to JSONObject
Google Pay - after submitting payment :
Adyen Error : {"status":422,"errorCode":"14_004","message":"Missing payment method details","errorType":"validation"}
I see that App is making POST request with "googlePayToken", and official API docs shows: "paywithgoogle.token"
I use Android-Studio and react-native 0.61.5
Also on my android emulator - Adyen Payment starts with credit card method on default and only going back allow me to see whole list of my methods ;/
Thanks for help !
I am attempting to run the library on Android, but it is crashing with the following message:
android.util.AndroidRuntimeException: Calling startActivity() from outside of an Activity context requires the FLAG_ACTIVITY_NEW_TASK flag. Is this really what you want?
The full logcat/stacktrace is as follows:
D/OkHttp: --> POST https://checkout-test.adyen.com/checkout/V52/paymentMethods
D/OkHttp: Content-Type: application/json
Content-Length: 240
Accept: application/json
Accept-Charset: utf-8
x-api-key: [redacted]
{"additionalData":{},"allowedPaymentMethods":[],"amount":{"currency":"CAD","value":200},"blockedPaymentMethods":[],"channel":"Android","countryCode":"CA","merchantAccount":"[redacted]","shopperLocale":"en_CA","shopperReference":"XXXXXX"}
--> END POST (240-byte body)
D/OkHttp: <-- 200 OK https://checkout-test.adyen.com/checkout/V52/paymentMethods (683ms)
Date: Tue, 11 Feb 2020 03:52:45 GMT
D/OkHttp: Server: Apache
Set-Cookie: [redacted]
pspReference: [redacted]
Keep-Alive: timeout=15, max=100
Connection: Keep-Alive
Transfer-Encoding: chunked
Content-Type: application/json;charset=UTF-8
D/OkHttp: {"groups":[{"name":"Credit Card","types":["visa","mc"]}],"paymentMethods":[{"brands":["visa","mc"],"details":[{"key":"encryptedCardNumber","type":"cardToken"},{"key":"encryptedSecurityCode","type":"cardToken"},{"key":"encryptedExpiryMonth","type":"cardToken"},{"key":"encryptedExpiryYear","type":"cardToken"},{"key":"holderName","optional":true,"type":"text"}],"name":"Credit Card","type":"scheme"}]}
D/OkHttp: <-- END HTTP (400-byte body)
I/AdyenPaymentModule: com.adyen.checkout.base.model.paymentmethods.PaymentMethod@739432e
D/CO.AdyenComponent: Init
D/CO.AdyenComponent: Updating supported cards to - [VISA, MASTERCARD]
D/AndroidRuntime: Shutting down VM
E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.happy_goat_mobile, PID: 25873
android.util.AndroidRuntimeException: Calling startActivity() from outside of an Activity context requires the FLAG_ACTIVITY_NEW_TASK flag. Is this really what you want?
at android.app.ContextImpl.startActivity(ContextImpl.java:952)
at android.app.ContextImpl.startActivity(ContextImpl.java:928)
at android.content.ContextWrapper.startActivity(ContextWrapper.java:383)
at android.content.ContextWrapper.startActivity(ContextWrapper.java:383)
at com.rnlib.adyen.AdyenComponent$Companion.startPayment(AdyenComponent.kt:70)
at com.rnlib.adyen.AdyenPaymentModule.showCardComponent(AdyenPaymentModule.kt:360)
at com.rnlib.adyen.AdyenPaymentModule.access$showCardComponent(AdyenPaymentModule.kt:73)
at com.rnlib.adyen.AdyenPaymentModule$showPayment$1.onResponse(AdyenPaymentModule.kt:205)
at retrofit2.DefaultCallAdapterFactory$ExecutorCallbackCall$1$1.run(DefaultCallAdapterFactory.java:83)
at android.os.Handler.handleCallback(Handler.java:883)
at android.os.Handler.dispatchMessage(Handler.java:100)
at android.os.Looper.loop(Looper.java:214)
at android.app.ActivityThread.main(ActivityThread.java:7356)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:930)
I/Process: Sending signal. PID: 25873 SIG: 9
Process 25873 terminated.
Am I calling something wrong, or is this a bug, as it seems?
This answer seems to suggest it could be fixed with a simple extra line before startActivity()
is called. I don't mind doing a pull request if this is the solution.
After confirming the payment, a web request is made which returns a success code and the pspReference
, among other things. However, there is an optional field called additionalData
, which is only set if setup on the Adyen dashboard via Account > API URLs > Additional data settings
. Both the Android and iOS code assume that the field is there, and will crash if it is not.
This is either a code change issue, or a documentation issue if there is a reason the field is read.
One can recreate the crash by unchecking all boxes in the Additional data settings
mentioned above, then making a payment.
I hope to have more details when I get my project back in gear.
Hello, i have a new error on 1.6.1
With American Express card : i enter a 3 digits CVC code, and get an error on XCode.
The probleme is the composant stay stuck on a loading state
here the screensot and the error
{
"status" : 422,
"errorCode" : "103",
"message" : "CVC is not the right length",
"pspReference" : "881615852473481F",
"errorType" : "validation"
}
I was reading the documentation and saw in the example that we pass a baseUrl param. I wonder if this is something set on the Adyen Dashboard or if this is for our own API. If it's with our own API would it work with a GraphQL api and how if we don't have paths just queries?
Thank you!
Hi,
I try since 2 days to add apple pay to my application
Here what i did,
const computeComponentData = {
...
applepay: {
apple_pay_merchant_id: 'xxx',
},
}
return AdyenPayment.startPaymentPromise(
paymentMethod: AdyenPayment.APPLE_PAY,
computeComponentData(),
computePaymentDetails({
amount,
shopperEmail,
shopperReference,
})
);
my proxy recieve strange information
{
"amount": {
"value": 1500,
"currency": "EUR"
},
"channel": "iOS",
"storePaymentMethod": false,
"reference": "xxx",
"shopperReference": "xxx",
"shopperEmail": "[email protected]",
"returnUrl": "fr.xxxx.ios.preprod:\/\/",
"countryCode": "FR",
"paymentMethod": {
"applePayCardNetwork": "Visa",
"applepay.token": "", <===
"type": "applepay"
},
"shopperLocale": "fr_FR",
"additionalData": {
"allow3DS2": true,
"executeThreeD": true
},
"merchantAccount": "FR_ZEturf-ZEbet"
}
on adyen v51 api's documentation, "applepay.token" variable should be "applePayToken" and of course, the value shouldnt be empty
In Android, when the app tries to call the function to get payment methods . after the response returns:
{
groups: [
{ name: "Credit Card", types: ["visa", "mc", "amex", "jcb"] },
],
paymentMethods: [
{
brands: ["visa", "mc", "amex", "jcb"],
details: [
{ key: "encryptedCardNumber", type: "cardToken" },
{ key: "encryptedSecurityCode", type: "cardToken" },
{ key: "encryptedExpiryMonth", type: "cardToken" },
{ key: "encryptedExpiryYear", type: "cardToken" },
{ key: "holderName", optional: true, type: "text" },
],
name: "Credit Card",
type: "scheme"
},
{ name: "UnionPay", supportsRecurring: true, type: "unionpay" }
]
}
the Android app crashed with this error:
java.lang.IndexOutOfBoundsException: Index: 1, Size: 1
at java.util.Collections$SingletonList.get(Collections.java:4863)
at com.rnlib.adyen.AdyenPaymentModule.showDropInComponent(AdyenPaymentModule.kt:407)
at com.rnlib.adyen.AdyenPaymentModule.access$showDropInComponent(AdyenPaymentModule.kt:73)
at com.rnlib.adyen.AdyenPaymentModule$showPayment$1.onResponse(AdyenPaymentModule.kt:227)
at retrofit2.DefaultCallAdapterFactory$ExecutorCallbackCall$1$1.run(DefaultCallAdapterFactory.java:83)
at android.os.Handler.handleCallback(Handler.java:873)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:193)
at android.app.ActivityThread.main(ActivityThread.java:6669)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
Hi! First of all thanks for your work in building this library!
We're just in the first steps of integrating adyen and have a working version for the web so far. We wanted to integrate this now also in our apps, but I'm not sure whether this library supports tokenization of cards in order to be used at a later point.
In specific, we're tokenizing the cards in our server with the following config in the /payments
call towards Adyen:
{
amount: { currency: "EUR", value: 0 },
paymentMethod: paymentMethod, // this contains the encrypted payment method data from the FE
reference: "tokenize-" + Date.now(),
recurringProcessingModel: "UnscheduledCardOnFile",
storePaymentMethod: true,
shopperReference: accountId,
merchantAccount: merchantAccount,
returnUrl: "https://dummy.url", // Dummy URL. Needs to be adapted for the app (see JSDoc of the property).
}
The above call is exposed from our server on a custom POST /api/methods/tokenize
endpoint and called in the onSubmit
handler of the web adyen drop in.
Is it possible to realize the tokenization with this library? Sorry if my question is off. Please just let me know if this is the case. As said I'm pretty new and just getting into the whole topic. Thanks big times ๐งธ
I get this error when trying to compile my app after upgrading from RN 0.64.2 to RN 0.65.1:
Task :react-native-adyen-payment:compileDebugKotlin FAILED
e: /.../main/app/node_modules/react-native-adyen-payment/android/src/main/java/com/rnlib/adyen/AdyenPaymentModule.kt: (240, 32): Type mismatch: inferred type is String? but String was expected
e: /.../main/app/node_modules/react-native-adyen-payment/android/src/main/java/com/rnlib/adyen/AdyenPaymentModule.kt: (521, 23): Type mismatch: inferred type is String? but String was expected
e: /.../main/app/node_modules/react-native-adyen-payment/android/src/main/java/com/rnlib/adyen/service/ComponentService.kt: (95, 33): Type mismatch: inferred type is PaymentComponentData<CapturedType(in PaymentMethodDetails)>? but PaymentComponentData<in PaymentMethodDetails> was expected
e: /.../main/app/node_modules/react-native-adyen-payment/android/src/main/java/com/rnlib/adyen/ui/AdyenComponentActivity.kt: (107, 38): Type mismatch: inferred type is CallResult? but CallResult was expected
e: /.../main/app/node_modules/react-native-adyen-payment/android/src/main/java/com/rnlib/adyen/ui/AdyenComponentActivity.kt: (169, 39): Type mismatch: inferred type is AdyenComponentConfiguration? but AdyenComponentConfiguration was expected
e: /.../main/app/node_modules/react-native-adyen-payment/android/src/main/java/com/rnlib/adyen/ui/AdyenComponentActivity.kt: (169, 46): Type mismatch: inferred type is AdyenComponentConfiguration? but AdyenComponentConfiguration was expected
e: /.../main/app/node_modules/react-native-adyen-payment/android/src/main/java/com/rnlib/adyen/ui/AdyenComponentActivity.kt: (173, 61): Type mismatch: inferred type is PaymentMethodsApiResponse? but PaymentMethodsApiResponse was expected
e: /.../main/app/node_modules/react-native-adyen-payment/android/src/main/java/com/rnlib/adyen/ui/AdyenComponentActivity.kt: (173, 68): Type mismatch: inferred type is PaymentMethodsApiResponse? but PaymentMethodsApiResponse was expected
e: /.../main/app/node_modules/react-native-adyen-payment/android/src/main/java/com/rnlib/adyen/ui/AdyenComponentActivity.kt: (197, 16): Type mismatch: inferred type is Intent? but Intent was expected
I tried several versions of Gradle and I also tried to put the following instruction in build.gradle, using the plugin kotlin-android:
kotlinOptions {
freeCompilerArgs += [
'-Xno-call-assertions',
'-Xno-receiver-assertions',
'-Xno-param-assertions'
]
}
Hi!
We are experiencing an amount of "Payment has error"-issues with this library and we can't see any transaction being created on Adyen. This happens to some users and not all the time.
Desired feature: Getting the error message returned to be able to identify exactly what went wrong.
2020-11-27 16:14:25.809 20341-20341/com.projectId E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.projectId, PID: 20341
java.lang.IndexOutOfBoundsException: Index: 1, Size: 1
at java.util.Collections$SingletonList.get(Collections.java:4863)
at com.rnlib.adyen.AdyenPaymentModule.createConfigurationBuilder(AdyenPaymentModule.kt:264)
at com.rnlib.adyen.AdyenPaymentModule.showCardComponent(AdyenPaymentModule.kt:370)
at com.rnlib.adyen.AdyenPaymentModule.access$showCardComponent(AdyenPaymentModule.kt:73)
at com.rnlib.adyen.AdyenPaymentModule$showPayment$1.onResponse(AdyenPaymentModule.kt:205)
at retrofit2.DefaultCallAdapterFactory$ExecutorCallbackCall$1$1.run(DefaultCallAdapterFactory.java:83)
at android.os.Handler.handleCallback(Handler.java:873)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:193)
at android.app.ActivityThread.main(ActivityThread.java:6669)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
--------- beginning of system
Hi, I am getting an infinite loader when getting a 3DS2 payment response on Android. Did someone experience the same issue?
I checked out the older issue for 3D Secure (1), no problem on my side, only the V2... for all the cards : https://docs.adyen.com/development-resources/test-cards/test-card-numbers#test-3d-secure-2-authentication
From the logcat, it stucks on "D/CO.Adyen3DS2Component: initialize 3DS2 SDK"
RN : ~0.63.3
react-native-adyen-payment: 1.6.0
In any case, thanks for the job !
Is there any plan to update for adyen-android 4.0.0 soon?
Hi!
Is there a reason the react peer dependency is specified at ^16? If not, I think it would be a good idea to make it allow 17.x as well.
The example app is not working on iOS
Steps to reproduce it:
cd example
yarn
yarn react-native run-ios
The build fails with this output
System:
OS: macOS 11.1
CPU: (8) arm64 Apple M1
Memory: 282.81 MB / 16.00 GB
Shell: 5.8 - /bin/zsh
Binaries:
Node: 15.7.0 - /opt/homebrew/bin/node
Yarn: 1.22.10 - /opt/homebrew/bin/yarn
npm: 7.4.3 - /opt/homebrew/bin/npm
Watchman: Not Found
Managers:
CocoaPods: 1.10.1 - /usr/local/bin/pod
SDKs:
iOS SDK:
Platforms: iOS 14.4, DriverKit 20.2, macOS 11.1, tvOS 14.3, watchOS 7.2
Android SDK:
API Levels: 28, 29, 30
Build Tools: 28.0.3, 29.0.2, 29.0.3, 30.0.3
System Images: android-29 | Intel x86 Atom_64, android-29 | Google APIs Intel x86 Atom, android-30 | Google APIs Intel x86 Atom
Android NDK: Not Found
IDEs:
Android Studio: 4.1 AI-201.8743.12.41.7042882
Xcode: 12.4/12D4e - /usr/bin/xcodebuild
Languages:
Java: 1.8.0_282 - /usr/bin/javac
Python: 2.7.16 - /usr/bin/python
npmPackages:
@react-native-community/cli: Not Found
react: Not Found
react-native: Not Found
react-native-macos: Not Found
npmGlobalPackages:
*react-native*: Not Found
I have make it work in iOS . However, when running on Andoird:
AdyenPayment.onError
is not firing./paymentMethods
in my server. then the drop-in hides .AdyenPayment.onSuccess
or AdyenPayment.onError
./payments
apiI am using
"react": "16.9.0",
"react-native": "0.61.5",
"react-native-adyen-payment": "^1.3.2",
so I didn't do manual linking but use react-native 's auto linking.
Any idea about this bug ?
hello I followed the documentation but i have an error send by the adyen backend with an android phone only
{"status":400,"errorCode":"702","message":"Field \u0027additionalData\u0027 expected to be a Structure but is an Array","errorType":"validation"}
I compare the Payload send from ios and android and found a difference
on android
{
"additionalData": {},
"allowedPaymentMethods": [],
"amount": {
"currency": "EUR",
"value": 1500
},
"blockedPaymentMethods": [],
"channel": "Android",
"countryCode": "FR",
"merchantAccount": "XXXXX",
"shopperLocale": "fr-FR",
"shopperReference": "XXXX"
}
on ios
{
"countryCode": "FR",
"shopperReference": "XXX",
"merchantAccount": "XXXX",
"amount": {
"value": 1500,
"currency": "EUR"
},
"shopperLocale": "fr_FR",
"channel": "iOS"
}
the Logic seems different between the ios / android
on Ios AdyenPayment.swift:58
if(additionalData != nil){
let allow3DS2 : Bool = (additionalData?["allow3DS2"] != nil) ? additionalData?["allow3DS2"] as! Bool : false
let executeThreeD : Bool = (additionalData?["executeThreeD"] != nil) ? additionalData?["executeThreeD"] as! Bool : false
PaymentsData.additionalData = ["allow3DS2": allow3DS2,"executeThreeD":executeThreeD]
}
on Android
val addt_data_obj : JSONObject = if(detailsResponse.has("additionalData")) detailsResponse.getJSONObject("additionalData") else JSONObject()
message.put("resultCode", detailsResponse.getString("resultCode"))
message.put("merchantReference", detailsResponse.getString("merchantReference"))
message.put("pspReference", detailsResponse.getString("pspReference"))
message.put("additionalData", addt_data_obj)
on android the additionalData is not inside a condition.
here my javascript
paymentDetail = {
amount: {
value: amount, //In Multiples of hundred
currency: 'EUR',
},
reference: 'FakeRef',
shopperReference: 'xxx',
shopperEmail: 'xxx',
channel: Platform.OS === 'ios' ? 'iOS' : 'Android',
countryCode: app.country.toUpperCase(),
shopperLocale: 'FR_fr',
merchantAccount: environment.ADYEN_MERCHANT_ACCOUNT,
returnUrl:
Platform.OS === 'ios'
? `${environment.PACKAGE_NAME.ios}://`
: `adyencheckout://${environment.PACKAGE_NAME.android}`,
additionalData: {
allow3DS2: true,
executeThreeD: true,
},
The additionalData variable is present here.
i have 2 questions.
Why additionalData is present on my configuration and not send to /paymentMethods on IOS devices
Why additionalData is empty on android ?
thanks
During testing around the behaviour noted in #8, I noted unexpected behaviour on iOS.
When calling startPayment()
with onError
set, cancelling the payment by pressing Cancel
calls the listener with code = "ERROR_CANCELLED"
and error = "Transaction Cancelled"
.
However, calling startPaymentPromise()
in this way:
(async () => {
try {
const response = await AdyenPayment.startPaymentPromise(AdyenPayment.SCHEME, componentData, paymentDetails);
console.log('Success', response);
} catch (e) {
console.log('Error', e);
}
})();
does not cause the catch block to be run. This is unexpected, as I would expect console.log('Error', e)
to output something like:
Error { "code": "ERROR_CANCELLED", "error": "Transaction Cancelled" }
Hi, I hopefully have a quick question on how to build the Xcode project for AdyenPayment, this is due to the fact that a project I am working on might need to update the Adyen iOS/Android SDK versions due to https://docs.adyen.com/online-payments/visa-root-certificate-update
Note this is not an integration question of getting this SDK to work with a React Native project, but more so how to contribute to this project for iOS.
Specifically when opening https://github.com/mkharibalaji/react-native-adyen-payment/tree/master/ios/AdyenPayment.xcworkspace running a clean/build command I see the following errors
I am assuming this is a dependency issue, where this project is not getting Adyen linked, I am not sure if I need to add a pod file (seems like I shouldn't since this is the library, also there is already a podspec file)
Any direction or guidance on this would be appreciated.
Hi!
After running :
pod install
I get an error like this.
[!] CocoaPods could not find compatible versions for pod "react-native-adyen-payment":
In Podfile:
react-native-adyen-payment (from ../node_modules/react-native-adyen-payment
)
Specs satisfying the react-native-adyen-payment (from
../node_modules/react-native-adyen-payment)
dependency were found, but they required a higher minimum deployment target.
Please help me!! I try to follow this steps but not working
"react-native": "0.61.4" , platform :ios, '9.0'
this configuration didn't hide the stored button
bcmc: {
card_public_key: environment.ADYEN_CARD_PUBLIC_KEY,
showsStorePaymentMethodField: false,
},
i create a fix, I simply add a line
https://github.com/mickadoua/react-native-adyen-payment/blob/f5e6de68ad922a47e37cd42413b91c85c1581451/ios/AdyenPayment.swift#L129
I can create a PR with that fix
Could you please explain, why your lib. required ios min version 11 ?
If ios SDK required IOS 10+
https://github.com/Adyen/adyen-ios/blob/develop/Adyen.podspec#L14
First, thank for the effort you have put into this package.
May I ask you to provide an example on how to create a token for reoccurring payments with Apple or Google Pay?
@mkharibalaji Hi, when there is action in response, it should handle 3d secure authorization, but in app I can see only loader on button. Did you encounter this behaviour?
cannot link lib by invoking npx react-native link react-native-adyen-payment
warn Calling react-native link [packageName] is deprecated in favor of autolinking. It will be removed in the next major release.
Autolinking documentation: https://github.com/react-native-community/cli/blob/master/docs/autolinking.md
info iOS module "react-native-adyen-payment" is already linked
info Linking "react-native-adyen-payment" Android dependency
error Linking "react-native-adyen-payment" failed.
Error: ENOENT: no such file or directory, open '/Users/PhilLui/Documents/poc/rn_ts_testcase/android/app/src/main/java/com/rn_ts_testcase/MainApplication.java'
at Object.openSync (node:fs:585:3)
at Object.readFileSync (node:fs:453:35)
at applyPatch (/Users/PhilLui/Documents/poc/rn_ts_testcase/node_modules/@react-native-community/cli-platform-android/build/link/patches/applyPatch.js:42:51)
at Object.registerNativeAndroidModule [as register] (/Users/PhilLui/Documents/poc/rn_ts_testcase/node_modules/@react-native-community/cli-platform-android/build/link/registerNativeModule.js:34:27)
at /Users/PhilLui/Documents/poc/rn_ts_testcase/node_modules/@react-native-community/cli/build/commands/link/linkDependency.js:63:16
at Array.forEach (<anonymous>)
at linkDependency (/Users/PhilLui/Documents/poc/rn_ts_testcase/node_modules/@react-native-community/cli/build/commands/link/linkDependency.js:36:32)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async Object.link [as func] (/Users/PhilLui/Documents/poc/rn_ts_testcase/node_modules/@react-native-community/cli/build/commands/link/link.js:110:5)
at async Command.handleAction (/Users/PhilLui/Documents/poc/rn_ts_testcase/node_modules/@react-native-community/cli/build/index.js:192:9)
info Run CLI with --verbose flag for more details.
{
"dependencies": {
"@react-native-async-storage/async-storage": "^1.15.14",
"ramda": "^0.27.1",
"react": "17.0.2",
"react-native": "0.66.3",
"react-native-uuid": "^2.0.1"
},
"devDependencies": {
"@babel/core": "^7.12.9",
"@babel/runtime": "^7.12.5",
"@react-native-community/eslint-config": "^2.0.0",
"@testing-library/jest-native": "^4.0.4",
"@testing-library/react-native": "^9.0.0",
"@types/jest": "^26.0.23",
"@types/ramda": "types/npm-ramda#dist",
"@types/react-native": "^0.66.4",
"@types/react-test-renderer": "^17.0.1",
"babel-jest": "^26.6.3",
"eslint": "^7.14.0",
"jest": "^27.4.0",
"jest-fetch-mock": "^3.0.3",
"metro-react-native-babel-preset": "^0.66.2",
"react-dom": "^17.0.2",
"react-native-adyen-payment": "^1.8.3",
"react-test-renderer": "17.0.2",
"ts-jest": "^27.0.7",
"typescript": "^4.4.4"
}
}
Hello, this plugin works like a charm, thank you for making it.
According to Adyen documentation : https://docs.adyen.com/online-payments/3d-secure/native-3ds2/api-integration
we need to send the shopperIP parameter to accept 3DS2 transactions. Actually, it works fine without this parameter but it may be required soon ? Unfortunatly, I don't have enough skills to make a PR about this...
Is there any configuration for showing cardHolder name and Billing address UI in card payment??
Hello,
I copied exact code from documentation to my component.
import AdyenPayment from 'react-native-adyen-payment';
const DEMO_SERVER_API_KEY ="Your Demo Server Key";
const CARD_PUBLIC_KEY = "Your Public Card Key";
const MERCHANT_ACCOUNT = 'Your Merchant Account';
class App extends Component<Props> {
constructor(props) {
super(props);
this.state = {
isLoading : false,
adyen_payment_status : 'initiated'
};
/*
The base URL should be your API server running with the following POST endpoints
- /paymentMethods
- /payments
- /payments/details
Ex :
Base URL : https://XXXXXX.com/payments/adyen
https://XXXXXX.com/payments/adyen/paymentMethods
https://XXXXXX.com/payments/adyen/payments
https://XXXXXX.com/payments/adyen/payments/details
Any Extra Header Parameters to be passed can be given in the "additional_http_headers"
As an example we are using Adyens Demo Server Base URL
*/
var appServiceConfigData = {
"environment" : "test",
"base_url": "https://checkoutshopper-test.adyen.com/checkoutshopper/demoserver/",
"additional_http_headers" : {
"x-demo-server-api-key": DEMO_SERVER_API_KEY
}
};
AdyenPayment.initialize(appServiceConfigData);
AdyenPayment.onSuccess((payload) => {
this.setState({adyen_payment_status: 'success'});
console.log(payload);
});
AdyenPayment.onError((code, error) => {
console.log("Adyen Error : ",error);
this.setState({adyen_payment_status: 'failure'});
});
}
onClickPayment = () =>
{
var paymentDetails = {
amount: {
value: 200,//In Multiples of hundred
currency: 'EUR'
},
reference: "XXXXXXXX",
shopperReference : "XXXXXX",
shopperEmail : "[email protected]",
channel: (Platform.OS === 'ios') ? "iOS" : "Android",
countryCode: "FR",
shopperLocale: "fr_FR",
returnUrl: (Platform.OS === 'ios') ? '<YourAppDisplayName>-app://' : "adyencheckout://<packageName>",
merchantAccount: MERCHANT_ACCOUNT,
additionalData : {
allow3DS2 : true,
executeThreeD : true
}
};
// Data for various Components
var componentData = {
"scheme" : {
"card_public_key" : CARD_PUBLIC_KEY
},
"applepay" : {
"apple_pay_merchant_id" : "Your Apple Merchant ID"
},
"bcmc":{
"card_public_key" : CARD_PUBLIC_KEY
}
}
try{
// The Following Payment Methods are supported
//DROPIN,IDEAL,MOLPAY_MALAYSIA,MOLPAY_THAILAND,MOLPAY_VIETNAM,DOTPAY,EPS,ENTERCASH,OPEN_BANKING,
//SCHEME,GOOGLE_PAY,SEPA,BCMC,WECHAT_PAY_SDK,APPLE_PAY,
AdyenPayment.startPayment(AdyenPayment.DROPIN,componentData,paymentDetails)
}catch(err){
console.log(err.message);
}
}
render() {
return (
<View style={styles.container}>
<Button label={"Pay"} onPress={() => {this.onClickPayment();}}/>
</View>
)
}
But the payment methods are not showing, only the pay button is visible. What should I do in order for payment methods to show-up (specifically credit card fields)? How are they mounted?
Is there any way to debug AdyenPayment.initialize(appServiceConfigData);
?
Thanks
I've set up the integration of this library according to the steps described here: https://mkharibalaji.github.io/react-native-adyen-payment/#/INSTALLATION?id=ios
As a result, I am able to pay in the app using credit cards and iDEAL, but I have trouble getting Apple Pay to work properly. At the moment I can make a successful payment (such that it shows in the Adyen transaction overview and is administered correctly by our backend), but the app freezes completely after the Apple Pay dialog closes. After that you are required to force-close the app to get it to respond again.
Note: my experience in iOS development is very limited, so investigating the issue is a bit hard
{
"pspReference": ".....",
"resultCode": "Authorized",
"amount": {
"currency": "EUR",
"value": 700
},
"merchantReference": "..."
}
var appServiceConfigData = {
environment: 'test',
base_url: paymentDetails?.baseUrl,
// additional_http_headers: {
// 'x-demo-server-api-key': DEMO_SERVER_API_KEY,
// },
};
AdyenPayment.initialize(appServiceConfigData);
In the above code to initialize the app I can't seem to remove or comment out additional_http_headers
. Is that a necessary to initialize ? because I am getting this error
{
"merchantName": "Someone",
"apiKey": "awofjaowiejfaoijewfawejfoawjefaojwefoaijwefoiajwoefiajweoifjaoeiwjfoaijewfoijwefawofejaowefj/awefoijawef",
"originKey": "apofekwfe",
"liveUrlPrefix": "",
"allowSaveCards": true,
"testMode": true,
"amountValue": 6910,
"currency": "SGD",
"cssUrl": "https://checkoutshopper-test.adyen.com/checkoutshopper/sdk/3.6.3/adyen.css",
"javascriptUrl": "https://checkoutshopper-test.adyen.com/checkoutshopper/sdk/3.6.3/adyen.js",
"paymentMethodsResponse": null,
"checkOutEndPointUrl": "https://checkout-test.adyen.com/v52/paymentMethods",
"environment": "Test",
"baseUrl": "https://abc.com/Default.aspx?ID=33&CheckoutHandlerOrderID=CART1593&redirect=false",
"submitUrl": "https://abc.com/Default.aspx?ID=33&CheckoutHandlerOrderID=CART1593&redirect=false&Action=SelectMethod",
"additionalUrl": "https://abc.com/Default.aspx?ID=33&CheckoutHandlerOrderID=CART1593&redirect=false&Action=SelectMethod",
"shopperReference": 0,
"referenceId": "CART1593",
"paymentMethodId": "PAY1",
"name": "Adyen"
}
These are the parameter given to me to test the api.
Any help would be really appreciated.Because I am stuck here for 3 days
Hi,
I am following error while running it on Android:
Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
Could not find com.tencent.mm.opensdk:wechat-sdk-android-without-mta:5.1.6.
Required by:
project :app > project :react-native-adyen-payment > com.adyen.checkout:drop-in:3.6.4 > com.adyen.checkout:wechatpay-base:3.6.4
Could not find io.michaelrocks:paranoid-core:0.2.4.
Required by:
project :app > project :react-native-adyen-payment > com.adyen.checkout:drop-in:3.6.4 > com.adyen.checkout:3ds2:3.6.4 > com.adyen.threeds:adyen-3ds2:2.1.0-rc07
My environment details is as follows:
"react-native-adyen-payment": "^1.8.3",
"react": "17.0.2",
"react-native": "0.66.2",
Android Studio: 2020.3 AI-203.7717.56.2031.7784292,
AVD: Android 12
Thanks.
05-21 15:12:39.889 1139 1328 D HwWifiCHRStateManager: handleUpdateChannel:5785
05-21 15:12:39.890 1139 1326 D HwCustWifiStateMachineReferenceImpl: checkRssiOverThreshold newRssi = -64
05-21 15:12:39.890 1139 1326 D WifiScoreReport: Score = 98, wifiConnectivityManagerEnabled = false, lowScoreCount = 3
05-21 15:12:40.686 9623 9623 D NetWorkUtils: mVSimCurCardType is -1
05-21 15:12:40.687 9623 9623 W ResourceType: No package identifier when getting value for resource number 0x00000000
05-21 15:12:40.688 9623 9623 E HwNotchUtils: setIconForView iconId is not found
05-21 15:12:40.688 9623 9623 D NetWorkUtils: mVSimCurCardType is -1
05-21 15:12:40.689 9623 9623 W ResourceType: No package identifier when getting value for resource number 0x00000000
05-21 15:12:40.689 9623 9623 E HwNotchUtils: setIconForView iconId is not found
05-21 15:12:40.906 5389 5486 D OkHttp : <-- 200 http://192.168.100.111:8080/payments/adyen/paymentMethods (1737ms)
05-21 15:12:40.906 5389 5486 D OkHttp : Content-Type: application/json
05-21 15:12:40.906 5389 5486 D OkHttp : Transfer-Encoding: chunked
05-21 15:12:40.906 5389 5486 D OkHttp : Date: Thu, 21 May 2020 07:12:39 GMT
05-21 15:12:40.906 5389 5486 D OkHttp : Keep-Alive: timeout=60
05-21 15:12:40.906 5389 5486 D OkHttp : Connection: keep-alive
05-21 15:12:40.910 5389 5486 D OkHttp : {"oneClickPaymentMethods":null,"paymentMethods":[{"brands":["visa","mc","amex","jcb"],"configuration":null,"details":[{"configuration":null,"details":null,"itemSearchUrl":null,"items":null,"key":"encryptedCardNumber","optional":null,"type":"cardToken","value":null},{"configuration":null,"details":null,"itemSearchUrl":null,"items":null,"key":"encryptedSecurityCode","optional":null,"type":"cardToken","value":null},{"configuration":null,"details":null,"itemSearchUrl":null,"items":null,"key":"encryptedExpiryMonth","optional":null,"type":"cardToken","value":null},{"configuration":null,"details":null,"itemSearchUrl":null,"items":null,"key":"encryptedExpiryYear","optional":null,"type":"cardToken","value":null},{"configuration":null,"details":null,"itemSearchUrl":null,"items":null,"key":"holderName","optional":true,"type":"text","value":null}],"group":null,"name":"Credit Card","paymentMethodData":null,"supportsRecurring":null,"type":"scheme"},{"brands":null,"configuration":null,"details":null,"group":null,"name":"UnionPay","paymentMethodData":null,"supportsRecurring":true,"type":"unionpay"}],"storedPaymentMethods":null,"groups":[{"groupType":null,"name":"Credit Card","types":["visa","mc","amex","jcb"]}]}
05-21 15:12:40.910 5389 5486 D OkHttp : <-- END HTTP (1215-byte body)
05-21 15:12:40.926 5389 5422 W libEGL : EGLNativeWindowType 0x7991651010 disconnect failed
05-21 15:12:40.991 5389 5389 D AdyenPaymentModule: startDropIn
05-21 15:12:41.025 5389 5389 D CO.AdyenComponent: Init
05-21 15:12:41.026 5389 5389 D CO.AdyenComponent: AdyenComponentLocale : fr_FR
05-21 15:12:41.062 1139 9450 I ActivityManager: START u0 {flg=0x10000000 cmp=com.***.app/com.rnlib.adyen.ui.AdyenComponentActivity (has extras)} from uid 11547
05-21 15:12:41.064 1139 9450 I ActivityManager: ActivityRecord info: ActivityInfo{6ddf2eb com.rnlib.adyen.ui.AdyenComponentActivity}
05-21 15:12:41.074 5389 5389 W InputMethodManager: startInputReason = 1
05-21 15:12:41.079 526 1286 I /vendor/bin/hw/[email protected]: activate-0 frameOpenedAls-1 enabled-0 cameraOpenedAls-0
05-21 15:12:41.080 526 1286 D SensorHub: Channel activate-> handle: 0, enabled:0, err: 0
05-21 15:12:41.082 1745 1905 I SensorState: sensor:0 name:accelerometer enable:false uid:11547
05-21 15:12:41.082 1745 1905 I SensorState: sensor stop, total history time:13365364
05-21 15:12:41.082 1745 1905 I SensorState: removeSensor,mHandles:{}
05-21 15:12:41.082 1745 1905 I PGServer: report state:4 event type:2 pid:0 uid:11547 pkg:null to pid: 1139
05-21 15:12:41.084 32635 32635 I wangchen: SysInfo.getSysParam: orientation=1||config d=2.0,w=720,h=1196||metrics d=2.0,w=720,h=1196||sdk=26,bar_h=48
05-21 15:12:41.084 32635 32635 I KeymapLoader: w=720 h=1196 ori=true appScale=2.25 s1=2.0
05-21 15:12:41.093 1745 1759 I PGServer: android calls fast hibernateApps
05-21 15:12:41.093 1745 1759 I AppFastHibernation: fast hibernate duration: 1500 reason: start activity
05-21 15:12:41.094 758 13532 I Pged-IPgedBinderService: ****action is 1, pid num is 2***
05-21 15:12:41.094 758 13532 I Pged-Freezer: freezePids
05-21 15:12:41.094 758 13532 I Pged-Freezer: Freeze process: 29509
05-21 15:12:41.094 1745 2015 D PgedBinderAdapter: frz ok, pid: [29509]
05-21 15:12:41.104 5389 5389 D HwCust : Create obj success use class android.app.HwCustActivityImpl
05-21 15:12:41.114 5389 5389 D CO.AdyenComponentActivity: attachBaseContext
05-21 15:12:41.115 5389 5389 D CO.AdyenComponentActivity: localeString - fr_FR
05-21 15:12:41.116 5389 5415 D FA : Logging event (FE): user_engagement(_e), Bundle[{firebase_event_origin(_o)=auto, engagement_time_msec(_et)=9660, firebase_screen_class(_sc)=MainActivity, firebase_screen_id(_si)=-6010586131682806671}]
05-21 15:12:41.122 5389 5389 D HwCust : Create obj success use class android.app.HwCustHwWallpaperManagerImpl
05-21 15:12:41.126 5389 5389 D CO.AdyenComponentActivity: onCreate - null
05-21 15:12:41.135 5389 5389 D HwRTBlurUtils: check blur style for HwPhoneWindow, themeResId : 0x7f0f0034, context : com.rnlib.adyen.ui.AdyenComponentActivity@d905f50, Nhwext : 0, get Blur : disable with , null
05-21 15:12:41.146 1139 1283 E WindowManager: win=Window{d0d2217 u0 com.*.app/com.*.app.MainActivity EXITING} destroySurfaces: appStopped=false win.mWindowRemovalAllowed=true win.mRemoveOnExit=true
05-21 15:12:41.147 1139 1283 I WindowManager: Destroying surface Surface(name=com.*.app/com.*.app.MainActivity) called by com.android.server.wm.WindowStateAnimator.destroySurface:2092 com.android.server.wm.WindowStateAnimator.destroySurfaceLocked:899 com.android.server.wm.HwWindowStateAnimator.destroySurfaceLocked:1006 com.android.server.wm.WindowState.destroyOrSaveSurfaceUnchecked:2998 com.android.server.wm.WindowState.destroySurface:2951 com.android.server.wm.AppWindowToken.destroySurfaces:671 com.android.server.wm.AppWindowToken.destroySurfaces:655 com.android.server.wm.WindowState.onExitAnimationDone:4424
05-21 15:12:41.152 5389 5389 D CO.AdyenComponentViewModel: onPaymentMethodsResponseChanged
05-21 15:12:41.154 5389 5389 D CO.AdyenComponentViewModel: onAvailabilityResult - scheme true
05-21 15:12:41.154 5389 5389 D CO.AdyenComponentViewModel: No details required - unionpay
05-21 15:12:41.154 5389 5389 D CO.AdyenComponentActivity: showComponentDialog
05-21 15:12:41.161 5389 5389 D MicroMsg.PaySdk.WXFactory: createWXAPI, appId = null, checkSignature = true
05-21 15:12:41.161 5389 5389 D MicroMsg.SDK.WXApiImplV10: <init>, appId = null, checkSignature = true
05-21 15:12:41.188 9623 15127 D HwRecentsLockUtils: Search
05-21 15:12:41.188 1684 4382 E HsmCoreServiceImpl: onTransact in code is: 103
05-21 15:12:41.188 1684 4382 I MediaProcessHandler: playingUids:
05-21 15:12:41.194 5389 5389 D CubicBezierInterpolator: CubicBezierInterpolator mControlPoint1x = 0.23, mControlPoint1y = 0.06, mControlPoint2x = 0.09, mControlPoint2y = 0.97
05-21 15:12:41.195 5389 5389 D CubicBezierInterpolator: CubicBezierInterpolator mControlPoint1x = 0.6, mControlPoint1y = 0.9, mControlPoint2x = 0.8, mControlPoint2y = 1.0
05-21 15:12:41.195 5389 5389 D CubicBezierInterpolator: CubicBezierInterpolator mControlPoint1x = 0.23, mControlPoint1y = 0.06, mControlPoint2x = 0.09, mControlPoint2y = 0.97
05-21 15:12:41.195 5389 5389 D CubicBezierInterpolator: CubicBezierInterpolator mControlPoint1x = 0.6, mControlPoint1y = 0.9, mControlPoint2x = 0.8, mControlPoint2y = 1.0
05-21 15:12:41.200 5389 5389 D CubicBezierInterpolator: CubicBezierInterpolator mControlPoint1x = 0.23, mControlPoint1y = 0.06, mControlPoint2x = 0.09, mControlPoint2y = 0.97
05-21 15:12:41.200 5389 5389 D CubicBezierInterpolator: CubicBezierInterpolator mControlPoint1x = 0.6, mControlPoint1y = 0.9, mControlPoint2x = 0.8, mControlPoint2y = 1.0
05-21 15:12:41.200 5389 5389 D CubicBezierInterpolator: CubicBezierInterpolator mControlPoint1x = 0.23, mControlPoint1y = 0.06, mControlPoint2x = 0.09, mControlPoint2y = 0.97
05-21 15:12:41.201 5389 5389 D CubicBezierInterpolator: CubicBezierInterpolator mControlPoint1x = 0.6, mControlPoint1y = 0.9, mControlPoint2x = 0.8, mControlPoint2y = 1.0
05-21 15:12:41.209 5389 5389 D AndroidRuntime: Shutting down VM
05-21 15:12:41.211 5389 5389 E AndroidRuntime: FATAL EXCEPTION: main
05-21 15:12:41.211 5389 5389 E AndroidRuntime: Process: com.***.app, PID: 5389
05-21 15:12:41.211 5389 5389 E AndroidRuntime: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.*.app/com.rnlib.adyen.ui.AdyenComponentActivity}: android.view.InflateException: Binary XML file line #9: Binary XML file line #9: Error inflating class com.adyen.checkout.card.DropInCardView
05-21 15:12:41.211 5389 5389 E AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3303)
05-21 15:12:41.211 5389 5389 E AndroidRuntime: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3411)
05-21 15:12:41.211 5389 5389 E AndroidRuntime: at android.app.ActivityThread.-wrap12(Unknown Source:0)
05-21 15:12:41.211 5389 5389 E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1994)
05-21 15:12:41.211 5389 5389 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:108)
05-21 15:12:41.211 5389 5389 E AndroidRuntime: at android.os.Looper.loop(Looper.java:166)
05-21 15:12:41.211 5389 5389 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:7529)
05-21 15:12:41.211 5389 5389 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
05-21 15:12:41.211 5389 5389 E AndroidRuntime: at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:245)
05-21 15:12:41.211 5389 5389 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:921)
05-21 15:12:41.211 5389 5389 E AndroidRuntime: Caused by: android.view.InflateException: Binary XML file line #9: Binary XML file line #9: Error inflating class com.adyen.checkout.card.DropInCardView
05-21 15:12:41.211 5389 5389 E AndroidRuntime: Caused by: android.view.InflateException: Binary XML file line #9: Error inflating class com.adyen.checkout.card.DropInCardView
05-21 15:12:41.211 5389 5389 E AndroidRuntime: Caused by: java.lang.reflect.InvocationTargetException
05-21 15:12:41.211 5389 5389 E AndroidRuntime: at java.lang.reflect.Constructor.newInstance0(Native Method)
05-21 15:12:41.211 5389 5389 E AndroidRuntime: at java.lang.reflect.Constructor.newInstance(Constructor.java:334)
05-21 15:12:41.211 5389 5389 E AndroidRuntime: at android.view.LayoutInflater.createView(LayoutInflater.java:658)
05-21 15:12:41.211 5389 5389 E AndroidRuntime: at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:801)
05-21 15:12:41.211 5389 5389 E AndroidRuntime: at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:741)
05-21 15:12:41.211 5389 5389 E AndroidRuntime: at android.view.LayoutInflater.inflate(LayoutInflater.java:492)
05-21 15:12:41.211 5389 5389 E AndroidRuntime: at android.view.LayoutInflater.inflate(LayoutInflater.java:423)
05-21 15:12:41.211 5389 5389 E AndroidRuntime: at com.rnlib.adyen.ui.component.CardComponentDialogFragment.onCreateView(CardComponentDialogFragment.kt:32)
05-21 15:12:41.211 5389 5389 E AndroidRuntime: at androidx.fragment.app.Fragment.performCreateView(Fragment.java:2698)
05-21 15:12:41.211 5389 5389 E AndroidRuntime: at androidx.fragment.app.FragmentStateManager.createView(FragmentStateManager.java:320)
05-21 15:12:41.211 5389 5389 E AndroidRuntime: at androidx.fragment.app.FragmentManager.moveToState(FragmentManager.java:1187)
05-21 15:12:41.211 5389 5389 E AndroidRuntime: at androidx.fragment.app.FragmentManager.moveToState(FragmentManager.java:1356)
05-21 15:12:41.211 5389 5389 E AndroidRuntime: at androidx.fragment.app.FragmentManager.moveFragmentToExpectedState(FragmentManager.java:1434)
05-21 15:12:41.211 5389 5389 E AndroidRuntime: at androidx.fragment.app.FragmentManager.moveToState(FragmentManager.java:1497)
05-21 15:12:41.211 5389 5389 E AndroidRuntime: at androidx.fragment.app.BackStackRecord.executeOps(BackStackRecord.java:447)
05-21 15:12:41.211 5389 5389 E AndroidRuntime: at androidx.fragment.app.FragmentManager.executeOps(FragmentManager.java:2169)
05-21 15:12:41.211 5389 5389 E AndroidRuntime: at androidx.fragment.app.FragmentManager.executeOpsTogether(FragmentManager.java:1992)
05-21 15:12:41.211 5389 5389 E AndroidRuntime: at androidx.fragment.app.FragmentManager.removeRedundantOperationsAndExecute(FragmentManager.java:1947)
05-21 15:12:41.211 5389 5389 E AndroidRuntime: at androidx.fragment.app.FragmentManager.execPendingActions(FragmentManager.java:1849)
05-21 15:12:41.211 5389 5389 E AndroidRuntime: at androidx.fragment.app.FragmentManager.dispatchStateChange(FragmentManager.java:2629)
05-21 15:12:41.211 5389 5389 E AndroidRuntime: at androidx.fragment.app.FragmentManager.dispatchActivityCreated(FragmentManager.java:2577)
05-21 15:12:41.211 5389 5389 E AndroidRuntime: at androidx.fragment.app.FragmentController.dispatchActivityCreated(FragmentController.java:247)
05-21 15:12:41.211 5389 5389 E AndroidRuntime: at androidx.fragment.app.FragmentActivity.onStart(FragmentActivity.java:541)
05-21 15:12:41.211 5389 5389 E AndroidRuntime: at androidx.appcompat.app.AppCompatActivity.onStart(AppCompatActivity.java:201)
05-21 15:12:41.211 5389 5389 E AndroidRuntime: at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1339)
05-21 15:12:41.211 5389 5389 E AndroidRuntime: at android.app.Activity.performStart(Activity.java:7403)
05-21 15:12:41.211 5389 5389 E AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3266)
05-21 15:12:41.211 5389 5389 E AndroidRuntime: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3411)
05-21 15:12:41.211 5389 5389 E AndroidRuntime: at android.app.ActivityThread.-wrap12(Unknown Source:0)
05-21 15:12:41.211 5389 5389 E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1994)
05-21 15:12:41.211 5389 5389 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:108)
05-21 15:12:41.211 5389 5389 E AndroidRuntime: at android.os.Looper.loop(Looper.java:166)
05-21 15:12:41.211 5389 5389 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:7529)
05-21 15:12:41.211 5389 5389 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
05-21 15:12:41.211 5389 5389 E AndroidRuntime: at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:245)
05-21 15:12:41.212 5389 5389 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:921)
05-21 15:12:41.212 5389 5389 E AndroidRuntime: Caused by: android.view.InflateException: Binary XML file line #65: Binary XML file line #65: Error inflating class com.adyen.checkout.card.CardView
05-21 15:12:41.212 5389 5389 E AndroidRuntime: Caused by: android.view.InflateException: Binary XML file line #65: Error inflating class com.adyen.checkout.card.CardView
05-21 15:12:41.212 5389 5389 E AndroidRuntime: Caused by: java.lang.reflect.InvocationTargetException
05-21 15:12:41.212 5389 5389 E AndroidRuntime: at java.lang.reflect.Constructor.newInstance0(Native Method)
05-21 15:12:41.212 5389 5389 E AndroidRuntime: at java.lang.reflect.Constructor.newInstance(Constructor.java:334)
05-21 15:12:41.212 5389 5389 E AndroidRuntime: at android.view.LayoutInflater.createView(LayoutInflater.java:658)
05-21 15:12:41.212 5389 5389 E AndroidRuntime: at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:801)
05-21 15:12:41.212 5389 5389 E AndroidRuntime: at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:741)
05-21 15:12:41.212 5389 5389 E AndroidRuntime: at android.view.LayoutInflater.rInflate(LayoutInflater.java:874)
05-21 15:12:41.212 5389 5389 E AndroidRuntime: at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:835)
05-21 15:12:41.212 5389 5389 E AndroidRuntime: at android.view.LayoutInflater.rInflate(LayoutInflater.java:877)
05-21 15:12:41.212 5389 5389 E AndroidRuntime: at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:835)
05-21 15:12:41.212 5389 5389 E AndroidRuntime: at android.view.LayoutInflater.rInflate(LayoutInflater.java:877)
05-21 15:12:41.212 5389 5389 E AndroidRuntime: at android.view.LayoutInflater.inflate(LayoutInflater.java:489)
05-21 15:12:41.212 5389 5389 E AndroidRuntime: at android.view.LayoutInflater.inflate(LayoutInflater.java:423)
05-21 15:12:41.212 5389 5389 E AndroidRuntime: at com.adyen.checkout.card.DropInCardView.<init>(DropInCardView.kt:33)
05-21 15:12:41.212 5389 5389 E AndroidRuntime: at com.adyen.checkout.card.DropInCardView.<init>(DropInCardView.kt:29)
05-21 15:12:41.212 5389 5389 E AndroidRuntime: at java.lang.reflect.Constructor.newInstance0(Native Method)
05-21 15:12:41.212 5389 5389 E AndroidRuntime: at java.lang.reflect.Constructor.newInstance(Constructor.java:334)
05-21 15:12:41.212 5389 5389 E AndroidRuntime: at android.view.LayoutInflater.createView(LayoutInflater.java:658)
05-21 15:12:41.212 5389 5389 E AndroidRuntime: at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:801)
05-21 15:12:41.212 5389 5389 E AndroidRuntime: at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:741)
05-21 15:12:41.212 5389 5389 E AndroidRuntime: at android.view.LayoutInflater.inflate(LayoutInflater.java:492)
05-21 15:12:41.212 5389 5389 E AndroidRuntime: at android.view.LayoutInflater.inflate(LayoutInflater.java:423)
05-21 15:12:41.212 5389 5389 E AndroidRuntime: at com.rnlib.adyen.ui.component.CardComponentDialogFragment.onCreateView(CardComponentDialogFragment.kt:32)
05-21 15:12:41.212 5389 5389 E AndroidRuntime: at androidx.fragment.app.Fragment.performCreateView(Fragment.java:2698)
05-21 15:12:41.212 5389 5389 E AndroidRuntime: at androidx.fragment.app.FragmentStateManager.createView(FragmentStateManager.java:320)
05-21 15:12:41.212 5389 5389 E AndroidRuntime: at androidx.fragment.app.FragmentManager.moveToState(FragmentManager.java:1187)
05-21 15:12:41.212 5389 5389 E AndroidRuntime: at androidx.fragment.app.FragmentManager.moveToState(FragmentManager.java:1356)
05-21 15:12:41.212 5389 5389 E AndroidRuntime: at androidx.fragment.app.FragmentManager.moveFragmentToExpectedState(FragmentManager.java:1434)
05-21 15:12:41.212 5389 5389 E AndroidRuntime: at androidx.fragment.app.FragmentManager.moveToState(FragmentManager.java:1497)
05-21 15:12:41.212 5389 5389 E AndroidRuntime: at androidx.fragment.app.BackStackRecord.executeOps(BackStackRecord.java:447)
05-21 15:12:41.212 5389 5389 E AndroidRuntime: at androidx.fragment.app.FragmentManager.executeOps(FragmentManager.java:2169)
05-21 15:12:41.212 5389 5389 E AndroidRuntime: at androidx.fragment.app.FragmentManager.executeOpsTogether(FragmentManager.java:1992)
05-21 15:12:41.212 5389 5389 E AndroidRuntime: at androidx.fragment.app.FragmentManager.removeRedundantOperationsAndExecute(FragmentManager.java:1947)
05-21 15:12:41.212 5389 5389 E AndroidRuntime: at androidx.fragment.app.FragmentManager.execPendingActions(FragmentManager.java:1849)
05-21 15:12:41.212 5389 5389 E AndroidRuntime: at androidx.fragment.app.FragmentManager.dispatchStateChange(FragmentManager.java:2629)
05-21 15:12:41.212 5389 5389 E AndroidRuntime: at androidx.fragment.app.FragmentManager.dispatchActivityCreated(FragmentManager.java:2577)
05-21 15:12:41.212 5389 5389 E AndroidRuntime: at androidx.fragment.app.FragmentController.dispatchActivityCreated(FragmentController.java:247)
05-21 15:12:41.212 5389 5389 E AndroidRuntime: at androidx.fragment.app.FragmentActivity.onStart(FragmentActivity.java:541)
05-21 15:12:41.212 5389 5389 E AndroidRuntime: at androidx.appcompat.app.AppCompatActivity.onStart(AppCompatActivity.java:201)
05-21 15:12:41.212 5389 5389 E AndroidRuntime: at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1339)
05-21 15:12:41.212 5389 5389 E AndroidRuntime: at android.app.Activity.performStart(Activity.java:7403)
05-21 15:12:41.212 5389 5389 E AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3266)
05-21 15:12:41.212 5389 5389 E AndroidRuntime: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3411)
05-21 15:12:41.212 5389 5389 E AndroidRuntime: at android.app.ActivityThread.-wrap12(Unknown Source:0)
05-21 15:12:41.212 5389 5389 E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1994)
05-21 15:12:41.212 5389 5389 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:108)
05-21 15:12:41.212 5389 5389 E AndroidRuntime: at android.os.Looper.loop(Looper.java:166)
05-21 15:12:41.212 5389 5389 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:7529)
05-21 15:12:41.212 5389 5389 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
05-21 15:12:41.213 5389 5389 E AndroidRuntime: at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:245)
05-21 15:12:41.213 5389 5389 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:921)
05-21 15:12:41.213 5389 5389 E AndroidRuntime: Caused by: android.view.InflateException: Binary XML file line #21: Binary XML file line #21: Error inflating class com.google.android.material.textfield.TextInputLayout
05-21 15:12:41.213 5389 5389 E AndroidRuntime: Caused by: android.view.InflateException: Binary XML file line #21: Error inflating class com.google.android.material.textfield.TextInputLayout
05-21 15:12:41.213 5389 5389 E AndroidRuntime: Caused by: java.lang.reflect.InvocationTargetException
05-21 15:12:41.213 5389 5389 E AndroidRuntime: at java.lang.reflect.Constructor.newInstance0(Native Method)
05-21 15:12:41.213 5389 5389 E AndroidRuntime: at java.lang.reflect.Constructor.newInstance(Constructor.java:334)
05-21 15:12:41.213 5389 5389 E AndroidRuntime: at android.view.LayoutInflater.createView(LayoutInflater.java:658)
05-21 15:12:41.213 5389 5389 E AndroidRuntime: at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:801)
05-21 15:12:41.213 5389 5389 E AndroidRuntime: at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:741)
05-21 15:12:41.213 5389 5389 E AndroidRuntime: at android.view.LayoutInflater.rInflate(LayoutInflater.java:874)
05-21 15:12:41.213 5389 5389 E AndroidRuntime: at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:835)
05-21 15:12:41.213 5389 5389 E AndroidRuntime: at android.view.LayoutInflater.rInflate(LayoutInflater.java:877)
05-21 15:12:41.213 5389 5389 E AndroidRuntime: at android.view.LayoutInflater.inflate(LayoutInflater.java:489)
05-21 15:12:41.213 5389 5389 E AndroidRuntime: at android.view.LayoutInflater.inflate(LayoutInflater.java:423)
05-21 15:12:41.213 5389 5389 E AndroidRuntime: at com.adyen.checkout.card.CardView.<init>(CardView.java:78)
05-21 15:12:41.213 5389 5389 E AndroidRuntime: at com.adyen.checkout.card.CardView.<init>(CardView.java:68)
05-21 15:12:41.213 5389 5389 E AndroidRuntime: at java.lang.reflect.Constructor.newInstance0(Native Method)
05-21 15:12:41.213 5389 5389 E AndroidRuntime: at java.lang.reflect.Constructor.newInstance(Constructor.java:334)
05-21 15:12:41.213 5389 5389 E AndroidRuntime: at android.view.LayoutInflater.createView(LayoutInflater.java:658)
05-21 15:12:41.213 5389 5389 E AndroidRuntime: at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:801)
05-21 15:12:41.213 5389 5389 E AndroidRuntime: at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:741)
05-21 15:12:41.213 5389 5389 E AndroidRuntime: at android.view.LayoutInflater.rInflate(LayoutInflater.java:874)
05-21 15:12:41.213 5389 5389 E AndroidRuntime: at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:835)
05-21 15:12:41.213 5389 5389 E AndroidRuntime: at android.view.LayoutInflater.rInflate(LayoutInflater.java:877)
05-21 15:12:41.213 5389 5389 E AndroidRuntime: at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:835)
05-21 15:12:41.213 5389 5389 E AndroidRuntime: at android.view.LayoutInflater.rInflate(LayoutInflater.java:877)
05-21 15:12:41.213 5389 5389 E AndroidRuntime: at android.view.LayoutInflater.inflate(LayoutInflater.java:489)
05-21 15:12:41.213 5389 5389 E AndroidRuntime: at android.view.LayoutInflater.inflate(LayoutInflater.java:423)
05-21 15:12:41.213 5389 5389 E AndroidRuntime: at com.adyen.checkout.card.DropInCardView.<init>(DropInCardView.kt:33)
05-21 15:12:41.213 5389 5389 E AndroidRuntime: at com.adyen.checkout.card.DropInCardView.<init>(DropInCardView.kt:29)
05-21 15:12:41.213 5389 5389 E AndroidRuntime: at java.lang.reflect.Constructor.newInstance0(Native Method)
05-21 15:12:41.213 5389 5389 E AndroidRuntime: at java.lang.reflect.Constructor.newInstance(Constructor.java:334)
05-21 15:12:41.213 5389 5389 E AndroidRuntime: at android.view.LayoutInflater.createView(LayoutInflater.java:658)
05-21 15:12:41.213 5389 5389 E AndroidRuntime: at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:801)
05-21 15:12:41.213 5389 5389 E AndroidRuntime: at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:741)
05-21 15:12:41.213 5389 5389 E AndroidRuntime: at android.view.LayoutInflater.inflate(LayoutInflater.java:492)
05-21 15:12:41.213 5389 5389 E AndroidRuntime: at android.view.LayoutInflater.inflate(LayoutInflater.java:423)
05-21 15:12:41.213 5389 5389 E AndroidRuntime: at com.rnlib.adyen.ui.component.CardComponentDialogFragment.onCreateView(CardComponentDialogFragment.kt:32)
05-21 15:12:41.213 5389 5389 E AndroidRuntime: at androidx.fragment.app.Fragment.performCreateView(Fragment.java:2698)
05-21 15:12:41.213 5389 5389 E AndroidRuntime: at androidx.fragment.app.FragmentStateManager.createView(FragmentStateManager.java:320)
05-21 15:12:41.213 5389 5389 E AndroidRuntime: at androidx.fragment.app.FragmentManager.moveToState(FragmentManager.java:1187)
05-21 15:12:41.213 5389 5389 E AndroidRuntime: at androidx.fragment.app.FragmentManager.moveToState(FragmentManager.java:1356)
05-21 15:12:41.213 5389 5389 E AndroidRuntime: at androidx.fragment.app.FragmentManager.moveFragmentToExpectedState(FragmentManager.java:1434)
05-21 15:12:41.213 5389 5389 E AndroidRuntime: at androidx.fragment.app.FragmentManager.moveToState(FragmentManager.java:1497)
05-21 15:12:41.213 5389 5389 E AndroidRuntime: at androidx.fragment.app.BackStackRecord.executeOps(BackStackRecord.java:447)
05-21 15:12:41.213 5389 5389 E AndroidRuntime: at androidx.fragment.app.FragmentManager.executeOps(FragmentManager.java:2169)
05-21 15:12:41.213 5389 5389 E AndroidRuntime: at androidx.fragment.app.FragmentManager.executeOpsTogether(FragmentManager.java:1992)
05-21 15:12:41.213 5389 5389 E AndroidRuntime: at androidx.fragment.app.FragmentManager.removeRedundantOperationsAndExecute(FragmentManager.java:1947)
05-21 15:12:41.213 5389 5389 E AndroidRuntime: at androidx.fragment.app.FragmentManager.execPendingActions(FragmentManager.java:1849)
05-21 15:12:41.213 5389 5389 E AndroidRuntime: at androidx.fragment.app.FragmentManager.dispatchStateChange(FragmentManager.java:2629)
05-21 15:12:41.213 5389 5389 E AndroidRuntime: at androidx.fragment.app.FragmentManager.dispatchActivityCreated(FragmentManager.java:2577)
05-21 15:12:41.214 5389 5389 E AndroidRuntime: at androidx.fragment.app.FragmentController.dispatchActivityCreated(FragmentController.java:247)
05-21 15:12:41.214 5389 5389 E AndroidRuntime: at androidx.fragment.app.FragmentActivity.onStart(FragmentActivity.java:541)
05-21 15:12:41.214 5389 5389 E AndroidRuntime: at androidx.appcompat.app.AppCompatActivity.onStart(AppCompatActivity.java:201)
05-21 15:12:41.214 5389 5389 E AndroidRuntime: at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1339)
05-21 15:12:41.214 5389 5389 E AndroidRuntime: at android.app.Activity.performStart(Activity.java:7403)
05-21 15:12:41.214 5389 5389 E AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3266)
05-21 15:12:41.214 5389 5389 E AndroidRuntime: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3411)
05-21 15:12:41.214 5389 5389 E AndroidRuntime: at android.app.ActivityThread.-wrap12(Unknown Source:0)
05-21 15:12:41.214 5389 5389 E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1994)
05-21 15:12:41.214 5389 5389 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:108)
05-21 15:12:41.214 5389 5389 E AndroidRuntime: at android.os.Looper.loop(Looper.java:166)
05-21 15:12:41.214 5389 5389 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:7529)
05-21 15:12:41.214 5389 5389 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
05-21 15:12:41.214 5389 5389 E AndroidRuntime: at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:245)
05-21 15:12:41.214 5389 5389 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:921)
05-21 15:12:41.214 5389 5389 E AndroidRuntime: Caused by: java.lang.IllegalArgumentException: The style on this component requires your app theme to be Theme.MaterialComponents (or a descendant).
05-21 15:12:41.214 5389 5389 E AndroidRuntime: at com.google.android.material.internal.ThemeEnforcement.checkTheme(ThemeEnforcement.java:248)
05-21 15:12:41.214 5389 5389 E AndroidRuntime: at com.google.android.material.internal.ThemeEnforcement.checkMaterialTheme(ThemeEnforcement.java:222)
05-21 15:12:41.214 5389 5389 E AndroidRuntime: at com.google.android.material.internal.ThemeEnforcement.checkCompatibleTheme(ThemeEnforcement.java:150)
05-21 15:12:41.214 5389 5389 E AndroidRuntime: at com.google.android.material.internal.ThemeEnforcement.obtainTintedStyledAttributes(ThemeEnforcement.java:120)
05-21 15:12:41.214 5389 5389 E AndroidRuntime: at com.google.android.material.textfield.TextInputLayout.<init>(TextInputLayout.java:424)
05-21 15:12:41.214 5389 5389 E AndroidRuntime: at com.google.android.material.textfield.TextInputLayout.<init>(TextInputLayout.java:396)
05-21 15:12:41.214 5389 5389 E AndroidRuntime: ... 62 more
05-21 15:12:41.219 1139 1773 W ActivityManager: Force finishing activity com.*.app/com.rnlib.adyen.ui.AdyenComponentActivity
05-21 15:12:41.222 1139 1773 W ActivityManager: Force finishing activity com.*.app/.MainActivity
05-21 15:12:41.222 1139 1161 D HwPhoneWindowManager: Transact:setSystemUIColor to status bar service
05-21 15:12:41.223 9623 15127 I CommandQueue: updateBarBgColor
05-21 15:12:41.223 9623 15127 D CommandQueue: CommandQueue, setBarBackgroundColor
05-21 15:12:41.224 9623 9623 D TintManager: statusBarIconTint=#99FFFFFF,navigationBarIconTint=#00000000
05-21 15:12:41.225 9623 9623 D ImageWallpaper: onOffsetsChanged: xOffset=0.0, yOffset=0.0, xOffsetStep=0.0, yOffsetStep=0.0, xPixels=0, yPixels=0
05-21 15:12:41.226 9623 9623 D ImageWallpaper: Suppressed drawFrame since redraw is not needed and offsets have not changed.sf=Rect(0, 0 - 1440, 1280)
05-21 15:12:41.226 9623 9623 D ImageWallpaper: onVisibilityChanged: mVisible, visible=false, true
05-21 15:12:41.226 9623 9623 D ImageWallpaper: Visibility changed to visible=true
05-21 15:12:41.226 9623 9623 D ImageWallpaper: Suppressed drawFrame since redraw is not needed and offsets have not changed.sf=Rect(0, 0 - 1440, 1280)
05-21 15:12:41.229 1139 5716 E ReportTools: This is not beta user build
05-21 15:12:41.229 5389 5389 I Process : Sending signal. PID: 5389 SIG: 9
05-21 15:12:41.231 1774 1774 W InputMethodManager: startInputReason = 1
05-21 15:12:41.233 9623 9623 D StatusBarIconController: setIconVisibility icon is null or visibility not change visibility=false
05-21 15:12:41.233 766 2379 E iMonitor: FaultDetect: DUMPTOOL_PRINTF return.
05-21 15:12:41.233 9623 9623 D StatusBarIconController: setIconVisibility icon is null or visibility not change visibility=false
05-21 15:12:41.233 766 2379 E iMonitor: FaultDetect: DUMPTOOL_PRINTF return.
05-21 15:12:41.240 758 832 E AwareLog: iawared: change_property_content open /proc/5389/task/5422/static_vip fail errno(2)!
05-21 15:12:41.241 9623 9623 D ImageWallpaper: onOffsetsChanged: xOffset=0.0, yOffset=0.0, xOffsetStep=0.0, yOffsetStep=0.0, xPixels=0, yPixels=0
05-21 15:12:41.241 9623 9623 D ImageWallpaper: Suppressed drawFrame since redraw is not needed and offsets have not changed.sf=Rect(0, 0 - 1440, 1280)
05-21 15:12:41.241 32635 32635 I wangchen: SysInfo.getSysParam: orientation=1||config d=2.0,w=720,h=1196||metrics d=2.0,w=720,h=1196||sdk=26,bar_h=48
05-21 15:12:41.241 32635 32635 I KeymapLoader: w=720 h=1196 ori=true appScale=2.25 s1=2.0
05-21 15:12:41.241 9623 9623 D BarTransitions.HwNavigationBarView: MODE_TRANSPARENT -> MODE_TRANSLUCENT animate=false
05-21 15:12:41.241 9623 9623 D BarTransitions.HwNavigationBarView: applyModeBackground oldMode=MODE_TRANSPARENT newMode=MODE_TRANSLUCENT animate=false
05-21 15:12:41.261 766 2379 E iMonitor: FaultDetect: DUMPTOOL_PRINTF return.
05-21 15:12:41.265 766 2379 I chatty : uid=0(root) engine identical 1 line
05-21 15:12:41.265 766 2379 E iMonitor: FaultDetect: DUMPTOOL_PRINTF return.
05-21 15:12:41.265 766 2379 I iMonitor: create: 901001001
05-21 15:12:41.265 766 2379 I iMonitor: send: 901001001
05-21 15:12:41.265 766 2379 E iMonitor: FaultDetect: DUMPTOOL_PRINTF return.
05-21 15:12:41.265 766 2379 E iMonitor: FaultDetect: DUMPTOOL_PRINTF return.
05-21 15:12:41.323 9623 9636 D HwRecentsLockUtils: Search
05-21 15:12:41.323 1684 4382 E HsmCoreServiceImpl: onTransact in code is: 103
05-21 15:12:41.323 1684 4382 I MediaProcessHandler: playingUids:
05-21 15:12:41.367 754 754 E wificond: Failed to get NL80211_STA_INFO_CNAHLOAD
05-21 15:12:41.367 1139 1326 E WificondControl: Noise: -90, Snr: 0, Chload: -1
05-21 15:12:41.367 1139 1328 D HwWifiCHRStateManager: handleMessage : 1001
05-21 15:12:41.367 1139 1328 D HwWifiCHRStateManager: handleUpdateChannel:5785
05-21 15:12:41.370 1139 1139 D WiFi_PRO: MSG_RETURN_AP_CURRY_RSSI rssi = -65
05-21 15:12:41.370 1139 1392 D HuaweiWifiWatchdogStateMachine: LM mrssi=-65
05-21 15:12:41.370 1139 1139 I QosMonitor: queryRtt: rtt_type = 3
05-21 15:12:41.370 1139 1392 D HuaweiWifiWatchdogStateMachine: ec:6c:**:**:f0:e5 current loss[-65]=0%, volume=9
05-21 15:12:41.370 1139 1392 D HuaweiWifiWatchdogStateMachine: ec:6c:**:**:f0:e5 history loss[-65]=0.11%, volume=307026
05-21 15:12:41.370 1139 1139 I HwQoEJNI: send_cmd_kernel. begin
05-21 15:12:41.370 1139 1139 I HwQoEJNI: send_cmd_kernel. end
05-21 15:12:41.371 1139 1139 I QosMonitor: postEventFromNative: msg=100,arg1=4,arg2=10
05-21 15:12:41.371 1139 1392 I HuaweiWifiWatchdogStateMachine: spd good count:0, add sc:0.0, rate:1.0
05-21 15:12:41.371 1139 1139 D HuaweiWifiWatchdogStateMachine: setSampleRtt: unvalid rtt
05-21 15:12:41.371 1139 1392 D HuaweiWifiWatchdogStateMachine: high data flow: protection_counter = 0, not_detect_counter = 7
05-21 15:12:41.371 1139 1392 D HuaweiWifiWatchdogStateMachine: high data flow scenario: 0 --> 0 rx bytes =3KB
05-21 15:12:41.371 1139 1392 I HuaweiWifiWatchdogStateMachine: current mHighDataFlowRate = 1.0
05-21 15:12:41.371 1139 1392 I HuaweiWifiWatchdogStateMachine: POta txb txg rxg:0, 19, 0. Lr =0% Totpkt=19
05-21 15:12:41.371 1139 1139 I HwQoEJNI: send_cmd_kernel. begin
05-21 15:12:41.371 1139 1139 I HwQoEJNI: send_cmd_kernel. end
05-21 15:12:41.371 1139 1139 I QosMonitor: postEventFromNative: msg=100,arg1=0,arg2=10
05-21 15:12:41.371 1139 1139 I MQoS : rtt=720,tcp_tx_pkts=7377445,tcp_rx_pkts=15099446
05-21 15:12:41.372 1139 4258 I MQoS : QOS_level:0(0),DataDisable;use level-0
05-21 15:12:41.372 1139 4258 I MQoS : skip-low-Level:0(0),DataDisable;use level-0
05-21 15:12:41.373 1139 1392 D HuaweiWifiWatchdogStateMachine: dumpTcpResult: len=10,rtt=720,rttPkt=1,rttWn=12,cgt=0,cgtWn=0
05-21 15:12:41.373 1139 1392 I HuaweiWifiWatchdogStateMachine: PTcp RTT:0, rtt pkt=0, tcp_rx=0, tcp_tx=0, tcp_reTran=0, rtRate=0
05-21 15:12:41.373 1139 1392 D HuaweiWifiWatchdogStateMachine: mRssiBadCount =0, RSSI not bad.
05-21 15:12:41.373 1139 1392 D HuaweiWifiWatchdogStateMachine: detectNetworkAvailable:hw.wifipro.dns_fail_count = 5805
05-21 15:12:41.373 1139 1392 D HuaweiWifiWatchdogStateMachine: bqeLevel = 2 rtt=0,rtt_pkts=0 speed=445 rssi=-65
05-21 15:12:41.373 1139 1392 D HuaweiWifiWatchdogStateMachine: Enter updateQoeLevel level = 2
05-21 15:12:41.373 1139 1392 D HuaweiWifiWatchdogStateMachine: updateQoeLevel current level equal to mLastDetectLevel, return
05-21 15:12:41.373 1139 1392 D HuaweiWifiWatchdogStateMachine: did not have any network action
05-21 15:12:41.389 1139 1311 W InputDispatcher: channel '7149b4b com.*.app/com.*.app.MainActivity (server)' ~ Consumer closed input channel or an error occurred. events=0x9
05-21 15:12:41.389 1139 1311 E InputDispatcher: channel '7149b4b com.*.app/com.*.app.MainActivity (server)' ~ Channel is unrecoverably broken and will be disposed!
05-21 15:12:41.390 1139 3640 I ActivityManager: Process com.*.app (pid 5389) has died: fore TOP
05-21 15:12:41.391 1139 5539 I WindowManager: WIN DEATH: Window{7149b4b u0 com.*.app/com.*.app.MainActivity}
05-21 15:12:41.391 1139 5539 W InputDispatcher: Attempted to unregister already unregistered input channel '7149b4b com.*.app/com.*.app.MainActivity (server)'
05-21 15:12:41.392 1139 5539 I WindowManager: Destroying surface Surface(name=com.*.app/com.*.app.MainActivity) called by com.android.server.wm.WindowStateAnimator.destroySurface:2092 com.android.server.wm.WindowStateAnimator.destroySurfaceLocked:899 com.android.server.wm.HwWindowStateAnimator.destroySurfaceLocked:1006 com.android.server.wm.WindowState.removeImmediately:1899 com.android.server.wm.WindowState.removeIfPossible:2051 com.android.server.wm.WindowState.-wrap1:0 com.android.server.wm.WindowState$DeathRecipient.binderDied:2481 android.os.BinderProxy.sendDeathNotice:840
05-21 15:12:41.392 1139 5539 W WindowManager: Exception thrown when updateSurfaceStatusWindowStateAnimator{c30e641 com.*.app/com.*.app.MainActivity}: android.os.DeadObjectException
05-21 15:12:41.393 1139 1305 W AwareLog: SchedLevelBoost: onProcessDied config not set!
05-21 15:12:41.394 1684 4382 E HsmCoreServiceImpl: onTransact in code is: 102
05-21 15:12:41.394 1684 4382 I MediaProcessHandler: processOp opType: 1, uid: 11547, pid: 5389
05-21 15:12:41.394 1684 4382 W MediaProcessHandler: remove target not exist, maybe the UI process: uid: 11547, pid: 5389
05-21 15:12:41.394 1684 4382 I MediaProcessHandler: executedCallBack opType: 1 mMediaStatusObservers.size=0
05-21 15:12:41.401 1139 3640 W HwActivityManagerServiceEx: appSwitch from: com.*.app to: com.huawei.android.launcher
05-21 15:12:41.402 1139 1158 W HwActivityManagerServiceEx: HwActivityNotifier end call android.app.IHwActivityNotifier$Stub$Proxy@b9cfb03 for appSwitch under user 0 cost 1
05-21 15:12:41.402 1139 1158 W HwActivityManagerServiceEx: HwActivityNotifier end call android.app.IHwActivityNotifier$Stub$Proxy@8a69288 for appSwitch under user 0 cost 0
05-21 15:12:41.403 25812 12314 I HiAdKit.AppSwitchMonitor: call
05-21 15:12:41.404 1745 1905 D ScenarioService: front pkg : com.huawei.android.launcher launcher: true
05-21 15:12:41.404 1745 1905 I AppsUsage: scnOff:false FgAPP:com.huawei.android.launcher BgAPP:com.*.app
05-21 15:12:41.405 25812 5496 I HiAdKit.AppSwitchMonitor: fromPackage:com.*.app,toPackage:com.huawei.android.launcher
05-21 15:12:41.408 1745 2101 I ash : front pkg : com.huawei.android.launcher launcher: true
05-21 15:12:41.411 1139 1169 W ActivityManager: setHasOverlayUi called on unknown pid: 5389
05-21 15:12:41.412 1139 1370 D EmcomManagerService: forePackage name is com.huawei.android.launcher
05-21 15:12:41.412 1139 1370 D HicomPolicyManager: foreAppInfo = nullpkgName = com.huawei.android.launcher uid= 10052
05-21 15:12:41.412 1139 1370 E HicomPolicyManager: udp acc is not start yet!
05-21 15:12:41.412 1139 1370 D HicomPolicyManager: speed control is not start
05-21 15:12:41.413 1139 1370 E HicomPolicyManager: Network Evaluation is not start yet!
05-21 15:12:41.413 1139 1370 E HicomPolicyManager: foreground app info is null
05-21 15:12:41.416 2397 6027 D [HwRecSys]HwRecSysService: onEvent actionID: 10010 msg:com.huawei.android.launcher
05-21 15:12:41.416 2397 6027 I [HwRecSys]HwRecSysService: cur pkg: com.huawei.android.launcher
05-21 15:12:41.417 1745 2204 I PGServer: report state:10000 event type:2 pid:0 uid:0 pkg:com.*.app to pid: 1745
05-21 15:12:41.417 1745 2204 I SceneReceiver: state type: 10000 eventType:2 pid:0 uid:0 pkg:com.*.app
05-21 15:12:41.417 1745 2204 I PGServer: report state:10000 event type:2 pid:0 uid:0 pkg:com.*.app to pid: 1139
05-21 15:12:41.417 1745 2204 I PGServer: report state:10010 event type:1 pid:0 uid:0 pkg:com.huawei.android.launcher to pid: 1745
05-21 15:12:41.417 1745 2204 I SceneReceiver: state type: 10010 eventType:1 pid:0 uid:0 pkg:com.huawei.android.launcher
05-21 15:12:41.418 1745 2204 I PGServer: report state:10010 event type:1 pid:0 uid:0 pkg:com.huawei.android.launcher to pid: 1139
05-21 15:12:41.418 1745 3260 D HwThermalStateManager: current foreapp pkg : com.huawei.android.launcher
05-21 15:12:41.418 1745 16874 I PGServer: checkPkgType. calling pkg: android
05-21 15:12:41.418 1745 16874 I PGServer: checkPkgType. calling pkg: android
05-21 15:12:41.421 1745 3948 W libc : Set property "sys.aps.gameProcessName" to ""
05-21 15:12:41.421 1745 3948 W libc : Set property "sys.aps.browserProcessName" to ""
05-21 15:12:41.485 1139 1139 I TrafficMonitor: update:rxPkts:4,txPkts:4,rxBytes:1549,txBytes:160
05-21 15:12:41.485 1139 1139 I TrafficMonitor: start expired. level:-1
05-21 15:12:41.485 1139 1139 I TrafficMonitor: gettimer:interval=2000
05-21 15:12:41.686 9623 9623 D NetWorkUtils: mVSimCurCardType is -1
05-21 15:12:41.688 9623 9623 D NetWorkUtils: mVSimCurCardType is -1
05-21 15:12:41.893 508 10449 I audio_hw_primary: usb_ext_get_parameters: check show hires (false)
05-21 15:12:41.894 740 962 I hash_map_utils: key: 'typec_need_show_hires' value: ''
05-21 15:12:41.895 1139 1139 I HwAudioService: check HiRes Icon false
05-21 15:12:41.896 1139 1139 W ActivityManager: Sending non-protected broadcast huawei.intent.action.hideHiResIcon from system uid 1000 pkg null
05-21 15:12:41.896 1139 1139 I HwAudioService: broadcastHiresIntent : false
05-21 15:12:41.898 9623 9623 D StatusBarIconController: setIconVisibility icon is null or visibility not change visibility=false
05-21 15:12:42.112 519 622 I uniperf server: setConfig clientId=1, tagLen=1, tags[0]=8, configs[0]=480000000
05-21 15:12:42.113 1745 2101 I ScalingFreqAdapterUniPerf: ===success setFreq: gpumax:8->480000000
05-21 15:12:42.484 1139 1139 I TrafficMonitor: expired arrive. level:-1
05-21 15:12:42.484 1139 1139 I TrafficMonitor: during_ms:2000,period_ms:2000
05-21 15:12:42.485 1139 1139 I TrafficMonitor: count:96,rx_sum:4,tx_sum:4,rxBytes:1549,during_ms:2000,rx_speed:774.5,tx_speed:80.0,rto:1.0
05-21 15:12:42.485 1139 1139 D HuaweiWifiWatchdogStateMachine: speed: rxpkt:4, rxSpd:774B/s, txpkt:4, txSpd:80
05-21 15:12:42.597 758 13532 I Pged-IPgedBinderService: ****action is 2, pid num is 2***
05-21 15:12:42.597 758 13532 I Pged-Freezer: thawPids
05-21 15:12:42.598 1745 2015 D PgedBinderAdapter: unfrz ok, pid: [29509]
05-21 15:12:42.690 9623 9623 D NetWorkUtils: mVSimCurCardType is -1
05-21 15:12:42.691 9623 9623 W ResourceType: No package identifier when getting value for resource number 0x00000000
05-21 15:12:42.692 9623 9623 E HwNotchUtils: setIconForView iconId is not found
05-21 15:12:42.693 9623 9623 D NetWorkUtils: mVSimCurCardType is -1
05-21 15:12:42.693 9623 9623 W ResourceType: No package identifier when getting value for resource number 0x00000000
05-21 15:12:42.694 9623 9623 E HwNotchUtils: setIconForView iconId is not found
05-21 15:12:42.739 1139 1327 D HwWifiStatStore: handleMessage : 200
05-21 15:12:42.893 528 528 E WifiHAL : enter wifi_get_link_stats
05-21 15:12:42.906 754 754 E wificond: Failed to get NL80211_STA_INFO_CNAHLOAD
05-21 15:12:42.907 1139 1326 E WificondControl: Noise: -90, Snr: 0, Chload: -1
05-21 15:12:42.907 1139 1328 D HwWifiCHRStateManager: handleMessage : 1001
05-21 15:12:42.907 1139 1328 D HwWifiCHRStateManager: handleUpdateChannel:5785
05-21 15:12:42.908 1139 1326 D HwCustWifiStateMachineReferenceImpl: checkRssiOverThreshold newRssi = -65
05-21 15:12:42.909 1139 1326 D WifiScoreReport: Score = 98, wifiConnectivityManagerEnabled = false, lowScoreCount = 4
05-21 15:12:42.972 914 1016 W libc : Set property "ril.hw_modem0.rssi" to "-79"
05-21 15:12:42.980 1756 1756 W libc : Set property "gsm.rssi.sim1" to "-79"
05-21 15:12:43.489 1139 1139 I TrafficMonitor: update:rxPkts:0,txPkts:0,rxBytes:0,txBytes:0
05-21 15:12:43.489 1139 1139 I TrafficMonitor: start expired. level:-1
05-21 15:12:43.489 1139 1139 I TrafficMonitor: gettimer:interval=2000
Hi
I am getting linking error message.I think
Here is the bug log output.
Execution failed for task ':app:processDebugResources'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
> Android resource linking failed
/Users/kerrydss/Desktop/Work/bhg-ecommerce-rn/android/app/src/main/res/values/styles.xml:9:5-14:15: AAPT: error: resource color/colorPrimary (aka com.bhg:color/colorPrimary) not found.
/Users/kerrydss/Desktop/Work/bhg-ecommerce-rn/android/app/src/main/res/values/styles.xml:9:5-14:15: AAPT: error: resource color/colorPrimaryDark (aka com.bhg:color/colorPrimaryDark) not found.
/Users/kerrydss/Desktop/Work/bhg-ecommerce-rn/android/app/src/main/res/values/styles.xml:9:5-14:15: AAPT: error: resource color/colorAccent (aka com.bhg:color/colorAccent) not found.
/Users/kerrydss/Desktop/Work/bhg-ecommerce-rn/android/app/src/main/res/values/styles.xml:20:7-24:15: AAPT: error: resource color/colorPrimary (aka com.bhg:color/colorPrimary) not found.
/Users/kerrydss/Desktop/Work/bhg-ecommerce-rn/android/app/src/main/res/values/styles.xml:20:7-24:15: AAPT: error: resource color/colorPrimaryDark (aka com.bhg:color/colorPrimaryDark) not found.
/Users/kerrydss/Desktop/Work/bhg-ecommerce-rn/android/app/src/main/res/values/styles.xml:20:7-24:15: AAPT: error: resource color/colorAccent (aka com.bhg:color/colorAccent) not found.
Here is my colors.xml
<resources>
<!-- Base application theme. -->
<!-- <style name="AppTheme" parent="Theme.AppCompat.DayNight.NoActionBar"> -->
<!-- Customize your theme here. -->
<!-- <item name="android:textColor">#000000</item> -->
<!-- </style> -->
<style name="AppTheme" parent="Theme.MaterialComponents.Light.NoActionBar">
<item name="android:textColor">#000000</item>
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorAccent">@color/colorAccent</item>
</style>
<style name="AdyenCheckout.TextInputLayout" parent="Widget.MaterialComponents.TextInputLayout.OutlinedBox">
<item name="boxStrokeColor">@color/primaryColor</item>
<item name="hintTextColor">@color/primaryColor</item>
<item name="android:minHeight">@dimen/input_layout_height</item>
</style>
<style name="ThreeDS2Theme" parent="Theme.MaterialComponents.Light.DarkActionBar">
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorAccent">@color/colorAccent</item>
</style>
</resources>
This is my main application.java
package com.bhg;
import com.reactlibrary.AdyenPaymentPackage;
...
public class MainApplication extends Application implements ReactApplication {
private final ReactNativeHost mReactNativeHost =
new ReactNativeHost(this) {
@Override
public boolean getUseDeveloperSupport() {
return BuildConfig.DEBUG;
}
@Override
protected List<ReactPackage> getPackages() {
@SuppressWa rnings("UnnecessaryLocalVariable")
List<ReactPackage> packages = new PackageList(this).getPackages();
packages.add(new AdyenPaymentPackage())
return packages;
}
@Override
protected String getJSMainModuleName() {
return "index";
}
};
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.