#karuppasamy
1 messages · Page 1 of 1 (latest)
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
// Assuming you have a PriceService or similar service to retrieve price details
var priceService = new PriceService();
var priceDetails = priceService.Get(subscriptionDetails.PriceID);
if (priceDetails != null)
{
var planName = priceDetails.Product.Name; // Assuming the plan name is stored in the Product associated with the price
subscriptionDetails.ProductName = planName; // Now you have the plan name in the 'planName' variable
i amusing this code but not working
You should just use ProductService instead.
service.Get("prod_ID");```
how to get prod_ID ?