Closed alexghiu closed 3 years ago
@alexghiu
I can see this error message in your logs:
E/AndroidRuntime( 7715): Caused by: java.lang.IllegalArgumentException: baseUrl must end in /: http://192.168.1.136:3000/my
Please try to insert a correct baseUrl first and see if the crash still exists
@bennibau thanks for reaching out. Indeed that did the trick! Much appreciated!
I guess I must of misinterpreted the following bits in the README:
The app uses these endpoints for payment submit and payment details calls:
<your base url>/payment
<your base url>/payment/details
After following your suggestion and added the /
at the end of the base path:
I had a look at the iOS code. It adds the /
after the baseUrl
:
https://github.com/intive-opensource/adyen_flutter/blob/master/ios/Classes/SwiftFlutterAdyenPlugin.swift#L95
https://github.com/intive-opensource/adyen_flutter/blob/master/ios/Classes/SwiftFlutterAdyenPlugin.swift#L156
On Android, it seems that the app crashes without that /
there. Is it possible to align the two?
What I'm looking to end up with on both platforms is a request that gets sent to:
https://foo.bar/my/payment
https://foo.bar/my/payment/details
So baseUrl
would need to be https://foo.bar/my
or https://foo.bar/my/
I'm happy to submit a PR for an iOS code change.
I'm afraid that I'm a bit intimidated by the body of getService
so I'm inclined to leave the Android code alone.
you are correct this is indeed a bug. we are using two different base urls in our build environment. one with slash and one without. you can create a PR and I will review it
Let me know what you think about PR https://github.com/intive-opensource/adyen_flutter/pull/4.
fixed with #4
Really appreciate the time you've put into developing this plugin!
Description
On Android, submitting the card details form, causes the following exception to be shown in the
flutter run
output:The application completely crashes with these last few lines:
Screenshots
Environment details
Here is also a dump of
flutter doctor -v
:Questions
Any idea on whats is going wrong and how to fix it?