Skip to content
This repository was archived by the owner on Feb 20, 2024. It is now read-only.

Commit

Permalink
Support postal code events. Expose StripeElement for additional custo…
Browse files Browse the repository at this point in the history
…mization. (#25)
  • Loading branch information
paulpdaniels authored and softbeehive committed Jan 3, 2018
1 parent bba4df2 commit 7494823
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 2 additions & 4 deletions src/PostalCode.vue
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
<template>
<stripe-element
ref='element'
type='postalCode'
:stripe='stripe'
:value='value'
:options='options'
@blur='$emit("blur")'
@focus='$emit("focus")'
@empty='$emit("empty")'
@complete='$emit("complete")'
@brand='$emit("brand", $event)'
@error='$emit("error", $event)'
@value='$emit("value", $event)'
@change='$emit("change", $event)'
/>
</template>

Expand Down
2 changes: 2 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import './lib'
import { Stripe, baseStyle } from './stripeElements'
import StripeElement from './StripeElement'
import Card from './Card'
import CardExpiry from './CardExpiry'
import CardCvc from './CardCvc'
Expand All @@ -12,6 +13,7 @@ module.exports = {
CardExpiry,
CardCvc,
PostalCode,
StripeElement,
baseStyle,
get instance() { return Stripe.instance },
get createToken() { return Stripe.createToken },
Expand Down

0 comments on commit 7494823

Please sign in to comment.