SovPay Custom Integration

Private self-hosted update and release information page for merchants who want to integrate sovpay.js directly into a custom checkout flow.

Integration Information

Integration Name
SovPay Custom Integration
Current Document Version
1.0.1
Integration Method
Hosted sovpay.js launch with merchant-side result handling
Best For
Custom checkout pages, bespoke merchant systems, advanced developers, and non-WordPress storefronts
Completion Model
Use signed result handling in the browser and confirm payment in your merchant flow before fulfillment
Hosted Script
https://account.digitalfreedom.network/js/sovpay.js?version=3
Technical PDF
Download API Document

Quick Integration Steps

  1. Identify the checkout field IDs used for your merchant ID, total amount in USD, order description, and unique intent ID.
  2. Retrieve your API Key and Signature Public Key from your Digital Freedom account under Settings and Merchant Information.
  3. Define the global sovpay object in your page header and map it to your checkout field IDs.
  4. Implement the result_handler function to handle paid and non-paid outcomes in your own merchant flow.
  5. Load the hosted sovpay.js script in the page head and keep using the hosted version instead of storing a local copy.
Use a unique intent ID for each transaction attempt to reduce duplicate submissions and preserve transaction atomicity.

Required sovpay Fields

Required Checkout Placeholders

The merchant ID field should normally be hidden and read-only because customers do not need to edit it.

Example sovpay Configuration

const sovpay = {
  api_key: 'YOUR_API_KEY',
  merchant_id_field: 'merchant_id',
  price_usd_field: 'amount_usd',
  desc_field: 'description',
  sovpay_btn_div: 'sovpay_btn',
  intent_field: 'intent_id',
  public_sig_key: `-----BEGIN PUBLIC KEY-----
YOUR_SIGNATURE_PUBLIC_KEY
-----END PUBLIC KEY-----`,

  result_handler: function (result) {
    if (result.status === 'PAID') {
      // Handle successful payment.
      // Confirm the result in your merchant flow before fulfillment.
    } else {
      // Handle non-paid or error states.
    }

    console.log(result);
  }
};

Hosted Script Include

<script src="https://account.digitalfreedom.network/js/sovpay.js?version=3"></script>

Basic Checkout Placeholders

<input type="number" min="1" step="1" name="merchant_id" id="merchant_id" />
<input type="number" name="amount_usd" id="amount_usd" />
<input type="text" name="description" id="description" maxlength="512" />
<input type="text" id="intent_id" name="intent_id" maxlength="36" />

<div id="sovpay_btn" name="sovpay_btn"></div>
<div id="sovpay_iframe" name="sovpay_iframe"></div>

Support Contact

For technical support, release coordination, or questions about custom merchant integration, please contact support@sovran.gold.

This page is provided as a human-readable companion to the private update metadata and package distribution system.