razorpay / razorpay-dotnet-testapp

Test app for .net integration
MIT License
9 stars 17 forks source link

How to create new subscription. #12

Open adukale opened 4 years ago

adukale commented 4 years ago

With this code I can create new subscription but after creating how can I get created subscription ID and details?

`RazorpayClient client = new RazorpayClient(key, secret);
Dictionary<string, object> input = new Dictionary<string, object>(); input.Add("plan_id", "plan_if"); input.Add("total_count", 12);

        try {
            sub = new Subscription();

            sub.Create(input);

        }
        catch(Exception ex)
        {

        }`