Verestro Paytool Web SDK lets you embed secure card payments in your website with a small, focused API available via the global object below:
window.Paytool;
Features:
- Secure, embeddable card form you can style and control: embedCardForm()
- Type guard to handle SDK-originated errors: isEmbedError()
Requirements
- Your website domain must be allowlisted to load the SDK and hosted pages.
- Always create transactions on your backend; never charge purely on the client.
Install the SDK
Add the script to your page and choose the environment that matches your phase:
<!-- Production -->
<script src="https://paytool.verestro.com/v1/paytool.js"></script>
<!-- Staging (test, no real charges) -->
<script src="https://paytool.verestro.dev/v1/paytool.js"></script>
Environment notes
- Staging lets you test flows without real charges. Use separate credentials.
- Your website domain must be allowlisted in both environments to load the SDK and hosted iframes.