Runner.js is a browser-side JavaScript library used to tokenize and send sensitive payment information directly from a user’s browser, keeping your customers’ data secure and your software fully PCI-compliant. A single integration to Runner.js can be used to handle tokenization for all supported Payments API products in Run Developer.
If you’d like to tokenize a payment account without integrating to Runner.js, log in to your Run Merchant test account and navigate to the Developer menu where you will find a card tokenizer for your merchant account. Please reach out to your Integration Delivery lead if you require assistance.
Before you can tokenize an account using Runner.js, you must have:
public_key generated in Run Merchant or provided by your Integration Delivery Lead.header of your HTML file. version number is required as indicated in the slug below. Use latest for the most recent release.For example, if you are using version 1.1.4:
Or you can use the latest value for version to always use the latest release:
public_key.tokenize method to generate tokenized account information that has been entered into the Runner.js field. The resulting value may then be passed to the Payment API to enact payment processing activities. (Note: This action can be completed during form submission, if preferred.)The function within the tokenize call will return the following data: