A lightweight JavaScript SDK that adds Simple payment functionality to your web applications. The SDK automatically detects email input fields and adds a payment button next to them.
Get started with Simple SDK in just 3 steps:
<!-- 1. Include the Simple script -->
<script src="https://cdn.jsdelivr.net/npm/@paysimple/simple"></script>
<!-- 2. Add an email input -->
<input type="email" placeholder="Enter email" />
<!-- 3. Configure Simple -->
<script>
window.applySimpleConfig({
platformId: "your_platform_id",
organizationTaxId: "your_organization_tax_id",
amount: 10.99,
onSuccess: (response) => console.log("Payment successful!", response),
});
</script>- The SDK will automatically:
- Detect all email input fields on your page
- Add a Simple payment button next to each email field
- Handle payment flows through a popup window
Explore our comprehensive documentation →
Discover advanced features, best practices, and integration examples to make the most of Simple SDK!
- Bun v1.1.27 or later
- Install dependencies:
bun i- Available scripts:
- Developing the SDK:
bun run devThis serves the example page and watches for changes in the SDK with hot reloading.
- Build the SDK (with watch mode):
bun run build- Start the development server:
bun serve- Run tests:
bun testThe SDK accepts the following configuration parameters:
| Parameter | Type | Description |
|---|---|---|
| platformId | string | Your Simple platform ID |
| organizationTaxId | string | Your Simple organization tax ID |
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Run tests (
bun test) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
This project is licensed under the GPL V3 License - see the LICENSE file for details.