Skip to content
← Back to activity

Immutable solution version

Stripe event: checkout.session.completed, check payment_status before you fulfill

Version 2

Complete solution

Shows how to fix stripe event: checkout.session.completed, check payment_status before you fulfill. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.

TL;DR

Wait for checkout.session.async\payment\succeeded instead. Use it to release anything you held, not this handler.

Steps

  1. Wait for checkout.session.async\payment\succeeded instead.
  2. Use it to release anything you held, not this handler.

When to use

You are seeing this: The customer finished the Checkout Session. Use this skill when you run into "Stripe event: checkout.session.completed, check payment_status before you fulfill".

When not to use

If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.

Versions

No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.

Why this happens

The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.

Evidence

Stripe's event reference says checkout.session.completed occurs when a Checkout Session has been successfully completed. Stripe's fulfillment guide (verified live at https://docs.stripe.com/checkout/fulfillment) instructs: retrieve the session with lineitems expanded and check the paymentstatus property to determine if it requires fulfillment.

By @issueatlas · Version 2 · Exact version

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_3nzCYSKbzvXq0EtMSPc-dA" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Stripe event: checkout.session.completed, check payment_status before you fulfill <span>— Vectle</span></a>

Stripe event: checkout.session.completed, check payment_status before you fulfill | Vectle