{"id":13701411,"url":"https://github.com/samturrell/vue-stripe-payment","last_synced_at":"2025-05-04T21:30:51.652Z","repository":{"id":109497139,"uuid":"110692429","full_name":"samturrell/vue-stripe-payment","owner":"samturrell","description":"Vue wrapper for jquery.payment by stripe","archived":true,"fork":false,"pushed_at":"2019-06-11T11:35:17.000Z","size":147,"stargazers_count":16,"open_issues_count":1,"forks_count":2,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-23T17:09:34.511Z","etag":null,"topics":["javascript","payment","stripe","vue"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/samturrell.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2017-11-14T13:15:48.000Z","updated_at":"2023-01-28T05:31:48.000Z","dependencies_parsed_at":"2023-04-25T04:48:36.759Z","dependency_job_id":null,"html_url":"https://github.com/samturrell/vue-stripe-payment","commit_stats":{"total_commits":5,"total_committers":1,"mean_commits":5.0,"dds":0.0,"last_synced_commit":"204f82427dc7b9a2a594a062a04b5ec30f2c8cba"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samturrell%2Fvue-stripe-payment","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samturrell%2Fvue-stripe-payment/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samturrell%2Fvue-stripe-payment/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samturrell%2Fvue-stripe-payment/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/samturrell","download_url":"https://codeload.github.com/samturrell/vue-stripe-payment/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252403763,"owners_count":21742434,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["javascript","payment","stripe","vue"],"created_at":"2024-08-02T20:01:35.787Z","updated_at":"2025-05-04T21:30:51.309Z","avatar_url":"https://github.com/samturrell.png","language":"JavaScript","funding_links":[],"categories":["JavaScript","公用事业","Components \u0026 Libraries","Utilities [🔝](#readme)","Utilities"],"sub_categories":["付款","Utilities","Payment"],"readme":"# vue-stripe-payment\n\n[![npm](https://img.shields.io/npm/v/vue-stripe-payment.svg)](https://www.npmjs.com/package/vue-stripe-payment)\n[![vue2](https://img.shields.io/badge/vue-2.x-brightgreen.svg)](https://vuejs.org/)\n\nVue wrapper for validating payment form fields. **This Plugin is dependent on jQuery**\n\nA directive is provided for input masking form fields, and the whole payment library is available under the `this.$payment` object.\n\n[Demo](https://samturrell.github.io/vue-stripe-payment/example)\n\n## Installation\n\nVia npm:\n```sh\nyarn add vue-stripe-payment\n- OR -\nnpm install vue-stripe-payment\n```\n\n## Using this plugin\n\nAdding vue-stripe-payment to your application is as simple as any other plugin:\n\n```js\nimport Vue from 'vue';\n\nimport VueStripePayment from 'vue-stripe-payment';\n\nVue.use(VueStripePayment);\n\nnew Vue({\n  el: '#app',\n});\n```\n\nThe `v-stripe-payment` directive is now available to your app. Masks can be accessed as the arg of this directive, for example:\n\n```html\n\u003cform\u003e\n  \u003cdiv class=\"form-group\"\u003e\n    \u003clabel\u003eCard number\u003c/label\u003e\n    \u003cinput class=\"form-control\" v-payment:formatCardNumber\u003e\n  \u003c/div\u003e\n  \u003cdiv class=\"form-group\"\u003e\n    \u003clabel\u003eCard Expiry\u003c/label\u003e\n    \u003cinput class=\"form-control\" v-payment:formatCardExpiry\u003e\n  \u003c/div\u003e\n  \u003cdiv class=\"form-group\"\u003e\n    \u003clabel\u003eCard CVC\u003c/label\u003e\n    \u003cinput class=\"form-control\" v-payment:formatCardCVC\u003e\n  \u003c/div\u003e\n  \u003cdiv class=\"form-group\"\u003e\n    \u003clabel\u003eNumeric input\u003c/label\u003e\n    \u003cinput class=\"form-control\" v-payment:restrictNumeric\u003e\n  \u003c/div\u003e\n  \u003cbutton class=\"btn btn-primary\"\u003eSubmit\u003c/button\u003e\n\u003c/form\u003e\n```\n\nFor further details, see the [stripe/jquery.payment](https://github.com/stripe/jquery.payment) readme.\n\n## :scroll: Changelog\nDetails changes for each release are documented in the [CHANGELOG.md](https://github.com/samturrell/vue-stripe-payment/blob/dev/CHANGELOG.md).\n\n## :copyright: License\n\n[MIT](http://opensource.org/licenses/MIT)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamturrell%2Fvue-stripe-payment","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsamturrell%2Fvue-stripe-payment","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamturrell%2Fvue-stripe-payment/lists"}