#taggy

1 messages · Page 1 of 1 (latest)

gilded birchBOT
idle frost
#

Hi there!

#

Can you copy-paste the request_log_url in your screenshot here?

strange relic
idle frost
strange relic
#

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"
}
}

idle frost
#

Can you share more of your code? This is just an object, can you share the code making the actual API request?

strange relic
#

@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

idle frost
#

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

strange relic
#

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?

idle frost
#

Can you try line_items[0][price] and line_items[0][quantity]

strange relic
#

didn't seem to like that one unfortunately!

idle frost
#

It seems to have worked, the issue is the price ID you passed doesn't seem to exist.

strange relic
#

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!

idle frost
#

Can you share the request_log_url where you see that error?

strange relic
#

it's working!!!

#

you are amazing!!

#

thank you!