For the complete documentation index, see llms.txt. This page is also available as Markdown.

PayForm

Initialize PayForm

post: https://easypay5.com/APIcardProcNumber/v1.0.0/CardSale/InitForm

Call this method to initialize a payment form used for collecting payments, saving card-on-file data, or both. This call can be used to initiate both Credit card payments and ACH. The call returns the URL used to open the form.

For details on configurations and options, view our builder tool at https://easypay8.com/byopayform/

{
  "InitParams": {
    "MerchID": 1,
    "WTYPE": "PF",
    "PostURL": "https://easypay1.com/swidget/JsonGet.aspx",
    "RedirectURL": "https://easypay8.com/CYWidget/",
    "REF_ID": "A97689#",
    "RPGUID": "92e1e15c-f64a-466b-8733-9b518b9f374c",
    "EndPoint": "PayForm/PF.aspx",
    "EINDEX": "300",
    "Amounts": {
      "Amount": 20,
      "Surcharge": 0,
      "TotalAmt": 20
    },
    "Payer": {
      "Firstname": "John Doe",
      "Lastname": "",
      "BillingAddress": {
        "StreetAddress": "",
        "City": "",
        "State": "",
        "ZIP": "04048",
        "Country": ""
      },
      "Email": "",
      "Phone": ""
    },
    "WidOptions": {
      "eVisible": "0665",
      "eReadOnly": "0040",
      "eStyles": "0001",
      "eSubmission": "0A01",
      "eFeatures": "0000",
      "eColors": "#ffffff,#428bca,#007bff,#212121,#ffffff,#212121,#ffffff"
    }
  }
}

SessKey string required

A unique session key used for authentication in API calls. This key is generated upon successful authentication and must be included in all subsequent requests.

Example: A1842D663E9A4A72XXXXXXXX303541303234373138


Content-Type string required

Example: application/json


Accept string required

Example: application/json

InitParams object optional

MerchID integer required

Use 1 unless your account has multiple merchant records. The merchant ID for the transaction.

Example: 1


WTYPE string · enum required

The widget type for the PayForm

  • PF: Regular PayForm

  • PA: International PayForm

Example: PF

Possible values: PF PA


PostURL string optional

The URL where real-time values will be posted after payment completion.

Example: https://easypay1.com/swidget/JsonGet.aspx


RedirectURL string optional

The URL to redirect to after processing the payment.

Example: https://easypay8.com/CYWidget/


REF_ID string optional

A custom, user-defined reference ID or value.

Example: A97689#


RPGUID string optional

A custom, user-defined reference ID or value.

Example: adf98580-b4ab-42fc-bb99-01c89964afe9


EndPoint string required

Points to a specific web app on our servers. Should always have the value of PayForm/PF.aspx.

Example: PayForm/PF.aspx


EINDEX string optional

Integrator key index for encryption assigned when integrator account is first created, received with the initial login credentials

Example: 100

Amounts object optional

BaseAmt number · float optional

The base $ amount for the transaction before any additional charges.

Example: 52


Surcharge number · float optional

The surcharge $ amount added to the base amount, if applicable. Adjusted based on the total.

Example: 1.04


TotalAmt number · float optional

The total $ amount to be charged, which includes the base amount and any surcharges.

Example: 53.04

Payer object optional

Firstname string optional

The first name of the payer.

Example: John


Lastname string optional

The last name of the payer.

Example: Doe


Email string optional

The email of the payer.


Phone string optional

The phone of the payer.


BillingAddress object optional

WidOptions object required

eVisible string required

Hex digits controlling field visibility.

Example: 0665


eReadOnly string required

Hex digits dictating read-only fields.

Example: 0040


eStyles string required

Hex digits controlling form styling.

Example: 0001


eSubmission string required

Hex digits controlling submission options.

Example: 0A01


eColors string required

String controlling optional color schemes.

Example: #ffffff,#428bca,#007bff,#212121,#ffffff,#212121,#ffffff

Last updated

Was this helpful?