SecureFields JS provides building blocks to securely capture (tokenize) credit card information which then can be used to execute sale requests.
You are also provided a very convenient way to quickly render credit card form by using this web component:
Embedding credit card form
<pay-enginestyle="width: 500px;"id="pf-cc"type="creditcardform"manually_entered="yes"merchant-id="xxxxxxxxx-xxx-xxxx-xxxx-xxxxxxe315d7"show-zip="true"></pay-engine><buttonid="btn">Save</button><script> //--> Reference to UI element var component = document.querySelector("#pf-cc"); var button = document.querySelector("#btn"); //--> Success event to get the card component.addEventListener("success", function(card) {console.log("Card created successfully",card.detail) }); //--> Error handler component.addEventListener("error", function(e) {console.log("Unable to create card",e.detail) }); //--> Submitting form if needed button.addEventListener("click", function(e) {e.preventDefault();component.submit(); });</script>