SourceSage Pay

SourceSage Pay

  • Docs
  • Help
  • Register

›Getting Started

Getting Started

  • Overview
  • Get an API Key
  • Project Configuration

APIs

  • Overview
  • SourceSage Pay Session
  • SourceSage Pay Transactions

Integration Guide

  • Overview
  • 1. Initialize Session
  • 2. Trigger Payment
  • 3. Handle Response

Project Configuration

Config your project to call our APIs to get data. Currently, we support RESTful API.

Base Url

Make sure you have API key and the base URL is:

https://payment-apis.sourcesage.co/

Do Not Have an API Key? Get one here!

Example configuration

With nodejs project

Setup for headers for each request with X-SS-EXTERNAL-TOKEN header containining the API key

const axios = require("axios");

const base_url = process.ENV.BASE_URL;
const headers = {
  "X-SS-EXTERNAL-TOKEN": `${"your-access-token-here"}`
};

axios
  .post(`${base_url}/payments/create-session`, {
    headers
  })
  .then(response => {
    console.log(response.data);
  })
  .catch(error => {
    console.error(error);
  });

Checkout script

https://ap-gateway.mastercard.com/checkout/version/53/checkout.js
← Get an API KeyOverview →
  • Base Url
  • Example configuration
    • With nodejs project
  • Checkout script
SourceSage Pay
Docs
Getting StartedGuidesAPI Reference
Community
User Showcase
More
GitHub
Copyright © 2020 Sourcesage