mirror of
https://github.com/discourse/discourse-subscriptions.git
synced 2025-02-17 17:04:45 +00:00
* FIX: set Discourse consistent styles on Stripe card element * use correct placeholder color * applied prettier * mock update method for cardElement * minor formatting
26 lines
460 B
JavaScript
26 lines
460 B
JavaScript
import { Promise } from "rsvp";
|
|
|
|
export function stubStripe() {
|
|
window.Stripe = () => {
|
|
return {
|
|
createPaymentMethod() {
|
|
return new Promise((resolve) => {
|
|
resolve({});
|
|
});
|
|
},
|
|
elements() {
|
|
return {
|
|
create() {
|
|
return {
|
|
on() {},
|
|
card() {},
|
|
mount() {},
|
|
update() {},
|
|
};
|
|
},
|
|
};
|
|
},
|
|
};
|
|
};
|
|
}
|