Charge Client SDK Overview
This document outlines briefly the core functionality of the Charge SDK, with the focus on the front-end JS implementation.
The SDK is a collection of JavaScript driven front-end code and back-end REST JSON API services. The SDK is designed to collect sensitive payment details using a highly configurable SDK while still staying compliant with PCI and Data Privacy.
The SDK is made up of 2 primary components:
- SDK Front-End, JavaScript integration. This is Hosted within DMG and requires minimal coding from merchant to setup and accept payments
- SDK Back-End, API integration
The Charge SDK facilitates secure collection of payment details like credit card information from customers, without exposing merchants to this sensitive data. It's designed for easy integration into merchant applications, helping them stay outside of PCI compliance audits. The DMG Charge SDK, hosted on DMG servers, is embedded securely into the merchant's checkout page.
The Charge SDK uses a redirect payment flow to support all payment types: after the payment completes, the customer is redirected to your configured result URL, while the authoritative payment result is delivered to your backend via webhook. For the complete sequence — order creation, mounting the SDK, webhooks, and result confirmation — see the End-to-End Payment Flow guide.