cancel
Showing results for 
Search instead for 
Did you mean: 

How to do Paypal integration through Authorize.net in c# web application?

Hello,

We are working in a web application with C# where we have incorporated authorize.net for credit card payments and it is working as perfect as we want.

Now we need to implement Paypal integration through authorize.net in our website. For that we are following https://github.com/AuthorizeNet/sample-code-csharp  to achive the same. Here we are following PayPal Express Checkout >> AUTHORIZATION AND CAPTURE process. Also we are following https://developer.authorize.net/api/reference/index.html (AUTHORIZATION AND CAPTURE section)to achive the same.

But the problem we are facing that at the run time the application is not asking for Paypal Gateway. Means when the code is firing , it is completing the process successfully without asking the paypal payment gatway login or any card details. Now my questing is how it will be redirect to the paypal gateway so that user can login and can choose their card. and after every transaction it is giving us the response as"Need payer consent". 

How to resolve the problem and how to redirected to Paypal gateway through authorize.net.

sriparna123
Member
2 REPLIES 2

While it used to be necessary with Authorize.net to do things, with PayPal it doesn't really require (for our purposes, your mileage may be different) from them other than that your stuff is set up. All it takes is to put some well-formatted information in the url:

 

string serverResponse;

WebResponse wResp = request.GetResponse( );

using ( Stream datStream = wResp.GetResponseStream( ) ) using ( StreamReader datSReader = new StreamReader( datStream ) ) serverResponse = datSReader.ReadToEnd( );

this.Response = HttpUtility.ParseQueryString(serverResponse);

IsSuccess = this.Response.Get( "RESULT" ) == "0"; if ( !IsSuccess ) MessageBox.Show( "RESULT != 0: RESULT = " + this.Response.Get Response.Get ("RESULT")); thetermpapers.org

return IsSuccess;

This code, in its form before it was changed, came straight from the guys at PayPal and made it much easier to manage transactions through a windows form app.

RyanHickers
Member

Payment gateways in WooCommerce are class based and can be added ... that then redirects them to the payment processor on the gateway's own website. ... Authorize.net DPM; iFrame based – This is when the gateway payment ... Payment gateways should be created as additional plugins that hook into WooCommerce. Myhr Savers Login 

pathonix12
Member