#taggy
1 messages · Page 1 of 1 (latest)
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 don't see any parameter in your request. How are you making the request? Can you share your code here? https://dashboard.stripe.com/test/logs/req_jiGXw5cvmtclLm
it's in test mode so i don't mind sharing the code
{
"success_url": "https://google.com",
"cancel_url": "https://google.com",
"mode": "subscription",
"customer": "cus_MfqDz59syRWd0S",
"line_items": {
"price": "price_1LvJwhDdHYC0pbbCTGjnbGld"
}
}
Can you share more of your code? This is just an object, can you share the code making the actual API request?
@idle frost I'm using flutterflow to create the api call so that makes things a little complicated aha
not sure if you are familiar but here's what it looks llike
I'm not familiar with this, but I see the error. You are using JSON to send the request, but Stripe needs to be form-encoded as mentioned here: https://stripe.com/docs/api
ah ok - the problem i have doing that is i cannot set price in an array like it shows in the documentation, any way around this?
Can you try line_items[0][price] and line_items[0][quantity]
didn't seem to like that one unfortunately!
It seems to have worked, the issue is the price ID you passed doesn't seem to exist.
yeah that's weird, i just tried both a price id from test mode and not test mode and neither seemed to work
feel like it's getting closer though!
Can you share the request_log_url where you see that error?