#mangeshsm_docs
1 messages ¡ Page 1 of 1 (latest)
đ Welcome to your new thread!
â˛ď¸ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
âąď¸ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
đ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1291352044623368255
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- mangeshsm_api, 1 hour ago, 18 messages
hi! what is your question?
I want to create a functionlaity in that -
Able to provide E Gift card to user with the help of Strip Payment.
#nontechnical #nocodingquestion
what code have you written to attempt that so far that you're stuck with?
if you are not a developer with a question about code, we can not help you on this server.
Thanks for attempt.
Can you Please help me what is wrong with this ?
const stripe = require('stripe')('your_stripe_secret_key');
const session = await stripe.checkout.sessions.create({
payment_method_types: ['card'],
line_items: [
{
price_data: {
currency: 'usd',
product_data: {
name: 'E-Gift Card',
},
unit_amount: 5000, // $50.00
},
quantity: 1,
},
],
mode: 'payment',
success_url: 'https://your-domain.com/success?session_id={CHECKOUT_SESSION_ID}',
cancel_url: 'https://your-domain.com/cancel',
});
hi! I'm taking over this thread.
that code looks correct. is it returning an error?
Without any error or any response
did you try to log the session variable?
Session variables getting before API call not after
I don't understand. the response of the API call is stored in the session variable. so just add console.log(session) in your code to see the API response.
{CHECKOUT_SESSION_ID}' not this session.
There i have couple session varibles
are you a software developer?
Yes ,why ?
then can you add to your code console.log(session) and share the response here?