Text2Pay
One of our most popular features enables you to generate payment links on demand through the API and deliver them directly to cardholders via SMS or email.
The API call needed to invoke this activity is shown here: Text to Pay
With a single API call, you can configure the payment experience by controlling visible and read-only fields, customizing form behavior and styling, and including a personalized message for the recipient. The payment form can be pre-populated with customer information such as name, address, and Patient ID. You may also provide reference data or other contextual information, which will be associated with the transaction after authorization.
Field Descriptions
MessageType: ( TEXT,EMAIL,URLONLY ) RefID: ( user defined field ) RPGUID: ( user defined field )
MessageBody: (here you can create a custom message to send via text or email) AcctHolderID: ( NOT USED ) Amount: ( payment amount ) ConsentID: ( NOT USED ) DueOn: ( can be shown in message to indicate when payment is due ) EINDEX: ( can be used to indicate encrypted webhook ) MerchID: ( Must provide a valid Merchant record index for the Account used ) TXID: (NOT USED) WType: ( use SW here ) RedirectURL: ( we can redirect to your site and pass real-time info after authorization ) WidgetURL: ( we will provide you the proper address for your payment form ) ExpiresOn: ( we can display the link expiration date within your message) SingleUse: ( enter a 1 to restrict the link to be used more than one time for payment ) OptParam: (this provides a means for us to configure and style the payment form) Questions: ( NOT USED )
Defining your Form
The OPTPARAM field defines the payment form in terms of visible fields, read-only fields, styles and behavior. We use a specific tool to generate this value found here https://easypay8.com/byowidget/ . You may select the options you desire then press GENERATE OPTPARAMS. We are always glad to assist you with defining your form as this is a very important part of collecting payments.
Sending a Custom TEXT Message
here you can use the MessageBody Field
When sending a TEXT/SMS, it is best to keep the message short and sweet. it is for this reason we have a DEFAULT message which you can use by simply leaving this field empty.
We will simply pull a few details from your request such as:
MERCHANT NAME, AMOUNT, PAYMENT DUE DATE, LINK EXPIRATION
The resulting text message will read as Follows
You have a Payment Due to ( Merchant Name ) of (Amount) due on ( Due Date ) . Follow the link below to make payment (Payment Link) This Link Expires on ( Exp Date )
If you decide to create your own message we will append the following to your message:
Follow the link below to make payment (Payment Link) This Link Expires on ( Exp Date )
Sending a Custom EMAIL Message
For the Email Option you must create a custom message. To help create your message we have provided some Variable fields: Please include the "||" characters.
||Merch1|| when we see this in your message we will replace it with the actual Merchant name
||PayLink|| when we see this in your message we will replace it with the payment link
||DueOn|| when we see this we will replace it with the Date you specify for payment due date
||ExpOn|| when we see this we will replace it with the Date you specify for payment link expiration Date
Here is an example Custom Message for EMAIL using the variables above
<b>Dear John Doe,</b><br /><br />This is a friendly reminder that you have an outstanding balance of <br /> $26.56 for your visit on 5/5/2026 with ||Merch1||. <br /><br />This payment is due on ||DueOn||. You can easily review your statement and submit your payment securely through our patient Portal <br /><br />Or you can also safely follow the link shown here.<br />||PayLink||<br/>This Link Expires on ||ExpOn||<br /><br /><b>Thank You<b><br/>||Merch1|| Billing Dept</b>
Here is the resulting email message:

Last updated
Was this helpful?