Skip to main content

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

ResourceUse it to
TransactionsCreate sales, voids, and refunds, and look up payment status
Payment sessionsStart a hosted payment page, lightbox, or hosted fields checkout
ShoppersCreate and manage customer records
Stored cardsSave a customer's card for future payments
Plans and subscriptionsSet up and manage recurring billing
Payment linksCreate, update, and track one-time payment links
Surcharge advicesWork out surcharge amounts before a payment
NotificationsFetch 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 works

Lightbox quickstart

Open the hosted payment form in a pop-up over your checkout. Medium effort.

How lightbox works

Hosted fields quickstart

Embed secure card fields in your own checkout form. Medium to heavy effort.

How hosted fields work

Get 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

Already have access and need help? See developer support.

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.