Trigger Error Boundary Event with PHP

Hi experts,

I have a reservation workflow that require payment by a user using payment gateway. I have developed the user interface for the payment page using PHP Laravel. I attach the Error Boundary Event on the UserTask element. How to trigger the Error Boundary Event in PHP when there’s error during making payment?

Expected result:
The Error Boundary Event will be triggered when there’s error when user want to make payment. (i.e Invalid credit card number, insufficient funds, expired card etc)

Hi @Jenneffer_Jiminit,

you have to call the ThrowError command (Zeebe API (gRPC) | Camunda Platform 8 Docs) with the error code matching your boundary event from your client.

Hope this helps, Ingo