Skip to content

Introduction

The Spayon Payment Gateway API enables vendors to accept payments securely and efficiently. This guide covers everything a full-stack developer needs: authentication, session creation, callback handling, signature verification, and admin panel configuration.

Environments

Spayon provides two completely isolated environments. Use Staging for development and testing — credentials and data are never shared with Production.

ComponentProductionStaging
Admin Paneladmin.spayon.ioangular-app-marketplace-staging.s3-website.eu-north-1.amazonaws.com
API Base URLapi.spayon.iostaging-spayon-api.eu-north-1.elasticbeanstalk.com
ProtocolHTTPS onlyHTTP
Data FormatJSONJSON
API VersionUnversionedUnversioned

Staging is isolated

Staging credentials are completely separate from Production. They cannot be used interchangeably. Do not use the Staging environment for live transactions.

How It Works

The integration follows a straightforward flow:

  1. Your server authenticates and receives a Bearer token
  2. Your server creates a payment session for a specific product and customer
  3. You redirect the user to the hosted Spayon payment page
  4. After payment, Spayon calls back your server with the result (signed with HMAC-SHA256)
  5. The user is redirected to your Return URL

See Integration Flow for the full step-by-step breakdown.