#cmshaki-upe-client-secret
1 messages · Page 1 of 1 (latest)
hey ynnoj
Can you share your code?
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);
You need to replace {{CLIENT_SECRET}} with the actual client secret from a PI
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
You can't, you need a backend/server
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
but there is a difference between stripe-node and stripe-js there are methods like create which aren't available
Yep,stripe-nodehas server only methods (like PI creation)
woah thanks ynnoj you're a life saver