To integrate, you just need to do the following things:
– Include the creditly.css stylesheet file (can be found under src/creditly.css).
<link rel="stylesheet" href="creditly.css">
– Copy the HTML from the theme you’d like to use. You can find the stubs of HTML under the src/themes folder. For example, to use the blue theme, you should take copy and paste the HTML from src/themes/blue_theme.html
var creditly = Creditly.initialize( '.creditly-wrapper .expiration-month-and-year', '.creditly-wrapper .credit-card-number', '.creditly-wrapper .security-code', '.creditly-wrapper .card-type');