discourse-subscriptions/test/javascripts/helpers/stripe.js.es6

23 lines
406 B
Plaintext
Raw Normal View History

2019-10-08 20:53:58 -04:00
export function stubStripe() {
window.Stripe = () => {
return {
createPaymentMethod() {
return new Ember.RSVP.Promise(resolve => {
resolve({});
});
},
elements() {
return {
create() {
return {
on() {},
card() {},
mount() {}
};
}
};
}
};
};
}