Payment Links

Learn how to create, customize, and use payment links in PCE.

Overview

Payment Links in PCE allow merchants to collect payments without integrating a full online checkout system. They provide a simple and secure way to accept payments via a hosted link or embedded form.

🚧

Please note payment links should not be confused with integrated online shopping carts.

Creating a payment link

To create a new payment link in PCE, make a POST request to the following endpoint:

POST https://api.pcecommerce.com/checkout/v3/device?echo=true

This call creates a hosted payment form (Link2Pay) for your merchant account. The request includes basic link details, redirect URLs for successful or failed transactions, and optional parameters to restrict the payment amount.

Request parameters

ParameterTypeRequiredDescription
nameStringYesUnique name identifying the payment link.
descriptionStringNoDescriptive text shown at the top of the payment page.
deviceTypeStringYesSet to Link2Pay for payment links.
merchantIdIntegerYesThe merchant’s unique identifier.
enabledBooleanYesActivates or deactivates the link.
onSuccessUrlString (URL)NoRedirect page for successful payments.
onFailureUrlString (URL)NoRedirect page for failed payments.
MinPaymentAmountIntegerNoMinimum allowed payment amount. Prevents users from entering a smaller value.
MaxPaymentAmountIntegerNoMaximum allowed payment amount. Prevents users from entering a larger value.

Example request:

{
  "name": "Omna ACH Demo",
  "description": "Demo for PCE Gateway ACH Flow",
  "deviceType": "Link2Pay",
  "enabled": true,
  "onSuccessUrl": "http://localhost:8000",
  "onFailureUrl": "http://localhost:5500",
  "merchantId": 418284137,
  "MinPaymentAmount": 250,
  "MaxPaymentAmount": 250
}

These values effectively lock the payment amount, ensuring that end users cannot modify the transaction total.

Response fields

When the payment link is successfully created, the API returns a 201 Created response with the following fields:

FieldTypeDescription
idUUIDUnique identifier for the created payment link.
nameStringPayment link name.
descriptionStringDescription displayed to customers.
deviceTypeStringDevice type, such as Link2Pay.
deviceTypeNameStringHuman-readable name for the device type.
UDIDStringUnique device identifier.
enabledBooleanIndicates whether the link is active.
merchantIdIntegerAssociated merchant ID.
dbaStringDoing-business-as name for the merchant.
onSuccessUrlString (URL)Redirect URL for successful transactions.
onFailureUrlString (URL)Redirect URL for failed transactions.
MinPaymentAmountStringMinimum allowed payment amount configured on the link.
MaxPaymentAmountStringMaximum allowed payment amount configured on the link.
updatedString (Timestamp)Timestamp for the last update.

Example response:

{
  "id": "359ce004-43a4-46d2-9481-e2340e478065",
  "name": "Omna ACH Demo",
  "description": "Demo for PCE ACH Flow",
  "deviceType": "Link2Pay",
  "deviceTypeName": "Payment Link",
  "UDID": "B1D8BE81-41E8-47D5-99E6-023B1CD9C58E",
  "enabled": true,
  "onSuccessUrl": "http://localhost:8200",
  "onFailureUrl": "http://localhost:5200",
  "merchantId": 1000016337,
  "MinPaymentAmount": "250",
  "MaxPaymentAmount": "250",
  ...
}

Adding custom fields

You can add additional fields to your payment pages in Payment Links Settings under the PCE UI.

Select Add Custom Field and define the field’s name and type.

Field typeDescription
TextAccepts alphanumeric or short text entries.
Boolean (Yes/No)Displays a toggle for true/false options.
Number (Integer)Accepts whole numbers only.
DecimalAccepts numeric values with decimals.
List (Comma-Separated String)Allows multiple selectable options separated by commas.

Managing payment links

To view or edit existing payment links in the PCE Portal, go to Settings → Payment Links, and click the link name.

You can:

  • Use URL: Direct customers to a hosted PCE payment page.
  • Embed HTML: Integrate the payment form into your own website.

Remember to click Save after making any changes.

URL parameters

You can pass optional query parameters to pre-fill or customize fields in the payment form.

Query ParameterValuesDescription
AddressStreet addressPopulates billing address line 1
AllowPartial1 or 0Allows partial payments if 1
AmtNumeric floatAmount due
CityCityPopulates billing city
ClientDataJSON objectCustom metadata for reporting
CustomerNameTextBilling contact name
customerIdPCE customer IDLinks to an existing customer record
EmailEmail addressBilling email
hideRequired1 or 0Hides the “required” label
Langen / esDisplay language
MemoTextInvoice memo text
ShowMemo1 or 0Displays memo field on payment page
PhoneNumberBilling phone number
CellNumberMobile number
PONumberAlphanumericPurchase order reference
showHeader1 or 0Displays merchant info at the top
showOrder1 or 0Displays order info or device name
StateTextBilling state

Sandbox vs production

Security filters protect payment links from fraudulent activity. Production environments enforce stricter rules, which can affect how some links behave compared to sandbox testing.

Use sandbox for testing and validation before deployment to production.


© 2025 Priority Technology Holdings LLC. All rights reserved.