generate_upi_code
Build a static UPI (upi://pay) payment payload for India and optionally render it as a QR image. Returns the payload string by default. Static and untracked — nothing is saved to the library. Requires an OpenQR API key.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vpa | Yes | Virtual payment address, e.g. name@bank. | |
| note | No | Optional payment note (≤50 chars keeps every UPI app happy). | |
| size | No | Image size, 96–2048 (default 512). | |
| force | No | Build even when validation reports problems (they return as warnings). | |
| amount | No | Optional amount in INR, e.g. 25.50. | |
| format | No | Return a rendered image instead of the payload string. | |
| payeeName | Yes | Payee name shown in the payer's app. |