I need to import stripe in to my application
First i installed stripe npm package
npm install stripe --save
Stripe documentation says that secret key should be set before connect the api.
In Node it likes this
var stripe = require('stripe')(' your stripe API key ');
I need to convert it to typescript
I tried following way . but it didnt work for me
import * as stripe from 'stripe';
stripe('sk_test_...')
if some can help me to solve this problem it will great help to me to continue my project without delay.
Thank you