render
render()
render()button.render()Usage
const button = new ButtonDynamicPrice({
price: 49.99,
apiKey: "your_api_key"
});
// Get the button element
const buttonElement = button.render();
// Append to page
document.getElementById('payment-container').appendChild(buttonElement);Last updated
Was this helpful?