.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Post New Web Links

Authorize.net puzzle

Posted By:      Posted Date: October 04, 2010    Points: 0   Category :ASP.Net

I have my website ready to go and am ready to install credit card processing.   I signed up with Authorize.net but cannot, even begin, to understand how to implement it with the website.  I can't believe Authorize.net doesn't have a tutorial explaining the basic steps of implementation.  For example....

Step - Create Authorize.net account (done)

Step - Determine the payment process (shopping cart, subscription, one-time payment, etc.) (done - membership)

Step - Determine checkout initialization (done - button click)

Step - Determine form type - custom or Authorize.net (done - Authorize.net)

Step - Review Help, Documentation, Samples, Implementation guides (done, done, done, done)

Step - Execute the payment process (DON"T HAVE A CLUE)

I further can't believe someone hasn't published a page explaining and providing a tutorial demonstrating the basic steps of implementing and executing Authorize.net payment process step by step.  All I have found so far is gigantic chuncks of code with no explanation or direction.  Is this area still the domain of experts?  Or does anyone have anything to point to for us novices?

View Complete Post

More Related Resource Links

Post back puzzle


Hi, I have a website where the user makes a selection from a combo box and it then fills a couple text boxes with text based upon the selection. I'm sure as you know it could take a second for the text to appear in the text box due to the post back. I know there is no way to make it instantanious, so what I would like to do it fill the text box with somthing like "Loading Info..." so the user does not type in it while the information is loading.

If you would like to see what I mean please go to this page: www.epiclinks.com/create.aspx and mess around with the combo boxes and You'll see what I mean.

What I would like to do is have it do a post back to write "Loading Info..." and then do another post back to fill it in based upon their selection. How would I do this?

I'm up for anything, so if you have a better solution than that please let me know.


Authorize It: Use Role-Based Security in Your Middle Tier .NET Apps with Authorization Manager


Authorization Manager in Windows Server 2003 represents a significant improvement in the administration of role-based security, making it more scalable, flexible, and easier to implement. Using Authorization Manager, you can define roles and the tasks those roles can perform. You can nest roles to inherit characteristics from other roles, and you can define application groups. In addition, Authorization Manager lets you use scripts to modify permissions dynamically, and it allows you to wrap your security logic in a security policy that can be stored in Active Directory. Authorization Manager also includes an easy-to-use API for running access checks. The author discusses all of these topics and demonstrates them with a working sample.

Keith Brown

MSDN Magazine November 2003

Authorize.Net ARB passing variable


The following code is Authorize.Net Sample Code provided on their website for ARB clients/merchants to use as an example.  

If you notice, there is a sample (fake) credit card number, (4111111111111111), on Program.vb at "Private Sub PopulateSubscription(ByVal request As ARBCreateSubscriptionRequest).   NOTE: there are four "Sub PopulateSubscription" on Program.vb.  I am refering to the "ARBCreateSubscriptionRequest".

My objective - Pass a variable in a TextBox on Default.aspx to replace the credit card number (4111111111111111) in Sub-PopulateSubscription. 

I assume this can be done, but I am not experienced enough to make it work properly. 

Let me be clear....I don't expect anyone to show me how to code a program to communicate with Authorize.Net, because from reading other posts, many people don't want to offer any help regarding Authorize.Net because they haven't worked with it before.  What I am asking, is for someone to show me how to Pass a variable from a Form to a Class, in a way that will work given the Sample code I have provided. 

I hope someone can help.  Should be just a walk in the park for some of you.

------------------THIS IS Program.vb-------------------------
'D I S C L A I M E

DataContractSerializer deserialization puzzle - by-pass member initialization.

Hi, I was using WCF and during the transmission of a object, of the type Book, see code below, the deserialization process throws a NullReferenceException. To isolate the problem, I uses a unit test like this rather than involving the full blown WCF marshalling. This appears to be solely a serialization/deserialization problem and has nothing to do with the communication issues in WCF. [Test] public void TestSerializeAndDeserializeBook() {     Book book = new Book( "Testing Serialization and Deserialization",                         new Person( 100, "Tom", "Smith" ),                         new Person( 101, "Peter", "Pan" ) );     DataContractSerializer ser = new DataContractSerializer( typeof(Book) );     using( Stream stm = new MemoryStream() )     {         ser.WriteObject( stm, book );         stm.Seek( 0, SeekOrigin.Begin );         Book regen = ser.ReadObject( stm ) as Book; // NullReferenceException here     &nb

Form Integration With Authorize.Net

I'm trying to do the integration, i have designed my form already :<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title></title> </head> <body> <span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "> <span class="Apple-style-span" style="color: rgb(111, 120, 136); font-family: Arial, Helvetica, sans-serif; font-size: 12px; "> <table align="center" border="0" cellpadding="2" cellspacing="0"

Authorize.Net SOAP object issue


I get message that "amount" and "startDate" are required from Authorize.Net.  I can't figure out why these values aren't registering.

here is my code behind in vb.  Please advise.


Imports System
Imports System.Collections
Imports System.IO
Imports System.Text
Imports System.Xml
Imports System.Xml.Serialization
Imports System.Net
Imports System.Data.SqlClient

Partial Class CCard
    Inherits System.Web.UI.Page

    Public ReadOnly Property subXAmount() As String
            Dim xamount As String = ""
            Select Case Convert.ToString(Session("MembType"))
                Case "0"
                    xamount = ".01"
                Case "1"
                    xamount = "5"
                Case "2"
                    xamount = "25"
                Case "3"
                    xamount = "2"
            End Select
            Return xamount
        End Get
    End Property

    Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click

        If TextBoxCCN.Text = "" Or TextBoxCCName.Text = "" Then
            If TextBoxCCN.Text = "" Then

Integrating with Authorize.NET


I created a web link to https://apitest.authorize.net/soap/v1/Service.asmx and supplied code to vb but can't get a response.

Does anyone see what might be wrong?

Partial Class SOAP_Example_Default
    Inherits System.Web.UI.Page

    Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click

        Dim myService As New net.authorize.apitest.Service
        Dim merchType As New net.authorize.apitest.MerchantAuthenticationType

        merchType.name = "abc"
        merchType.transactionKey = "abc"

        Dim subscr As New net.authorize.apitest.ARBSubscriptionType
        subscr.amount = 2

        Dim creditCard As New net.authorize.apitest.CreditCardType
        creditCard.cardNumber = "4111111111111111"
        creditCard.expirationDate = "2050-05"   ' required format for API is YYYY-MM

        Dim pmtSch As New net.authorize.apitest.PaymentScheduleType
        pmtSch.startDate = "2010-08-30"
        pmtSch.totalOccurrences = 9999

        Dim pmtSchInt As New net.authorize.apitest.PaymentScheduleTypeInterval
        pmtSchInt.unit = net.authorize.apitest.ARBSubscriptionUnitEnum.months
        pmtSchInt.length = 1


WPF Jigsaw puzzle app

I want to create a jiggsaw application like the jigsaw planet website so far I have seen grid based puzzles with squares I need direction on the methods of loading an image and then breaking the image up into jigsaw pieces with odd shapes. The loading of an image should be easy but I haven't seen any examples of breaking an image into irregular shapes. If anyone has source code, examples, or methods or any ideas that would help I would be ecstatic as I am coming from a flash/web/php/asp.net/sql developer background and programming applications for the desktop is completely new territory for me.

MVC 3 Beta, Authorize attribute bug


Not sure if this is the best place to put this bug report, but

Visual Studio 2010 Pro, MVC 3 Beta (10/6), Windows 7 Pro

1) Create MVC 3 web site

2) Add [Authorize] attribute to About controller.

3) Run and Click About

