2020-05-28 11:32:57 -04:00
|
|
|
import { Promise } from "rsvp";
|
|
|
|
|
2019-10-08 20:53:58 -04:00
|
|
|
export function stubStripe() {
|
|
|
|
window.Stripe = () => {
|
|
|
|
return {
|
|
|
|
createPaymentMethod() {
|
2021-01-04 14:32:33 -05:00
|
|
|
return new Promise((resolve) => {
|
2019-10-08 20:53:58 -04:00
|
|
|
resolve({});
|
|
|
|
});
|
|
|
|
},
|
|
|
|
elements() {
|
|
|
|
return {
|
|
|
|
create() {
|
|
|
|
return {
|
|
|
|
on() {},
|
|
|
|
card() {},
|
2021-01-04 14:32:33 -05:00
|
|
|
mount() {},
|
2022-06-24 11:48:38 -04:00
|
|
|
update() {},
|
2019-10-08 20:53:58 -04:00
|
|
|
};
|
2021-01-04 14:32:33 -05:00
|
|
|
},
|
2019-10-08 20:53:58 -04:00
|
|
|
};
|
2021-01-04 14:32:33 -05:00
|
|
|
},
|
2019-10-08 20:53:58 -04:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|