23 lines
406 B
Plaintext
23 lines
406 B
Plaintext
|
export function stubStripe() {
|
||
|
window.Stripe = () => {
|
||
|
return {
|
||
|
createPaymentMethod() {
|
||
|
return new Ember.RSVP.Promise(resolve => {
|
||
|
resolve({});
|
||
|
});
|
||
|
},
|
||
|
elements() {
|
||
|
return {
|
||
|
create() {
|
||
|
return {
|
||
|
on() {},
|
||
|
card() {},
|
||
|
mount() {}
|
||
|
};
|
||
|
}
|
||
|
};
|
||
|
}
|
||
|
};
|
||
|
};
|
||
|
}
|