ZenPayments
  1. Merchants
ZenPayments
  • General Information
    • Authentication
    • Errors
    • Responses
    • Filters
      • Example - gte
      • Example - between
      • Example - like
      • Example - in
      • Example - non-empty
    • Pagination
      • 10 results per page
    • Data Types
  • Merchants
    • Sandbox
      • Sandbox Payment Gateway
    • Card Payments
      • Authorization
      • Sale
      • Capture
      • Partial Capture
      • Refund
      • Partial Refund
      • Soft/Dynamic Descriptor
      • Card Authentication
      • Card Tokenization
      • Card Tokenization with Global Token
      • Sale with a Fee Terminal
    • Hosted Form
      • Generate
      • Generate with Billing and Contact Information
    • Hosted Fields
      • How it Works
      • Hosted Fields Token
        • Hosted Fields Token
      • Integration Guide
        • Step 1: Include the JavaScript Library
        • Step 2: Add HTML Elements for all payment fields
        • Step 3: Set the AccessToken and Configure the rest of the form
        • Step 4: Add styling
        • Step 5: Listen for Events
        • Step 6: Get the tokenized card
          • Get the tokenized card
        • Add Payment Method Page
        • Testing your integration
    • CustomerVault
      • Sandbox
        • Sandbox Dashboard
      • Hosted Card Form
        • Generate
      • Customers
        • List
        • View
        • Create
        • Update
        • Archive
        • Delete
      • Cards
        • List Cards
        • View
        • Add Card
        • Update Exp Date
        • Archive
        • Unarchive
        • Delete
      • Billing Information
        • List
        • View
        • Update
        • Create
      • Shipping Information
        • List
        • View
        • Update
        • Create
      • Recurring Payment
        • List
        • View
        • Update
        • Create
    • Transaction Reporting
      • List
      • View
    • Response Codes
      • Verification Response Codes
    • 3DSecure
      • Version
      • Create
        • Create
      • Check
        • Check
      • Test Cards
    • Account Updater
      • Card Compatibility
      • How It Works
        • Sale with Account Updater
    • ACH Payments
      • General Information
      • Transactions
        • SEC Codes
        • Statuses
        • Actions
          • Action
        • History Log
          • Log
        • List
        • View
        • Create ACH
        • Create ACH & Save Customer
        • Create ACH for an existing Customer
        • Create ACH for an existing Customer and specific Account
        • Remove
      • Hosted Form
        • Example Request
      • Customers
        • List Customers
        • View specific Customer
        • Create Customer
        • Update Customer
        • Delete a Customer
      • Customer Accounts
        • List Customer Accounts
        • Create Customer Account
        • Update Customer Account
        • Delete a Customer Account
      • Bank Information
        • View
      • ACH Settlements
        • List
        • View
      • ACH Webhooks
        • New ACH Record
        • ACH Status Update
        • New ACH Customer
    • Reporting
      • Sandbox
        • Sandbox Dashboard
      • Authorizations
        • List
        • List with Filters
      • Batches
        • List
        • List with Filters
        • Summary
      • Payouts
        • List
        • View
        • Export
      • Chargebacks
        • Disputes
          • Upload a temporary file
          • Create a Dispute
          • Preview
          • Submit
        • Webhooks
          • Signatures
          • Events
            • Chargeback
              • New Chargeback Record
              • Chargeback Update
        • View
          • List
          • View
      • Statements
        • List
        • Download
      • Reserve
        • List
      • Fraud Report
        • Generate
      • Visa Verifi
        • Submiting External Transactions
          • Submit
        • List
      • Other Reports
        • Request a Report
        • Check Status
        • Download
    • Gateway Test Cards
  • Platforms
    • Sandbox
      • Sandbox Dashboard
    • Onboarding
      • Boarding Applications
        • Campaigns
          • List
        • Equipment
          • Terminals
            • List
            • View
          • View
          • Update
        • List
          • List Boarding Applications
        • Create
          • Create Boarding Application
        • Delete
          • Delete Boarding Application
        • View
          • View Boarding Application
        • Update
          • Update Boarding Application
        • Principals
          • List Principals
          • Create Principal
          • Update a Single Principal
          • Mass update Principals
          • Delete Principal
        • Processing
          • View Processing section
          • Update Processing section
        • Merchant Category Codes (MCCs)
          • List MCCs
        • ACH
          • View ACH section
          • Update ACH section
        • Documents
          • Attachment About
            • List All Document Categories
          • View all documents
          • MPA
          • Assign a single document
          • Assign multiple documents
          • Update a single document
          • Delete a single document
        • Fees
          • Types
            • List
          • Other Fees
            • Add
            • Update
            • Delete
          • List all fees
          • View a specific fee
          • Update a single fee
          • Update multiple fees
        • Bank Accounts
          • Add
          • Update
          • Change
        • Validate
          • Validate a Boarding Application
        • URL
          • GET URL of Boarding Application
        • Signature
          • Request E-sign
            • Request Signature
          • Embed E-sign
            • Embeded E-sign Example Flow 1
            • Embeded E-sign Example Flow 2
            • Request Embed
          • Manually Signing
            • Manual Sign
          • External eSign Signing
            • External eSign
        • Automation
          • AutoSign
            • Set AutoSign
          • AutoUnderwriting
            • Set AutoUnderwriting
        • Status
          • Set status to Underwriting
        • Notes
          • List
          • Create
      • Merchants
        • Terminals
          • List Terminals
          • View a specific Terminal
          • VAR Sheet
          • VAR View
        • List Merchants
      • DBA
        • List
        • View
      • Attachments
        • Temporary Upload
          • Temporary Upload
        • Chunk Upload
          • Initialize
          • Upload Request 1/2
          • Upload Request 2/2
        • Standard Upload
        • List attachments
        • View
        • View in browser
        • Download
        • Delete
      • Webhooks
        • Signatures
        • Events
          • Boarding Application
          • Merchant
            • Account
              • New Acquiring Account
              • New ACH Account
              • Closed Acquiring Account
              • Closed ACH Account
            • Terminal
              • New Terminal Record
              • Update Terminal Record
              • Delete Terminal Record
    • Reporting
      • Authorizations
        • List
        • List with Filters
      • Batches
        • List
        • List with Filters
        • Summary
      • Payouts
        • List
        • View
        • Export
      • Chargebacks
        • View
          • List
          • View
        • Disputes
          • Upload a temporary file
          • Create a Dispute
          • Preview
          • Submit
        • Webhooks
          • Signatures
          • Events
            • Chargeback
              • New Chargeback Record
              • Chargeback Update
      • Statements
        • List
        • Download
      • Reserve
        • List
      • Fraud Report
        • Generate
      • Other Reports
        • Request a Report
        • Check Status
        • Download
    • Residuals
      • List
      • View
    • Tickets
      • Update Ticket Status
        • Close
        • Re-Open
      • Responses
        • List
        • Create
        • Add an Attachment
      • Attachments
        • List
        • View
        • Create
        • Delete
      • Categories
        • List
      • Notes
        • List
        • View
        • Create
        • Update
        • Delete
        • Attachments
      • List
      • Create
      • View a specific ticket
    • Connect
      • Webhooks
        • Access Granted
        • Access Updated
        • Access Revoked
    • Misc
      • Address Checker
        • List Countries
        • List States
        • List Cities and Zip Codes
        • Filter by City and State
      • BIN Check
        • Get BIN Information
  1. Merchants

