# Trigger Error Boundary Event with PHP

**URL:** <https://forum.camunda.io/t/trigger-error-boundary-event-with-php/44561>\
**Category:** Discussion & Questions\
**Tags:** tutorials\
**Created:** [May 15, 2023, 2:14am UTC](https://forum.camunda.io/t/trigger-error-boundary-event-with-php/44561 "2023-05-15T02:14:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jenneffer\_Jiminit](https://forum.camunda.io/user_avatar/forum.camunda.io/jenneffer_jiminit/32/23186_2.png) [@Jenneffer\_Jiminit](https://forum.camunda.io/u/Jenneffer_Jiminit)\
**Post date:** [May 15, 2023, 2:14am UTC](https://forum.camunda.io/t/trigger-error-boundary-event-with-php/44561/1 "2023-05-15T02:14:40Z")

</div>

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](https://docs.camunda.io/docs/components/modeler/bpmn/error-events/) on the UserTask element. How to trigger the [Error Boundary Event](https://docs.camunda.io/docs/components/modeler/bpmn/error-events/) 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)

 ![payfee event boundary](https://forum.camunda.io/uploads/default/original/3X/8/f/8fe13b66d51eec9e8c21563ee457d08c6a54fbc3.png)

---

<div class="post-metadata">

**Author:** ![Ingo\_Richtsmeier](https://forum.camunda.io/user_avatar/forum.camunda.io/ingo_richtsmeier/32/25968_2.png) [@Ingo\_Richtsmeier](https://forum.camunda.io/u/Ingo_Richtsmeier)\
**Post date:** [May 15, 2023, 12:00pm UTC](https://forum.camunda.io/t/trigger-error-boundary-event-with-php/44561/2 "2023-05-15T12:00:35Z")

</div>

Hi @Jenneffer_Jiminit,

you have to call the ThrowError command ([Zeebe API (gRPC) | Camunda Platform 8 Docs](https://docs.camunda.io/docs/apis-tools/grpc/#throwerror-rpc)) with the error code matching your boundary event from your client.

Hope this helps, Ingo

---

<div class="post-metadata">

**Author:** ![system](https://forum.camunda.io/uploads/default/original/3X/5/8/58d50142eacca605d35cb1ef9e6b86ae85f49436.png) [@system](https://forum.camunda.io/u/system)\
**Post date:** [January 31, 2024, 10:50am UTC](https://forum.camunda.io/t/trigger-error-boundary-event-with-php/44561/3 "2024-01-31T10:50:08Z")

</div>

Closed on January 31, 2024, 10:50am UTC


