a0-purchases
Version:
Lightweight subscription management for AI apps with auto-detecting providers
15 lines • 527 B
JavaScript
// shim for web to avoid importing native stripe SDK
export function initStripe() {
// console.warn("Stripe initStripe called on web - noop");
}
export function useStripe() {
return {
initPaymentSheet: async () => ({ error: undefined }),
presentPaymentSheet: async () => ({ error: undefined }),
};
}
export var PaymentSheetError;
(function (PaymentSheetError) {
PaymentSheetError["Canceled"] = "Canceled";
})(PaymentSheetError || (PaymentSheetError = {}));
//# sourceMappingURL=stripe.web.js.map