Reply
Highlighted
Contributor
Posts: 14
Registered: ‎06-11-2020

Get value of City in Accept.js C#

The Accept.js has an inline form for entering Credit card data.

On that web page, I have several hidden fields. Example city='Dallas"

After entering credit card data, Authorize.net sends the response to 

my Csharp web page.

In the C# Page_Load, I can do 

 

            string strCity = Request.Form["city"];

I get a value for strCity. That is good.

 

I call        CreateAnAcceptPaymentTransaction

 

Inside that procedure,I cannot get values.  I would like something like:

 

                string strCity = Request.Form["city"];
                var billingAddress = new customerAddressType
                {
                    firstName = "John",
                    lastName = "Doe",
                    address = "123 My St",
                    city = strCity,
                    zip = "98004"
                };

I am new to this Authorize.net

 

How can I get the values from the "form" and put in these fields ?

 

TIA

 

Steve2301

 

Highlighted
Contributor
Posts: 14
Registered: ‎06-11-2020

Re: Get value of City in Accept.js C#

SOLVED

                    city = HttpContext.Current.Request["city"]
Highlighted
Member
Posts: 3
Registered: ‎06-11-2019

Re: Get value of City in Accept.js C#

thats for solving, it helped alot

 

IDNGOAL

IDN GOAL