Payment links
Payment links let customers make a secure, one-time payment online. Each link opens your hosted payment page. Send it with the built-in email template, or copy the link into an email, invoice, text message, or payment button.
Every link has its own lifespan and can expire up to one year after it's created. After that it no longer works, and you create a new link if payment is still needed.
Create a link with the API
Send a POST request to the /payment-links endpoint with these fields:
| Field | Required | What it is |
|---|---|---|
| expiresAt | Yes | When the link expires. Must be within one year from now. |
| total.amount | Yes | The amount to charge |
| total.currencyCode | Yes | Three-letter ISO 4217 currency code, such as USD |
| doCapture | No | true to capture for settlement; false to authorize only |
| shopperEmailAddress | No | Where the receipt is sent |
| shopper | No | The customer record to link to the payment |
POST https://<sandbox-api-host>/payment-links
{
"expiresAt": "2027-01-31T23:59:59Z",
"doCapture": true,
"total": { "amount": "125.00", "currencyCode": "USD" },
"shopperEmailAddress": "jordan@example.com"
}The response includes the link's id, which you use to look up or update the link, and its url, which you send to the customer.
Note
Create a link in the merchant portal
- 1Sign in to the merchant portal and open Pay by Link.
- 2Enter the amount, currency, and expiry date.
- 3Send it with the email template, or copy the link to share it yourself.
Prefer no code at all? See ONKORE's payment links product page.
Gateway services in this section are provided through ONKORE's processing partner, Elavon. Developer accounts, sandbox and production credentials, the developer portal, and the merchant portal are provided by Elavon, so you'll see the Elavon name in those emails, portals, and API addresses. ONKORE remains your point of contact.
