#fedoraus

1 messages · Page 1 of 1 (latest)

worldly bronzeBOT
oak vapor
#

Hi there!

#

Can you clarify what you are trying to do?

marble slate
#

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

oak vapor
#

I don't know much about chrome extensions or firebase, but I can help with the Stripe tide of things.

marble slate
#

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

oak vapor
#

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

marble slate
#
  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??

oak vapor
#

So it's different than Stripe.js.

marble slate
#

oh, thanks a lot!

oak vapor
#

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
marble slate
#

but with no code subscriptions i can just mak e a link to redirect on stripe payment window??

oak vapor
#

Yes, with Payment Link you can create it in the Stripe dashboard, and then just add a link to your app.

marble slate
#

ut do know, can i have some data from this link??

#

but"

oak vapor
#

What do you mean by "some data"?

marble slate
#

payment status i mean"

#

i mean how i can verify who bought this subscription

#

i have some information about client with no code link?

oak vapor
brittle harness
#

👋 taking over for my colleague. Let me know if there's any follow-up Qs I can answer!

marble slate
#

hi there! do you know how to connect stripe subscriptions in my chrome exension???

#

or i just will ue no code link

#

with webhooks

brittle harness
#

as my colleague explained the best way to integrate in your case is using PaymentLinks with webhooks

marble slate
#

okay, can u send the docs?

brittle harness
#

which docs exactly?

marble slate
#

about webhooks

brittle harness
#

my colleague sent them earlier

marble slate
#

i never used stripe webhooks before

#

oh, i see

#

ty ❤️

rigid pathBOT
#

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