#teamninja-checkout-coupons

1 messages ยท Page 1 of 1 (latest)

arctic arrow
sand cape
#

cool thanks a lot

#

onst stripe = require('stripe')('sk_test_4eC39HqLyjWDarjtT1zdp7dc');

const session = await stripe.checkout.sessions.create({
success_url: 'https://example.com/success',
cancel_url: 'https://example.com/cancel',
line_items: [
{price: 'price_H5ggYwtDq4fbrJ', quantity: 2},
],
mode: 'payment',
allow_promotion_codes: true,
});

#

this right

#

just confirming

arctic arrow
#

Yes, that should work

sand cape
#

thanks you're awesome ๐Ÿ˜†
One last question please. Is there any way to test Stripe Integration in Live mode without charge?

arctic arrow
#

No, we don't recommend testing in live mode at all

sand cape
#

ok so how to know if transactions will go through. Should I subscription it

arctic arrow
#

What do you mean, how to know if the transactions will go through?

sand cape
#

I mean I verified in test mode everything looks good. Now I just want to make sure it will work in Live mode.

#

before launch etc

arctic arrow
#

Unfortunately, there isn't really a way to accomplish a "test run" in live mode that doesn't create a charge.

sand cape
#

ok thanks