PayForm
Call this method to initialize a payment form used for collecting payments, saving card-on-file data, or both. 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/
Header parameters
SessKeystringRequiredExample:
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.
A1842D663E9A4A72XXXXXXXX303541303234373138
Content-TypestringRequiredExample:
application/json
AcceptstringRequiredExample:
application/json
Body
Responses
200
Successful initialization of PayForm
application/json
post
POST /PayForm/Initialize HTTP/1.1
Host: easypay5.com
SessKey: A1842D663E9A4A72XXXXXXXX303541303234373138
Content-Type: application/json
Accept: application/json
Content-Length: 618
{
"InitParams": {
"MerchID": 1,
"WTYPE": "PF",
"PostURL": "https://easypay7.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",
"eColors": "#ffffff,#428bca,#007bff,#212121,#ffffff,#212121,#ffffff"
}
}
}
200
Successful initialization of PayForm
{
"PaymentInitResult": {
"ErrCode": 0,
"ErrMsg": "",
"FunctionOk": true,
"PaymentUrl": "https://easypay5.com/swidget/?eGUID=239F97C4&CS=021&Digest=tru49A2ncbyvHoaIa6T81Q",
"RespMsg": "successfully returned payment Url"
}
}
Last updated
Was this helpful?