mirror of
https://github.com/vale981/Vulcan
synced 2025-03-06 10:01:40 -05:00
Use test keys for Stripe when in dev mode
This commit is contained in:
parent
a370cca0ce
commit
296fe702b2
2 changed files with 2 additions and 2 deletions
|
@ -73,7 +73,7 @@ class Checkout extends React.Component {
|
||||||
<div className={classNames('stripe-checkout', {'checkout-loading': this.state.loading})}>
|
<div className={classNames('stripe-checkout', {'checkout-loading': this.state.loading})}>
|
||||||
<StripeCheckout
|
<StripeCheckout
|
||||||
token={this.onToken}
|
token={this.onToken}
|
||||||
stripeKey={stripeSettings.publishableKey}
|
stripeKey={Meteor.isDevelopment ? stripeSettings.publishableKeyTest : stripeSettings.publishableKey}
|
||||||
ComponentClass="div"
|
ComponentClass="div"
|
||||||
name={product.name}
|
name={product.name}
|
||||||
description={product.description}
|
description={product.description}
|
||||||
|
|
|
@ -28,7 +28,7 @@ export const createCharge = async (args) => {
|
||||||
}
|
}
|
||||||
|
|
||||||
// initialize Stripe
|
// initialize Stripe
|
||||||
const keySecret = stripeSettings.secretKey;
|
const keySecret = Meteor.isDevelopment ? stripeSettings.secretKeyTest : stripeSettings.secretKey;
|
||||||
const stripe = new Stripe(keySecret);
|
const stripe = new Stripe(keySecret);
|
||||||
|
|
||||||
// if an associated collection name and document id have been provided,
|
// if an associated collection name and document id have been provided,
|
||||||
|
|
Loading…
Add table
Reference in a new issue