#sothomas
1 messages · Page 1 of 1 (latest)
Hi 👋 can you elaborate on what you're trying to do and where you run into problems?
I get a build error when I attempt to run example.
Process: com.stripe.example, PID: 19840
java.lang.RuntimeException: Unable to create application com.stripe.example.ExampleApplication: java.lang.IllegalArgumentException: Expected URL scheme 'http' or 'https' but no scheme was found for put yo...
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6790)
at android.app.ActivityThread.-$$Nest$mhandleBindApplication(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2134)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loopOnce(Looper.java:201)
at android.os.Looper.loop(Looper.java:288)
at android.app.ActivityThread.main(ActivityThread.java:7898)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:936)
Caused by: java.lang.IllegalArgumentException: Expected URL scheme 'http' or 'https' but no scheme was found for put yo...
Did you set up a backend server for the example app and provide the example with the URL for that?
Hmm, where are the instructions to do that in the repo? I don't see anything about that in the README.
That seems like a really bad design for an example project.
If that build error is intended.
I think your assumption that I need to do that for the example project is probably wrong.
In the instructions for setting up the example app, they're available here:
https://github.com/stripe/stripe-android/tree/master/example#configure-the-app
Okay thanks, I will try this
In gradle.properties, can you confirm what this value is?
# Optionally, set to a Connect Account id to test Connect
STRIPE_ACCOUNT_ID=
Is this the secret key?
No, that is the ID of a Connected Account, if you aren't using Stripe Connect then I don't believe that is necessary to set up.
I was able to run the app, but when I attempt to Connect a US Bank Account, I get:
java.lang.Exception: com.stripe.android.core.exception.AuthenticationException: Invalid API Key provided: https://*****************************keys
I'm just trying to demo presentWithPaymentIntent
Did you put a URL in a field that was expecting an API key?
You can find your API keys in your Stripe dashboard:
https://dashboard.stripe.com/test/apikeys
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
🤦♂️ Thank you for catching that
Now I'm getting a different error:
com.stripe.android.core.exception.InvalidRequestException: No such payment_intent: 'pi_3MtA8pCFNnyo2Y601QLd2Oak'
This happens when I tap "Confirm with bank account". Again, just trying to demo presentWithPaymentIntent for collecting card/bank account payment methods for future use. If you can think of a better way...