#riggzby-products

1 messages · Page 1 of 1 (latest)

weary jacinth
#

Hey, what in this context is the 'latest API'?

whole juniper
#

Hi, thanks for coming back to me

weary jacinth
#

If you mean Payment Intents, then Products/Prices don't work with them directly as of today

whole juniper
#

We take deposit payments and balance payments for holidays - so the amounts can vary depending on the amount the holiday costs.

We're using the API dated 2020-08-27

#

Ok, is there a different method we should be looking at?

weary jacinth
#

API version is mostly irrelevant. What APIs are you calling when you say you're transitioning from Charges?

whole juniper
#

We've attempted to start with the stripe.redirecttocheckout method

weary jacinth
#

Directly from Stripe.js, or via creating a Checkout Session?

whole juniper
#

creating a checout session

weary jacinth
#

(Checkout does work with Products/Prices, but not required)

#

What specific issues are you running into?

whole juniper
#

let me just grab the message I'm seeing in the dashboard

#

The error returned is "no such plan as 1.00"

#

with this response:

weary jacinth
#

Can you share the req_xxx ID for that please?

#

id should be the ID of a Price object from your Dashboard/account

whole juniper
#

req_xxx ID?

weary jacinth
#

It'll be rjght there on that Dashboard page

whole juniper
#

req_u08eiLVi3TJFFt

#

right, yes - can see that the ID is a nonsense there isn't it

weary jacinth
whole juniper
weary jacinth
#

No, that's what you're using right now

whole juniper
#

Thanks - does that one not require a price/product ID however?

weary jacinth
whole juniper
#

Ooooo

weary jacinth
#

But generally recommended to model your Products/Prices in the Dashboard for most cases

whole juniper
#

yeah, that really doesn't fit with our business model. Each transaction is almost bespoke based on what a customer has purchased. For example flight prices vary dynamically based on a rate set by an airline and can change daily for the same ticket

#

we can't really set up a product with a set price if we don't even know what the price is going to be until the time of transaction

#

This has given me plenty to go and have a play with though. Really very much appreciate your time looking at this for me.

weary jacinth
#

Are you fixed to using Checkout?

whole juniper
#

no not really

weary jacinth
#

You could just use Payment Intents in a custom flow, which just expect a amount & currency param

whole juniper
#

Right, that may match more closely to what were previously doing.

weary jacinth
#

Yeah it will

#

No need for Products/Prices that way

whole juniper
#

I'm guessing that the alternative just means we end up with a load of bespoke products being visible in the dashboard?

weary jacinth
#

With Checkout? Yep

whole juniper
#

ok, that wouldn't be the end of the world I guess but may get lengthy over time!

#

Will go and have more of a play and see where I get to. Thanks for your help!