A sample bot showing how to integrate with Microsoft Seller Center for payment processing.
The minimum prerequisites to run this sample are:
- The latest update of Visual Studio 2015. You can download the community version here for free.
- Register your bot with the Microsoft Bot Framework. Please refer to this for the instructions. Once you complete the registration, update the Bot's Web.config file with the registered config values (MicrosoftAppId and MicrosoftAppPassword).
This sample has been developed based on Microsoft Bot Builder Dialog system. You can follow the following sample to become familiar with different kind of dialogs and dialog stack in Bot Builder.
-
Create and activate a Stripe account if you don't have one already.
-
Within Seller Center, connect your account with Stripe.
-
Within Seller Center, navigate to the Dashboard and copy the value of MerchantID.
-
Update your bot's web.config file to set
MerchantId
to the value that you copied from the Seller Center Dashboard.
Also, in order to be able to run and test this sample you must publish your bot, for example to Azure. Alternatively, you can use Ngrok to interact with your local bot in the cloud.
To run the sample, you'll need to publish Bot to Azure or use Ngrok to interact with your local bot in the cloud.
- Running Bot app
- In the Visual Studio Solution Explorer window, right click on the PaymentsBot project.
- In the contextual menu, select Debug, then Start New Instance and wait for the Web application to start.
You can use the webchat control in bot framework developer portal to interact with your bot.
To get more information about how to get started in Bot Builder for .NET and Conversations please review the following resources: