sample-store-android
sample-store-android copied to clipboard
fab not working by ephemeral_keys
Bug report
Describe the bug
The button to open the shopping cart does not work for me because it makes the POST call to the Heroku server with this call -> ephemeral_keys but it returns a 404 Not Found error.
How can I solve that? I have followed all the steps you indicate on GitHub but I can't get to the payment screen.
Thank you and greetings.
Thanks for reaching out and sorry for the delay. Can you confirm the heroku server is up and running?
Hi, don't worry, thanks for replying. Yes, I followed all the steps you say in the tutorial and it's launched and ready. the problem is what I put, that seems to make some call to the API and doesn't get ephemeral_keys...
hi, I have the same issue, the response was 402 payment required
2022-10-10 02:24:10.372 10848-10891/com.stripe.android.samplestore I/okhttp.OkHttpClient: <-- 402 Payment Required https://circolo-stripe.herokuapp.com/ephemeral_keys (2748ms)
2022-10-10 02:24:10.372 10848-10891/com.stripe.android.samplestore I/okhttp.OkHttpClient: Connection: keep-alive
2022-10-10 02:24:10.372 10848-10891/com.stripe.android.samplestore I/okhttp.OkHttpClient: Content-Type: text/html;charset=utf-8
2022-10-10 02:24:10.372 10848-10891/com.stripe.android.samplestore I/okhttp.OkHttpClient: Content-Length: 0
2022-10-10 02:24:10.372 10848-10891/com.stripe.android.samplestore I/okhttp.OkHttpClient: X-Xss-Protection: 1; mode=block
2022-10-10 02:24:10.375 10848-10891/com.stripe.android.samplestore I/okhttp.OkHttpClient: X-Content-Type-Options: nosniff
2022-10-10 02:24:10.376 10848-10891/com.stripe.android.samplestore I/okhttp.OkHttpClient: X-Frame-Options: SAMEORIGIN
2022-10-10 02:24:10.377 10848-10891/com.stripe.android.samplestore I/okhttp.OkHttpClient: Server: WEBrick/1.4.2 (Ruby/2.6.6/2020-03-31)
2022-10-10 02:24:10.377 10848-10891/com.stripe.android.samplestore I/okhttp.OkHttpClient: Date: Mon, 10 Oct 2022 09:24:13 GMT
2022-10-10 02:24:10.377 10848-10891/com.stripe.android.samplestore I/okhttp.OkHttpClient: Set-Cookie: rack.session=6%2BfyfYG%2FtnIVpl6UWDFfajyH%2FKJNX7xrCWhGXhRBsMunDb5BzXsqGukzV%2BLajApcKczmDFrX8iolEOYJAgWh9NkgzuEiQ3tLhN%2Ft3EMMfT0nSvayGSn1x9iScz4Z4EVHvstiCzAAbKcjZgh9HvVQXZ%2BZA1K9xsYBHjiJkNi558AHzboz9mylxW7DlFGduv4DuoqiVrSFcvK2FZSxq8n0dWf2%2F78b%2FD4B0ULjPEseWgU%3D; path=/
2022-10-10 02:24:10.381 10848-10891/com.stripe.android.samplestore I/okhttp.OkHttpClient: Via: 1.1 vegur
2022-10-10 02:24:10.381 10848-10891/com.stripe.android.samplestore I/okhttp.OkHttpClient: <-- END HTTP (0-byte body)
the server I use was branch heroku20 as suggested by https://github.com/stripe/example-mobile-backend/issues/102
the backend repo is archived now. I wonder is there a new server that works with this demo? Thanks
ok. I figured why, the server was out of date, I switched to the version on https://glitch.com/edit/#!/stripe-example-mobile-backend and it works now.