#keiron-orders
1 messages ยท Page 1 of 1 (latest)
Hi @atomic nest
are you using this api https://stripe.com/docs/api/orders_v2 ?
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
yep using 'stripe_version' => '2020-08-27;orders_beta=v3'
you could use the order events https://stripe.com/docs/api/events/types#event_types-order.payment_succeeded
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
there are other order events also you could listen to
depending on what you're looking for
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?
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
https://dashboard.stripe.com/test/webhooks for test mode
https://dashboard.stripe.com/webhooks for live mode
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
let me know if you need any more help
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].
I'm not sure ๐ค
you're logged in? stripe login
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
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.
I think that's the best approach
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
But not use Checkout? right?
Orders is really good product for building Checkout-like experience but with your own code
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?
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
let me know if you need any more help