Skip to main content
POST
Charge a card

Authorizations

x-access-code
string
header
required

The accessCode returned by initialise. Scoped to one payment and valid for 60 minutes. Safe to give to the customer's browser.

Body

application/json

The card token or session, and the browser details the issuer uses to assess risk.

sessionId
string

The CyberSource token returned by the microform, or the MPGS session ID. If you send neither this nor transientToken, Vestrapay uses the token stored when the session was created.

transientToken
string

An alias of sessionId for CyberSource.

browser
string

The browser user agent string.

browserDetails
object

Read these from the real browser. Accurate values help the issuer approve the payment.

Response

Charge result. Read data.status.

The outer status is success whenever the call worked, even when the card was declined. The outcome is data.status.

status
enum<string>
required
Available options:
success
data
object
required