Skip to content

ngs/vue-payjp-checkout

Repository files navigation

vue-payjp-checkout

PAY.JP Checkout Button component for Vue.js

npm version Codacy Badge CircleCI

How to use

npm install --save vue-payjp-checkout
var Vue = require('vue')
var PayjpCheckout = require('vue-payjp-checkout')
Vue.use(PayjpCheckout)
<payjp-checkout
    api-key="pk_test_d4b1a4668323c8ce49ab7ec5"
    client-id="d3d774f50bb006c26bac19402f0140a7228f8522"
    text="ポップアップを開く"
    submit-text="テストカードで支払い"
    name-placeholder="JOHN DOE"
    v-on:created="onTokenCreated"
    v-on:failed="onTokenFailed">
</payjp-checkout>

View demo

Author

Atushi Nagase

License

Copyright © 2018 Atushi Nagase. All rights reserved.