#Marius-Subscription
1 messages · Page 1 of 1 (latest)
yes
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
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?
Yes, this will create a subscription.
The easiest way to go about subscription is using Stripe Checkout https://stripe.com/docs/billing/quickstart
ok