---
title: "Action apple_google_pay"
description: "Sends an Apple Pay / Google Pay request in Viber via LiqPay."
---

# Action `apple_google_pay`

> **System ID:** `action_apple_google_pay`

## Description

Sends the client in **Viber** an Apple Pay or Google Pay payment request via the LiqPay gateway. After sending, sets `payment.status = true`. Works only when constants `pay_type` and `deposite` are present; LiqPay keys are in bot constants or instance settings.

## Events (scenario branches)

| Event | When it occurs |
|-------|----------------|
| **success** | Payment request sent to Viber |
| **error** | Missing `pay_type` or `deposite` |

## Parameters

| Parameter | Type | Required | Default | Description |
|-----------|------|----------|---------|-------------|
| `description` | string | No | `"no description in action json"` | Payment description for the client |
| `product_name` | string | No | `"no product_name in action json"` | Product/service name |

Required user constants:

| Constant | Description |
|----------|-------------|
| `pay_type` | Payment type (e.g. `apple`, `google`) |
| `deposite` | Amount in UAH |
| `dae` | Optional: additional data (encoded into the payment) |

## Configuration example

```json
{
  "description": "Order #12345",
  "product_name": "Premium Subscription"
}
```

With user constants, for example: `pay_type: "apple"`, `deposite: "299"`.

## Related docs

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