#fedoraus
1 messages · Page 1 of 1 (latest)
i have chrome extension with connected firestore database and authentication, and i want to connect stripe for monthly subspription
but mv3 version does not support imported scripts
I don't know much about chrome extensions or firebase, but I can help with the Stripe tide of things.
yes, i want to connect Stripe for monthly subscription, but i ant, cuz chrome extensions on mv3 does not support <script src="https://js.stripe.com/v3/"></script>
i need do download all stripe functions into my project manually
to have stripe js file in my project
But what are you trying to do exactly with Stripe? If you want to create a subscription, this cannot be done with Stripe.js, you need to do it in your backend code.
Or if you want a no code option to create subscription without Stripe.js, you could use Payment Links: https://stripe.com/docs/payments/payment-links
const stripe = require("stripe")(functions.config().stripe.secret_key);
const session = await stripe.checkout.sessions.create({
payment_method_types: ["card"],
mode: "payment",
success_url: "popup.html",
cancel_url: "popup.html",
line_items: [{
quantity: 1,
price_data: {
currency: "usd",
unit_ammount: (5) * 100,
product_data: {
name: "Extension",
},
},
},
],
});
return {
id: session.id,
};
}); ```
its not stripe js function??
Yes this is a function in JS, but this is using the stripe-node library: https://github.com/stripe/stripe-node
So it's different than Stripe.js.
oh, thanks a lot!
If you are using Checkout Session, then the flow is:
- Create the Checkout Session on the backend
- Then redirect users to the Checkout Session URL
So no need for Stripe.js in this case
but with no code subscriptions i can just mak e a link to redirect on stripe payment window??
Yes, with Payment Link you can create it in the Stripe dashboard, and then just add a link to your app.
What do you mean by "some data"?
payment status i mean"
i mean how i can verify who bought this subscription
i have some information about client with no code link?
You would use webhook events, and listen to checkout.session.completed
You can learn more about this here: https://stripe.com/docs/payments/checkout/fulfill-orders
👋 taking over for my colleague. Let me know if there's any follow-up Qs I can answer!
hi there! do you know how to connect stripe subscriptions in my chrome exension???
or i just will ue no code link
with webhooks
as my colleague explained the best way to integrate in your case is using PaymentLinks with webhooks
okay, can u send the docs?
which docs exactly?
about webhooks
my colleague sent them earlier
This thread has been archived. If you need help with anything else please ask in #dev-help or contact Stripe Support: https://support.stripe.com/contact
Find help and support for Stripe. Our support center provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.