A simple package built to work with Alexa In Skill Products
PaymentDirective.AddSupport();
using Alexa.NET.InSkillPricing
...
var client = new InSkillProductsClient(skillRequest);
var response = client.GetProducts();
var count = response.Products.Length;
using Alexa.NET.InSkillPricing
...
var client = new InSkillProductsClient(skillRequest);
var product = client.GetProduct("productId");
using Alexa.NET.InSkillPricing.Directives
...
var buyDirective = new BuyDirective("amzn1.adg.productId", "correlationToken");
var response = ResponseBuilder.Empty();
response.Response.ShouldEndSession = true;
response.Response.Directives.Add(buyDirective);
using Alexa.NET.InSkillPricing.Responses
...
ConnectionRequestHandler.AddToRequestConverter();
...
switch(request)
{
case ConnectionResponseRequest paymentDetail:
//TODO: Handle payment here
}