-
Notifications
You must be signed in to change notification settings - Fork 205
create_payment_intent always returns 500 #74
Comments
I'm also facing same issue, create_payment_intent always returns status code 500. Any help would be appreciated! |
I'm having trouble reproducing this, but it looks like one of the Emoji in our fake Emoji store is missing from the list in the .rb file, or there's some sort of issue with the unicode in the request. Is this on iOS or Android? |
Hi @davidme-stripe, This is on iOS. |
Any update on this issue? @davidme-stripe |
@SagarUnagar PR #75 is a proposed fix for this issue |
Can you try the latest |
@mshafrir-stripe @david-stripe I'm still facing same issue. I deployed as mentioned in the documentation and followed all steps. It also deployed successfully on Heroku. Now I'm calling using Is there anything missing here? |
@SagarUnagar, can you check your Heroku logs for "Can't find price for"? (It's in "More ↕︎" -> "View Logs" on your Heroku dashboard.) We're still unable to reproduce this internally, so I'm hoping the new log message will help. |
Here are logs,
` |
@SagarUnagar, did you customize the Basic Integration app to add a 🐑? You'll want to add it to the We should probably make this more obvious, I'll look into adding better messaging around this. |
@davidme-stripe Thanks for your response. :) Sorry, I didn't get you what's the exact issue? I'm not a web guy, I'm a mobile developer. Can you please explain to me what is the cause of this issue? And what is a possible solution? |
@SagarUnagar No problem! We tried to make the Basic Integration app similar to a real store, so the prices are determined by the server instead of the client. If the prices were determined solely by the client, a user could hack their phone to change what price is charged. This error is happening because the server doesn't know what the price of your item (🐑) should be. To fix this:
Once you've pushed to Hope that helps! |
@davidme-stripe the problem: when using this method I simply clicked on the purple icon and proceeded to enter my info and created a backendUrl to be used for my app. All works except when it comes to processing the payment as my inventory items(located in firebase) are not able to be retrieved. Therefore, when placing order I get this in swift: "Failed to create a Payment Intent: unknown" After getting this error I examined the logs in Heroku and came across this: RuntimeError - Can't find price for Guacamole so it seems that the payment isn't going through because it can not retrieve the price for this item. Finally I figure I just add "Guacamole" => 2000 to the list above and run it. SADLY this did not work. I have no prior experience with ruby but when I applied the above to the list I still got the same error: RuntimeError - Can't find price for Guacamole I did basically what you commented above but it is unable to retrieve prices for items I add to the EMOJI_StORE |
It seems this repo stopped working with the latest Stripe releases. I'm testing it against the latest standard integration example. The heroku server returns 500 all the time for create_payment_intent endpoint. Any ideas?
Here are the logs:
The text was updated successfully, but these errors were encountered: