diff options
-rw-r--r-- | epirts.js | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -132,7 +132,7 @@ var Stripe = Epirts = (function() { if (typeof key !== 'string') { throw new Error('Invalid publishable key'); } - if (!key.match(/^pk_[A-Za-z0-9_]+/)) { + if (!key.match(/^pk_(test|live)_[A-Za-z0-9]+/)) { throw new Error('Invalid publishable key'); } _key = key; |