Error 404: It tries to go to "Account/login" instead of "~/Account/LogOn" that is defined by default in Web.config.


Unable to Authorize Launch Permissions for missing "Microsoft Excel Application" in DCOM Config



I would like to develop Excel charts programatically using VB .NET and the Microsoft Excel 11.0 Object Library (http://www.beansoftware.com/asp.net-tutorials/generating-excel-reports.aspx).  To accomplish this, I need to authorize the aspnet user on my machine launch permissions on "Microsoft Excel Application" DCOM (http://blog.crowe.co.nz/archive/2006/03/02/589.aspx).  I tried using dcomcnfg.exe to do this, however, I cannot find the "Microsoft Excel Application" DCOM under DCOM Config.

I am developing on a Windows XP (work machine) using Office Excel 2003

Why is the ""Microsoft Excel Application" missing in DCOM Config? More importantly, how can I give aspnet launch privileges to if Microsoft Excel Application DCOM is missing in DCOM Config?



Semi-Additive Annual Comp Measure Puzzle


Environment: SQL Server 2008 (not R2) Analysis Services; Panorama Novaview

I've created a factless fact table that records employee information for a payroll warehouse. Users can use dimension attributes such as Annual Compensation, Full Name, etc. to find out information about employees. There's currently only one measure called "Headcount" which is a distinct count of an employee ID (unique to the employee). There's a row for each day for each employee and the employees attributes describe how he/she looked on that day (using type 2 SCDs).

Users have requested that they see the sum of the annual compensation. This seems more like a semi-additive measure than anything else. For example, let's say a department has 3 employees for the year of 2009, each with annual comps of 20;30;40 (thousand) respectively. In the actual relational table, there will be a record for each employee for each day (point in time information). If annual compensation is added as a measure, then the measure would be = Annual Comp * No. of Days in 2009. That means, we'd have 20*30*40*365 ---- this is not what they want to see. They want to see a total of $90,000.

How could you do this?

Here's some more info about this:


How do I display a custom error message if Authorize fails



I have a page that can only be accessed by "Admins". If a user who is NOT an admin tries to access the page, I'd like to do two things:

  1. Log the error to the database
  2. Send the user to my error page but display a custom message

I don't know where to handle the error logging because there doesn't seem to be a controller for the error page (I'm using Razor. Just created an Internet Application MVC3 project in VS 2010)

I also don't know how to customize the error message.

Could someone give me some pointers on this?

Is it possible to authorize users on on specific list items?


I need your help with an authorization probem in my application. Suppose I have 3 users - Peter, Paul and John in my application. Peter is in charge of Europe sales and Paul in charge of North America sales. When they login to the application, only Europe sales figures should be visible to Peter, while Paul can see only North America sales figures. Both of them report to John, who can see sales figures for both North America as well as Europe.

I've been trying this hard, but since I'm just a novice, I've been messing it up. Really sorry if I sound dumb. 

Novice Kid

Insight of ASP.NET MVC's Authorize attribute

ASP.NET MVC alleviates the pain in attaining the role based security just by a simple yet powerful attribute known as Authorize.
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend