Payment link button generator
hopi_payment_link_button_generatorMake a payment link and a plain text pay button for it. type paypalme builds https://paypal.me/ with an optional amount and PayPal currency code (whole units only for HUF, JPY and TWD); revolut builds the general https://revolut.me/ link, which never carries an amount; other takes any https payment link (http and javascript: are refused). Returns the link, the button HTML for a web page and an email signature version (a table with inline styles), using your label and colours; colours below WCAG AA contrast (4.5:1) are refused. type donate returns PayPal's own Donate button SDK code instead, using hosted_button_id for a business account or business (email or payer ID) for a personal one. Nothing is checked with PayPal or Revolut. The tool page also draws a QR code for the link. Source: https://hopi.co.uk/payment-link-button-generator/
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | For type other: the full https payment link | |
| size | No | Button size | medium |
| type | No | Kind of link | paypalme |
| label | No | Button text. Defaults to Pay with PayPal, Pay with Revolut or Pay now | |
| shape | No | Corner style | rounded |
| amount | No | Optional amount for a PayPal.Me link, up to two decimal places | |
| newTab | No | Open the link in a new tab | |
| revtag | No | Revolut Revtag, with or without the @ | |
| currency | No | Optional PayPal currency code added after the amount | |
| donateId | No | For type donate: the hosted button ID (business) or the PayPal email address or payer ID (personal) | |
| paypalMe | No | PayPal.Me name: letters and numbers, up to 20 characters. A pasted paypal.me link is fine | |
| background | No | Button colour as a hex code | #166534 |
| textColour | No | Text colour as a hex code | #ffffff |
| accountType | No | PayPal account for type donate | business |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| html | No | ||
| link | No | ||
| type | No | ||
| label | No | ||
| notes | No | ||
| summary | Yes | ||
| contrast | No | ||
| warnings | No | ||
| emailHtml | No | ||
| background | No | ||
| source_url | Yes | The tool's page on hopi.co.uk (cite or open to check the figure) | |
| textColour | No |