After click on Buy button
- Create Stripe account. Get public and pirvate keys
- Create The Movie DB account. Get private key (settings > API)
- Create NewBot Cloud account. Get only public key (settings > API)
NewBot must be installed (
npm install -g newbot-cli
)
git clone git@github.com:newbotjs/chatbot-example-stripe.git
cd chatbot-example-stripe
npm install
In webviews/js/config.js
:
const NEWBOT_PUBLIC_KEY = '<Your NewBot Cloud Public Key>'
const STRIPE_PUBLIC_KEY = '<Your Stripe Public Key>'
export MOVIE_DB_KEY=<Your The Movie Db Private Key>
export STRIPE_KEY=<Your Stripe Private Key>
newbot serve
Open Bot Framework Emulator and test with a sentence : Buy a movie
- Go to NewBot Cloud account
- Create Environment variables
- Go to Build > Data > Add
- Put a name (
Movies
for example) and selectEnvironment variables
. Click onvalidate
- Click on
Add
button to add data - Add
MOVIE_DB_KEY
inKey
and your The Movie Db Private Key inValue
- Add new data and add
STRIPE_KEY
inKey
and your Stripe Private Key inValue
- In your project, deploy with this command :
newbot deploy