Interswitch · Arazzo Workflow

Interswitch Hosted Fields Checkout

Version 1.0.0

Open a hosted-fields session to collect card data out of PCI scope, then confirm the resulting payment.

1 workflow 2 source APIs 1 provider
View Spec View on GitHub PaymentsPayment InfrastructureCard NetworkVerveQuicktellerWebpayBills PaymentTransfersLendingFintechAfricaNigeriaArazzoWorkflows

Provider

interswitch

Workflows

hosted-fields-checkout
Create a hosted-fields session, then confirm the resulting payment.
Creates a hosted-fields session for browser-side card capture, then reads the resulting payment to confirm its final status.
2 steps inputs: accessToken, amount, currency, paymentId, redirectUrl, transactionRef outputs: hostedFieldsUrl, paymentStatus, sessionId
1
createSession
Create a hosted-fields session so the browser can collect raw card data and POST it directly to Interswitch, keeping the merchant out of PCI scope.
2
confirmPayment
Read the payment produced by the hosted-fields submission to confirm its authoritative final status.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Interswitch Hosted Fields Checkout
  summary: Open a hosted-fields session to collect card data out of PCI scope, then confirm the resulting payment.
  description: >-
    PCI-minimizing checkout flow on the Payment Gateway. The workflow creates a
    hosted-fields session so the browser collects raw card data and posts it
    directly to Interswitch, keeping the merchant out of PCI scope, then reads
    back the payment by id to confirm its authoritative status once the
    browser-side authorization completes. The paymentId is supplied as an input
    since it is produced by the browser-side hosted-fields submission. Requests
    are Bearer-authenticated.
  version: 1.0.0
sourceDescriptions:
- name: hostedFieldsApi
  url: ../openapi/interswitch-hosted-fields-api-openapi.yml
  type: openapi
- name: paymentsApi
  url: ../openapi/interswitch-payments-api-openapi.yml
  type: openapi
workflows:
- workflowId: hosted-fields-checkout
  summary: Create a hosted-fields session, then confirm the resulting payment.
  description: >-
    Creates a hosted-fields session for browser-side card capture, then reads the
    resulting payment to confirm its final status.
  inputs:
    type: object
    required:
    - accessToken
    - transactionRef
    - amount
    - currency
    - redirectUrl
    - paymentId
    properties:
      accessToken:
        type: string
        description: Bearer access token from the Passport OAuth token endpoint.
      transactionRef:
        type: string
        description: Unique merchant transaction reference.
      amount:
        type: integer
        description: Amount in minor currency units.
      currency:
        type: string
        description: ISO currency code.
      redirectUrl:
        type: string
        description: URL the hosted-fields page redirects to after capture.
      paymentId:
        type: string
        description: Payment id produced by the browser-side hosted-fields submission.
  steps:
  - stepId: createSession
    description: >-
      Create a hosted-fields session so the browser can collect raw card data and
      POST it directly to Interswitch, keeping the merchant out of PCI scope.
    operationId: createHostedFieldsSession
    parameters:
    - name: Authorization
      in: header
      value: Bearer $inputs.accessToken
    requestBody:
      contentType: application/json
      payload:
        transactionRef: $inputs.transactionRef
        amount: $inputs.amount
        currency: $inputs.currency
        redirectUrl: $inputs.redirectUrl
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      sessionId: $response.body#/sessionId
      hostedFieldsUrl: $response.body#/hostedFieldsUrl
      expiresAt: $response.body#/expiresAt
  - stepId: confirmPayment
    description: >-
      Read the payment produced by the hosted-fields submission to confirm its
      authoritative final status.
    operationId: getPayment
    parameters:
    - name: Authorization
      in: header
      value: Bearer $inputs.accessToken
    - name: paymentId
      in: path
      value: $inputs.paymentId
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      status: $response.body#/status
      responseCode: $response.body#/responseCode
      authCode: $response.body#/authCode
      amount: $response.body#/amount
  outputs:
    sessionId: $steps.createSession.outputs.sessionId
    hostedFieldsUrl: $steps.createSession.outputs.hostedFieldsUrl
    paymentStatus: $steps.confirmPayment.outputs.status

Work with this as data

Every workflow here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for arazzo workflows

4 MCP tools reach this
  • find_arazzoBrowse and filter every workflow in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This workflow
curl "https://apis.io/api/v1/arazzo/interswitch-hosted-fields-checkout-workflow"
All arazzo workflows
curl "https://apis.io/api/v1/arazzo?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.