Posts by callrakkha

Study for interview

angularjs-interview-questions-answers-by-shailendra-chauhan Equity Swaps c# only interview questions How garbage collection works.doc General Hedgefunds Bonds equityswapsandequityinvesting Threading Excel Deadlock victim example Threading  

Read More

How to add a customer to Stripe Subscription

StripeConfiguration.SetApiKey(private_key); string planA = “plan_CRE8Xijw93bjH6”; string customerID = “cus_AecrAyfISfKcVN”; //make sure customer has a payment // Make sure to check to see if customer has a payment method StripeSubscriptionService svc = new StripeSubscriptionService(); StripeSubscriptionCreateOptions opt = new StripeSubscriptionCreateOptions(); StripeSubscription sc = svc.Create(customerID, planA, null, null);  

Read More

How to charge a customer in Stripe using Stripe.net C# library

Note: In a production environment, you’ll have to write more code to see if the credit card is expired or not You’ll also have to know what credit card to charge (some customers have more than one credit card).   StripeConfiguration.SetApiKey(private_key); // Variables string cardId = string.Empty; // Retrieve the customer var customerService = new…

Read More

How to create a Stripe subscription plan using C# and Stripe.net

StripeConfiguration.SetApiKey(private_key); var planService = new StripePlanService(); StripePlanCreateOptions co = new StripePlanCreateOptions(); co.Amount = 15000; co.Currency = “USD”; co.TrialPeriodDays = 10; co.Name = “Test Plan”; co.StatementDescriptor = “Codw Lab Plan”; co.Interval = “month”; StripeRequestOptions rq = new StripeRequestOptions(); StripePlan plan = planService.Create(co, rq);     The code above will create a plan under stripe subscriptions.

Read More

CodeLab Plugins

Hello Welcome to CodeLab Plugins. I’m planning on making some exciting Excel Plugins. The development will be done using C# and Visual Studio 2017. The solutions I develop will be geared towards the financial industry. Mainly because I worked in finance/software development for a good part of my career and I know that area really…

Read More