Skip to main content
Payment Links let you create hosted checkout URLs that customers can open from invoices, messages, social media, or email campaigns. A link can collect a fixed amount or allow the customer to enter an amount within configured limits.
When a customer completes payment through a payment link, Payfonte sends a payment webhook to your configured webhook endpoint. Use the webhook event as your source of truth before fulfilling the order or marking an invoice as paid.
See Webhooks and Callbacks for the payment.completed payload, signature verification, retry handling, and webhook URL priority.

Endpoints

Integration Steps

1

Create the payment link

Call POST /payments/v1/payment-links with title, description, currency, country, and amount settings. Send your client identifier in the client-id header.
2

Share the URL

Use the returned shortURL or longURL in invoices, emails, chats, social posts, or payment reminders.
3

Receive the payment webhook

After the customer pays, Payfonte sends a payment webhook to the configured endpoint. Verify the webhook signature and process the event idempotently.
4

Review link performance

Use GET /payments/v1/payment-links/{id} to retrieve the link, collected totals, channel breakdown, and provider availability.
Example response:

Request Fields

Amount Modes

Fixed amount

Use isAmountFixed: true when the customer must pay one exact amount. Send amount with a value greater than zero.
Use isAmountFixed: false when the customer can enter the payment amount. Send minimumAmount and maximumAmount to define the allowed range.

Custom Fields

Use customFields when you need extra payer information before checkout is created. Choice fields require options. Supported customFields.type values:
The response includes the payment link fields and an analytics object with collected amount, transaction count, channel breakdown, revenue history, available providers, and available channels.

Webhook Completion

Payment links use the same collection webhook flow documented in Webhooks and Callbacks. When a customer successfully completes a payment link checkout, Payfonte sends a payment webhook such as payment.completed.
1

Verify the signature

Validate x-webhook-signature with your client-secret before processing the event.
2

Use idempotency

Track processed reference and status values so retries do not trigger duplicate fulfillment.
3

Fulfill after final status

Mark invoices, orders, or balances as paid only after receiving and validating a final webhook status such as success.

Important Rules

Amount values are sent in minor units. See Amount Specification.
Do not rely only on customer redirect behavior to confirm payment. Always process the payment webhook before fulfilling value.

API Reference

View payment link endpoint definitions and request schemas.

Webhooks

Receive and verify payment completion events.

Amount Specification

Understand how to send amount values in minor units.