#cmshaki-upe-client-secret

1 messages · Page 1 of 1 (latest)

modest aurora
#

Hey!

autumn yoke
#

hey ynnoj

modest aurora
#

Can you share your code?

autumn yoke
#

const stripe = Stripe('pk_test...');
const options = {
clientSecret: '{{CLIENT_SECRET}}',
};

    // Set up Stripe.js and Elements to use in checkout form, passing the client secret obtained in step 2
    const elements = stripe.elements(options);
modest aurora
#

You need to replace {{CLIENT_SECRET}} with the actual client secret from a PI

autumn yoke
#

How do you create a PI from the browser

#

I'm using stripe-js, oh great one show me your secrets 😆

#

strictly html/js environment

modest aurora
autumn yoke
#

tried with the examples shown but there is a difference between stripe-node and stripe-js there are methods like create which aren't available

#

Can I see a full integration of stripe elements frontend and backend?

#

It will be much easier for me

#

any repo

modest aurora
#

but there is a difference between stripe-node and stripe-js there are methods like create which aren't available
Yep, stripe-node has server only methods (like PI creation)

modest aurora
autumn yoke
#

woah thanks ynnoj you're a life saver