473,320 Members | 1,939 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Accessing COM object in Commerce Server orderform using C#

I am integrating a CyberSource Commerce pipeline component to manage my
payment transactions. CyberSource provides a hashtable COM object that
is used to set data into the orderform before a request and is used to
retrieve response data. I have set a reference to object in my project
and have no problem creating instance, setting data and then setting in
orderform.

On CyberSource response they have populated a hashtable object and
their Commerce Component sets it in the Commerce Server orderform
object (orderform{"_cybs_reply"]. I need to access that in my ASP.Net
C# code to pull response data. Something along the lines of this code
(which doesn't work):

CyberSourceWSLib.HashtableClass oReply = new
CyberSourceWSLib.HashtableClass();
oReply = (CyberSourceWSLib.HashtableClass)orderForm["_cybs_reply"];
string test = (String)oReply["decision"];

The above code fails with invalid cast error on second line. Anyone
know how to access this COM object stored in the orderform?

Apr 28 '06 #1
0 1059

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
by: DrUg13 | last post by:
In java, this seems so easy. You need a new object Object test = new Object() gives me exactly what I want. could someone please help me understand the different ways to do the same thing in...
0
by: Zorba.GR | last post by:
IBM DB2 Connect Enterprise Edition v8.2, other IBM DB2 (32 bit, 64 bit) (MULTiOS, Windows, Linux, Solaris), IBM iSoft Commerce Suite Server Enterprise v3.2.01, IBM Tivoli Storage Resource Manager...
1
by: Alien2_51 | last post by:
I have a commerce server application that's accessible from our internal users via integrated security and accessible to external users via certificate and ssl. I have a problem that's only...
0
by: sonu | last post by:
I have following client side code which i have used in my asp.net project SummaryFeatured Resources from the IBM Business Values Solution Center WHITEPAPER : CRM Done Right Improve the...
6
by: Aziz | last post by:
Here's the problem. On my OrderForm the user can click a link to open up the AddCustomer form to add a new customer, when AddCustomer form closes, it saves the customer to the DataBase. The...
0
by: dougelderz | last post by:
I am integrating a CyberSource Commerce pipeline component to manage my payment transactions. CyberSource provides a hashtable COM object that is used to set data into the orderform before a...
45
by: bigdadro | last post by:
I've created a new class using prototype.js. After I make the ajax.request all references to this.myClassMethodorVariable are lost. Does the ajax method blow out the object persistance? I'm fairly...
2
by: Christian Perthen | last post by:
Hi, I am seeking an alternative component for MS Commerce Servers page object. Mostly used for creating and retrieving URLs Exemple, Dim strVar strVar = mscspage.requeststring("strVar",...
15
by: Dave Young | last post by:
I'm trying to replicate the behaviour of the Commerce.Dictionary object that was found in Commerce Server 3.0 By using a hashtable or creating a custom class that implements IDictionary, you...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.