Skip to main content
Question

Stripe: Unexpected test data for Checkout Session Completed trigger

  • November 27, 2023
  • 5 replies
  • 169 views

cdwyer
Forum|alt.badge.img

The Stripe trigger for Checkout Session Completed should, in my mind, only include `CheckoutSession` objects where the `status` is complete. Currently trying to update a Zap with this trigger, and all the test records have a `status` of open and a `payment_status` of unpaid. Maybe a bug? 🤔

Setup is kinda impossible, since none of the test records have the right fields populated (as they’re all incomplete). TIA for any help you can offer, here!

 

 

Did this topic help you find an answer to your question?

5 replies

Troy Tessalone
Forum|alt.badge.img+14

Hi @cdwyer 

Good question.

I can confirm I’ve seen the same results when testing.

Try completing a successful checkout sessions, then click the button to [Find new records].

Also, you can submit feedback/feature request to Zapier Support to be logged: https://zapier.com/app/get-help


ken.a
Forum|alt.badge.img+6
  • Zapier Staff
  • 6412 replies
  • December 8, 2023

Hi there @cdwyer,

I’m jumping in to see if I can help!

Looking at the API documentation of Stripe the “status” data also includes “open”. Maybe Stripe includes Pending or Incomplete Sessions as well.

https://stripe.com/docs/api/checkout/sessions/retrieve

d5d741866f9a36ac7acea9364a372da9.png
(view larger)

Hopefully, this helps.


cdwyer
Forum|alt.badge.img
  • Author
  • Tinkerer
  • 12 replies
  • December 11, 2023
ken.a wrote:

Hi there @cdwyer,

I’m jumping in to see if I can help!

Looking at the API documentation of Stripe the “status” data also includes “open”. Maybe Stripe includes Pending or Incomplete Sessions as well.

https://stripe.com/docs/api/checkout/sessions/retrieve

d5d741866f9a36ac7acea9364a372da9.png
(view larger)

Hopefully, this helps.

Yep, that’s correct! But by definition, I would have expected the Checkout Session Completed trigger to automatically ignore/filter out Open, Incomplete, etc. sessions from the test data. Not a huge deal, just felt like a bug or small oversight.


ken.a
Forum|alt.badge.img+6
  • Zapier Staff
  • 6412 replies
  • December 12, 2023

Hi @cdwyer,

I completely agree that the Checkout Session Completed trigger should not include incomplete sessions or have an option to not include them.

I’d recommend reaching out to our Support Team to create a feature request on your behalf. You can reach our Support Team here: https://zapier.com/app/get-help

In the meantime, you might be able to filter out those incomplete sessions by adding a filter step to your Zap. You can learn more about Filter by Zapier here: https://help.zapier.com/hc/en-us/articles/8496276332557-Add-conditions-to-Zaps-with-filters

Hopefully, this helps! 

 


  • New
  • 1 reply
  • December 19, 2024

Hey,

Yeah - just to reiterate, there the action is just built wrong.

I believe that the intention is to mimic exactly the Stripe event checkout.session.completed, which when viewing this event in Stripe, it does not fire on anything but completed sessions.

It’s crazy that this hasn’t been fixed after over a year. I’ve got a zap with Checkout Session Completed, and zapier still fires fires on this trigger when a checkout session is Created, not Completed. It’s totally mislabelled, or totally built wrong.

Please can someone escalate this issue as without robust testing and technical knownledge, this may not be noticed.

Thanks