Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
E

ember-credit-card

> 开发工具
Open source

"make your credit card form dreamy in one line of code"

100 stars0 likes1 views
WebsiteGitHub

About

"make your credit card form dreamy in one line of code"

Ember Credit card

This is an Ember wrapper for the amazing Card project.

Installation

ember install ember-credit-card

Usage

handlebars
Default

By simply adding {{credit-card}} a basic form will be generated:

handlebars

  {{input type="text" name="number" value=number placeholder='Credit Card Number'}}
  {{input type="text" name="name" value=name placeholder='Name on Credit Card'}}
  {{input type="text" name="expiry" value=expiry}}
  {{input type="text" name="cvc" value=cvc}}
Specifying settings

You can also specify all the settings that Card supports.

handlebars
With template

The default form and inputs used by default are so simple, so you can pass a template to use your own styled inputs.

Remeber to either use the default name inputs or specify them on the {{credit-card}} arguments

handlebars

  
    

    

    

    

  

Linting

  • yarn lint:js
  • yarn lint:js --fix

Running Tests

  • ember test – Runs the test suite on the current Ember version
  • ember test --server – Runs the test suite in "watch mode"
  • ember try:each – Runs the test suite against multiple Ember versions

Running the dummy application

  • ember serve
  • Visit the dummy application at http://localhost:4200.

License

This project is licensed under the MIT License.

Support on Beerpay

Hey people! Help me out for a couple of :beers:!

Issues· 21 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

JavaScriptcredit-cardemberember-addonember-cli

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 18, 2026
Category开发工具
PricingOpen source

> Related tools

V
VS Code
流行的开源代码编辑器
G
Git
分布式版本控制系统
V
Vite
下一代前端构建工具