#Marius-Subscription

1 messages · Page 1 of 1 (latest)

spring river
#

Hi there, are you looking for the .NET API to create a subscription?

green pike
#

yes

spring river
green pike
#

So.... If I will use this code

#

StripeConfiguration.ApiKey = "sk_test_51LWw7vEpryYJWSdxUrSxgA9gaCdHlf0ClznXwDdHolfjbuiETUAiRRm7FKWQSGRYkPfnxMy0KkbRqWS2hzgRruRp00DowrBYCi";

var options = new SubscriptionCreateOptions
{
Customer = "cus_MJaGKovV3dkmPd",
Items = new List<SubscriptionItemOptions>
{
new SubscriptionItemOptions
{
Price = "price_1Lax67EpryYJWSdxS4RjqeCL",
},
},
};
var service = new SubscriptionService();
service.Create(options);

#

I will create a subscription or user pay?

spring river
#

Yes, this will create a subscription.

green pike
#

ok