Hosted Form

With our Gateway embedded hosted form functionality, you can achieve quick, efficient, and secure online transactions, without the worry of PCI compliance.
The overall process to generate and prepare a hosted gateway payment form is as follows.
1.
Create a POST request with the required parameters for your needs
2.
We will return the code of the hosted form and the URL in the response
Hosted Form Object
FieldsDescriptionTypeRequired
dbaDba ObjectObjectYes
dba.idDBA IDIntegerYes
terminalTerminal ObjectObjectYes
terminal.idTerminal IDIntegerYes
threedsActivate 3D Secure Required, Disabled or RequiredIfAvailableENUMNo
amountPayment AmountNumberNo
feeTypeThe type of sales tax applied amount or percentENUMNo
feeThe sales tax value applied to the orderNumberNo
externalIdUnique record identifiers from a system outside of Payment GatewayStringNo
originOrigin of the transaction (i.e. Website, CRM, etc)StringNo
returnUrlThe return URL after payment completion (i.e success/error page)StringNo
returnUrlNavigationHow to redirect the URL (Inside/Outside of frame) top or selfENUMNo
useLogoUse the logo of your merchant profile Yes or NoENUMNo
visibleNoteAdds an additional text field to the hosted form Yes or NoENUMNo
requestBillingInfoAdds a billing info step to the hosted form Yes or NoENUMNo
billingInfoObject holding customer's billing informationObjectNo
billingInfo.countryCustomer's billing countryStringNo
billingInfo.addressCustomer's billing addressStringNo
billingInfo.address2Customer's billing address2StringNo
billingInfo.cityCustomer's billing cityStringNo
billingInfo.stateCustomer's billing stateStringNo
billingInfo.zipCustomer's billing zipIntegerNo
requestContactInfoAdds a contact info step to the hosted form Yes or NoENUMNo
contactInfoObject Holding customer's contact informationObjectNo
contactInfo.nameCustomer's nameStringNo
contactInfo.emailCustomer's emailStringNo
contactInfo.phoneCustomer's phoneStringNo
requestShippingInfoAdds a shipping info step to the hosted form Yes or NoENUMNo
shippingInfoObject Holding customer's billing informationObjectNo
shippingInfo.countryCustomer's shipping countryStringNo
shippingInfo.address1Customer's shipping address1StringNo
shippingInfo.address2Customer's shipping address2StringNo
shippingInfo.address3Customer's shipping address3StringNo
shippingInfo.cityCustomer's shipping cityStringNo
shippingInfo.stateCustomer's shipping stateStringNo
shippingInfo.zipCustomer's shipping zipIntegerNo
sendReceiptSend a customized receipt after successful payment Yes or NoENUMNo
The Amount and External ID are dynamic parameters that can still be provided after the form is generated.
If you want to dynamically provide Amount and External ID you can do so at the end of the URL using &amount=&externalId= or you can provide them in the corresponding javascript parameters. Keep in mind that if the amount is not provided the client will be prompted to enter it.
The return URL also gives you the option to change the mapping of specific parameters (, , and ) based on your needs.
The parameters that we have are as follows: Success, Failed, and Cancelled.
IMPORTANT If you have set sendReciept to "Yes" requestContactInfo needs to be also "Yes" as well or no receipt will be generated.

