APIs and quickstarts
The gateway API is a REST API that uses JSON for requests and responses and HTTP Basic authentication with your merchant alias and secret key. Quickstarts give you working sample code so your first payment runs in minutes.
API resources
| Resource | Use it to |
|---|---|
| Transactions | Create sales, voids, and refunds, and look up payment status |
| Payment sessions | Start a hosted payment page, lightbox, or hosted fields checkout |
| Shoppers | Create and manage customer records |
| Stored cards | Save a customer's card for future payments |
| Plans and subscriptions | Set up and manage recurring billing |
| Payment links | Create, update, and track one-time payment links |
| Surcharge advices | Work out surcharge amounts before a payment |
| Notifications | Fetch payment events, or receive them as webhooks |
Quickstarts
Each quickstart includes Node.js sample code that sets up a working checkout against the sandbox.
Redirect quickstart
Create a payment session and send the shopper to the hosted payment page. Light effort.
How redirect worksLightbox quickstart
Open the hosted payment form in a pop-up over your checkout. Medium effort.
How lightbox worksHosted fields quickstart
Embed secure card fields in your own checkout form. Medium to heavy effort.
How hosted fields workGet the full API reference and sample code
The complete API reference (every endpoint, field, and response) and the quickstart code are available in the gateway's developer portal once Elavon creates your sandbox account. That way you always work from the current version.
Note
Gateway services in this section are provided through ONKORE's processing partner, Elavon. Developer accounts, sandbox and production credentials, the developer portal, and the merchant portal are provided by Elavon, so you'll see the Elavon name in those emails, portals, and API addresses. ONKORE remains your point of contact.
