This repository is wrapper for the Solidgate Client Software Development Kit (SDK).
It supports rendering payment forms and resign forms, including custom container elements for Google Pay, Apple Pay, or PayPal buttons.
Check our
- Payment guide to understand business value better
- API Reference to find more examples of usage
SDK contains | Table of contents |
---|---|
src - source code.husky - pre-commit hookspackage.json – project metadata and dependency definitions |
Installation Usage Development |
npm install --save @solidgate/client-sdk-loader
import { SDKLoader } from "@solidgate/client-sdk-loader"
/**
* Configuration, as it described here
* https://docs.solidgate.com/payments/integrate/payment-form/create-your-payment-form/
*/
const data = {
merchantData: {
merchant: '<<--YOUR MERCHANT ID-->>',
signature: '<<--YOUR SIGNATURE OF THE REQUEST-->>',
paymentIntent: '<<--YOUR PAYMENT INTENT-->>'
}
}
async function init() {
const sdk = await SDKLoader.load()
const form = sdk.init(data)
}
Build:
npm run build
Test
npm run test