Dynamic Contact and Billing Information#

Option 1#

We give you the ability to provide the contact and billing information in the request to generate the form. This will return you the form with those fields pre-filled. Example requests and responses are provided.

Option 2#

We also give you the ability to dynamically set Contact and Billing information in your environment without the need to constantly generate new forms this is how:
If you set requestContactInfo and/or requestBillingInfo to Yes, you can dynamically fill in the ‘contactInfo’ and/or ‘billingInfo’ objects which are present in the options of the response code of the generated form.
"data": "eyJkYmFJZCI6MTEyLCJ0ZXJtaW5hbElkIjoxMDksInRocmVlZHMiOiJEaXNhYmxlZCIsImV4dGVybmFsSWQiOiJleGFtcGxlIiwicmV0dXJuVXJsIjoiaHR0cHM6XC9cL2V4YW1wbGUuY29tIiwicmV0dXJuVXJsTmF2aWdhdGlvbiI6InRvcCIsImxvZ28iOiJZZXMiLCJ2aXNpYmxlTm90ZSI6IlllcyIsInJlcXVlc3RDb250YWN0SW5mbyI6IlllcyIsInJlcXVlc3RCaWxsaW5nSW5mbyI6IlllcyIsInNlbmRSZWNlaXB0IjoiIiwib3JpZ2luIjoiV0VCIiwiaGFzaCI6IjJhY2VjODNmNWRiMTdlNmQ2NTA1MjE5MTljYmY5ODQ1In0=",
"amount": 2,
"fee": 2,
"feeType": "amount",
"contactInfo": {
    "name": "John Doe",
    "email": "john.doe@example.com",
    "phone": "+1 800 555 111"
},
"billingInfo": {
    "country": "United States", 
    "address": "Example address 1",
    "address2": "Example address 2",
    "city": "Los Angeles",
    "state": "California",
    "zip": 90001
},
"shippingInfo": {
    "country": "United States",
    "address1": "Example address 1",
    "address2": "Example address 2",
    "address3": "Example address 3",
    "city": "Los Angeles",
    "state": "California",
    "zip": 90001
}
Or you can add the base64 encoded version of ‘contactInfo’ and/or ‘billingInfo’ JSON.stringified objects in the URL. Like in the following JS example:
Modified at 2025-08-09 05:39:42
Previous
Sale with a Fee Terminal
Next
Generate
Built with