#keiron-orders

1 messages ยท Page 1 of 1 (latest)

atomic nest
#

๐Ÿ‘‹ happy to help

lucid agate
#

Hi @atomic nest

atomic nest
lucid agate
#

yep using 'stripe_version' => '2020-08-27;orders_beta=v3'

atomic nest
#

there are other order events also you could listen to

#

depending on what you're looking for

lucid agate
#

hmm, I should be receiving all events including those, but I don't receive the order. ones

#

I will check my config in Stripe now

#

Could you remind me where to look to set the types of events to receive within the Stripe website please?

atomic nest
#

you should double check 2 things:

  • if you're using the cli, update to the latest Stripe Cli version
  • in your webhook endpoint configuration whether the events are selected or not
lucid agate
#

aha

#

yes my CLI is old I think

atomic nest
# lucid agate I will check my config in Stripe now
lucid agate
#

thanks

#

just testing the update now

atomic nest
#

let me know if you need any more help

lucid agate
#

I have updated the cli. I am still not receiving the order events. However I suspect this is because I am running Stripe API Version [2019-05-16].

atomic nest
#

I'm not sure ๐Ÿค”

lucid agate
#

Do you know how to change the Stripe API Version used by the cli?

#

ah --api-version

atomic nest
#

you're logged in? stripe login

lucid agate
#

yep

#

I think the issue is the stripe CLI doesn't allow me to specify the API version therefore none of the order events are being sent to my listener

#

Can you think of an alternative approach for taking payments? We are using Orders to just take payment for a single product with 3 different price points

atomic nest
#

I just checked, the beta events are now redacted from the Stripe CLI

#

the only way to test them is to have a hosted url

#

using ngrok for e.g.

lucid agate
#

ah

#

thanks

atomic nest
#

I think that's the best approach

lucid agate
#

I'm going to move up to my staging environment and test against that as it has live URLs

#

is there an alternative for Orders? We just want to take payment for one product type that has 3 price points

#

since it is in beta perhaps we should avoid Orders for now

atomic nest
#

But not use Checkout? right?

#

Orders is really good product for building Checkout-like experience but with your own code

lucid agate
#

Correct - we want to host the entire order process, don't want to take the member to Stripe at any point

#

Is there another way to take a single payment and keep the user on our site that doesn't involve using the Order API?

atomic nest
#

yes you could use the Payment Intent API, and you could store the prices in the metadata, since the Payment Intents only supports an amount

lucid agate
#

Ah I see

#

thank you

atomic nest
#

let me know if you need any more help