---
title: "Action verify_online_payment"
description: "Verifies an online payment result by the code in the request state."
---

# Action `verify_online_payment`

> **System ID:** `action_verify_online_payment`

## Description

Checks the online payment status after return from the payment provider. Success if `user_request.payment.code` equals `0` (or `"0"`). Use for paid / error branching after `card_pay` or `apple_google_pay`.

## Events (scenario branches)

| Event | When it occurs |
|-------|----------------|
| **success** | Payment successful (`code` = 0) |
| **error** | No payment data, or code is not 0 |

## Parameters

No parameters (`{}`). Data is taken from `user_request.payment`.

## Configuration example

```json
{}
```

## Related docs

- [Actions reference](/en/actionjail/reference/actions-reference.md)
