Stripe subscriptions and ASP.NET Web Forms - c#

I have had no luck whatsoever finding any example code for ASP.NET Web Forms that I can use to let customers sign up for subscriptions. It has been a long while since I've used Stripe, and all references to Web Forms implementations are gone from their docs.
I contacted their support people and still get pointed to using the .NET smaples that implement MVC, but I'm not doing an MVC-based site and have no desire to learn MVC simply to decipher and port the samples over for a Web Forms project.
Does ANYONE have a sample of code for a Web Forms project page (and code-behind) that lets someone sign up for a Stripe subscription??? I have code for a webhook, but how to do this for the web page is proving to be problematic.
Thanks for any help you can give, guys!

There's no specific example for that, but there are a couple of 'Stripe with Webforms' videos that might help:
https://www.youtube.com/watch?v=CGpMRtdxvmQ
https://www.youtube.com/watch?v=6DDNgYxLHvU

Related

Login from external database ASP.NET Core 2.2

I'm a rookie with just a few months of training in programming, so please don't be harsh on me.
Right now I'm working on a simple MVC web app using ASP.NET Core 2.2. My problem is that I have to implement login, with users, that are already provided in a external database.
I have read a number of articles and forums and I can't quite find what I'm looking for. Most of the articles are about extending the built-in authentication of ASP.NET Core which I can't use. The ones that implement fully custom login from external database are written based on older versions of ASP.NET Framework - so I have troubles understanding it, being a newbie at this.
I will be grateful for any kind of directions, suggestions, step by step tutorials etc.
Thank you in advance!
You must need you googled but first i found some post for this problem like this,
this post about CRUD operations with sql server 2017 - Basic CRUD
possible you know this web site here for understand .net core or folder structure .net Core Tutorial
I absolutely recommend this man for every topic about .net core/ .net this post basic Simple API for Authentication
Authentication and Authorization
last 2 post for basic login
https://www.c-sharpcorner.com/article/asp-net-core-razor-pages-simple-login-using-entity-framework-database-first-app/
http://future-shock.net/blog/post/creating-a-simple-login-in-asp.net-core-2-using-authentication-and-authorization-not-identity

oData, REST and Web API in asp.net

I am new to these concepts so I just wanted help on some simple information to get started with ASP.NET Web API and oData.
I have been searching in google and for sure I am getting lots of resources but a little confused where to start from.
I have gone through the information w.r.t difference between a traditional web service and a web API.
I request you to give me information/any useful articles to get started with on below:
Real Life example of Web API - I read somewhere that Paypal is the best example. Is it correct? Any other easy examples which help me in relating Web API with our day to day life?
What is oData and how we can leverage this with Web API? Why do we need oData?
What is Restful and real life usage (example) of the same.
Please note I am a beginner in this area, my questions might be very basic, kindly bear with me.
Thanks in Advance
About Web Api, Microsoft Virtual Academy can be a good start. Because they are covering web api with Odata, so here is the link
Web Api Jump Start in Microsoft Virtual Academy

SaaS development using .Net

I do not know how to explain this in technical terms. So let me begin with an example:
Story
I have an online e-commerce site www.ABCStore.com . I built this using MVC 4 (Razor) in Dot Net.
My friend has a travel agency for which his online site is www.DEFAgency.com . He got it built in Java.
Both our websites were up and running. One fine day I got a call from a company FicticiousServiceProvider and they asked me if I would be interested in getting customer feedback as a functionality on my website without having to write any code myself. What they offered was, I would have to include just a single line of code in the footer of my Masterpage(or layout page) and then the customers who log on to the site would see a small icon on the pages and would be able to provide their feedback.
The feedback will not be available directly to me. The FicticiousServiceProvider guys will analyze the data and provide them to me on a regular basis or on a need basis.
There were other services too which they offered.
I was really happy to have a functionality like that, specially without having to write any code. I tried it and it worked fine in my .Net website. My friend(with a java website) also added a single line to his code and it worked for him too.
My questions here are:
What is this process called ?
If I were FicticiousServiceProvider, how would I have developed this using .Net ? I mean, how to develop a functionality so that a consumer can consume the service using a single line provided by the service provider. Data transfer from my site in the form of feedback to the FicticiousServiceProvider is also happening, without me being able to see anything.
How was it possible for FicticiousServiceProvider to provide the functionality to a .Net app and a java app without any change in the line provided by them?
I have given the description from a consumers perspective. Please suggest from a developer's perspective. Many Thanks.
These things, like Google Analytics tracking code, are usually some kind of javascript injecton. It will use javascript to 'inject' a bit of code that sends a request to their servers (what their server side is coded in is irrelevant really). They then handle the request that includes the information they've gathered in javascript on the client side and store it, then use server side software to analyse that data to give out reports, etc..
So to try and answer your question separately.
I'd call the process javascript injection.
You would have to find the best way to send a request to your servers and handle that request. Could be done with ASP.Net MVC quite easily but any server side technology/code that can handle requests and send data to a store.
They use javascript which is separate to any server side code and works across browsers on the client side.

Communication between Windows Form Application and Web Page in C#

I am developing a windows based application using C#.
This should be used by the customer after some verification.
Every time they enter the details, the information should be validated in the server. And based on the response the windows-application should proceed further.
Could you please suggest me some examples or technologies ideal for this scenario?
I read through the documentations about WebClient and HttpWebRequest. But still I am not clear. Sorry I am an Embedded Systems Programmer. I haven't worked on Server related technologies.
Thanks for your help.
I would look at Windows Communication Foundation it is a service and messaging framework designed for exactly what you want to do.
a webservice would be a good solution.
look here for more information on creating a webservice:
http://www.codeproject.com/KB/webservices/myservice.aspx
then you can import your webservice like a reference to a class and use it in your clientside c# programm.
http://www.xefteri.com/articles/show.cfm?id=15
this article is for VB, but it shouldn't be a problem, the important thing is the referencing, which is Visual Studio specific and not VB specific.
I would look at a WCF service using a NetTcpBinding. Here is a good link:
http://msdn.microsoft.com/en-us/magazine/cc163394.aspx
I am a little unsure what your reference to a web page in the post title refers to.

How to create facebook style news feed (wall post) by using ASP.NET with jQuery?

I am developing a web application by using asp.net 3.5 and sql server 2008R2. I have to create a page as like as facebook News Feed (wall post). I need post Status and reply comments. I know it will be done by jQuery but I am not expart of Query. Anyone help me with sample code or demo project?
Thanks
Nahid
Well a sample code for whole project doesn't seem to be the way things work on SO.
However for some things in which you should look is:
Design Idea
Look at some of the web apps which already provide such feature like Hootsuit, Facebook, Sesmic, etc
API (If using data from other websites)
Facebook Graph API
Data Handeling
Consider looking at Json.
Try out some hands on AJAX possibly from jQuery
Json Handling in (.Net) C# with Json.Net or JavaScriptSerializer
Facebook C# SDK (If data querying from facebook)
Authentication & Authorization
Forms Authentication
ASP.Net Memberships
And could be many more depending on how you specifically implement such feature in your website.
And don't forget using development tools like Firebug and Fiddler, will be very helpful when you debug your code.

Categories