#DeadlyData-400
1 messages · Page 1 of 1 (latest)
Hi there, can you share the request ID for the error?
And can you share you Android code snippet?
reqestid: req_QBx5WnbAhxVeNm
screen shot from my android code, and server
statusCode: 400,
requestId: 'req_QBx5WnbAhxVeNm'
},
rawType: 'invalid_request_error',
code: 'parameter_missing',
doc_url: 'https://stripe.com/docs/error-codes/parameter-missing',
param: 'amount',
detail: undefined,
headers: {
Sorry, server is busy!
Looking!
Can you log out your req.body on your server and send a new request?
request body { currency: 'usd', items: [ { id: 'photo_subscription' } ] }
👋 bismark has to head out, but i'm hopping in
and what do you get when you log itemMap in your fetchPaymentIntent function?
amount=13.0, id=photo_subscription}
i tried putting a hardcoded value for amount just to test it
and its still not working
This is what i am sending to the server
this is whats displayed when i log it in android
I/paymap: {currency=usd, items=[{amount=13.0, id=photo_subscription}]}
Can you show me where you're logging req.body on your server?
Hmm... are you just logging payMap in fetchPaymentIntent? Do you get the same thing when you log requestBody?
thsi is what i get
when i log request body
request body {
currency: 'usd',
items: [ { amount: 13, id: 'photo_subscription' } ]
from the server
so it doesnt make sense
when i log it on android i get this
so you think you know what it is?
Okay, so i think i fixed, that error. But now i am getting another one
StripeInvalidRequestError: No valid payment method types for this Payment Intent. Please ensure that you have activated payment methods compatible with your chosen currency in your dashboard (https://dashboard.stripe.com/settings/payment_methods) or specify payment_method_types
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
I already have accept cards enabled on my dashboard
@brittle mica Just checking in - do you have an ID I can look at?