#yungfetus

1 messages · Page 1 of 1 (latest)

indigo merlinBOT
clear field
#

mind sharing an example request ID for the error'ing request? I can have a look

#

also, hello!

indigo merlinBOT
ornate wharf
#

req_jZHHabe4yVXnR9

#

Also just to mention my goal here is to have set a fixed tax rate based on a users geolocation, different tax rates for each location

#

Using ruby

#

error is occuring in Stripe::Checkout::Session.create

clear field
#

thanks, looking

#

that's an unrelated request

ornate wharf
#

yes, sorry

clear field
#

ok looking, give me a sec

ornate wharf
#

thanks

clear field
#

so instead of passing amount and currency and currency under line_items , you pass those under price_data

ornate wharf
#

so inside line items it's price:{price_data: ...}

#

and this works without a price_id?

clear field
#

yes, price_data allows you to pass any custom amount and behind the scenes it creates a Price for that amount (but you don't need to touch that Price ID as part of your request)

#

the API ref link I sent will help

ornate wharf
#

ok thanks, i'll give it a go

#

worked like a charm. thank you so much!

clear field
#

np!