# decode_payment_group

> Decode a payment group from base64 strings.

```python
from x402_algorand import decode_payment_group
```

```python
def decode_payment_group(
    payment_group: list[str],
    payment_index: int,
) -> TransactionGroupInfo
```

Decode a payment group from base64 strings.

## Parameters

- `payment_group` (`list[str]`, required):
List of base64-encoded transactions.

- `payment_index` (`int`, required):
Index of the payment transaction.

## Returns

- `returns` (`TransactionGroupInfo`):
TransactionGroupInfo with all decoded transactions.

## Raises

- `TransactionDecodeError`: If decoding fails (subclass of `ValueError`).

Source: [x402_algorand/utils.py](https://github.com/x402-avm/x402-algorand/blob/main/x402_algorand/utils.py#L441)

Source: https://x402-avm.github.io/reference/python/x402-algorand/decode-payment-group
