Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

resource_missing error #4

Open
ghost opened this issue Jan 7, 2021 · 5 comments
Open

resource_missing error #4

ghost opened this issue Jan 7, 2021 · 5 comments

Comments

@ghost
Copy link

ghost commented Jan 7, 2021

I am getting the following error:

flutter: {"error":{"code":"resource_missing","doc_url":"https://stripe.com/docs/error-codes/resource-missing","message":"No such price: 'price_1HFw3QAQHy2zYPZft7bbrtWZ'","param":"line_items[0][price]","type":"invalid_request_error"}} [VERBOSE-2:ui_dart_state.cc(177)] Unhandled Exception: DioError [DioErrorType.RESPONSE]: Http status error [400] #0 Server.createCheckout (package:flutter_stripe_demo/checkout/server_stub.dart:37:7) <asynchronous suspension> #1 redirectToCheckout (package:flutter_stripe_demo/checkout/stripe_checkout_mobile.dart:8:21) <asynchronous suspension>

What could I do to fix this issue?

@MarcinusX
Copy link
Owner

You have it written in the code. The price id you used is not registered in your stripe account.

@ghost
Copy link
Author

ghost commented Jan 8, 2021

How do I register the price id in my stripe account?

@MarcinusX
Copy link
Owner

You do it in stripe dashboard - price=product

@Charslanmirza
Copy link

im getting the same issue as

{error: {code: resource_missing, doc_url: https://stripe.com/docs/error-codes/resource-missing, message: No such customer: 'cus_PD6LSQd0tEf6Dh', param: id, request_log_url: https://dashboard.stripe.com/test/logs/req_zgxnSj0ZmjQvcL?t=1702903325, type: invalid_request_error}}

how can i solve please help

@Charslanmirza
Copy link

@MarcinusX

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants