Problems with Netaxept gateway

496 views
Skip to first unread message

Robert Jordan

unread,
Jan 20, 2013, 9:00:38 PM1/20/13
to activem...@googlegroups.com
I have been trying to use the Netaxept Gateway and running into some issues.  The tests for Active Merchant tests Netaxept gateway (all 14) do not pass and the error is consistent with what I see in my application.

  1) Failure:
test_amount_is_not_required_again_when_capturing_authorization(RemoteNetaxeptTest) [/home2/rob/active_merchant/test/remote/gateways/remote_netaxept_test.rb:110]:
Response failed: #<ActiveMerchant::Billing::NetaxeptGateway::Response:0x00000002b45620 @params={"success"=>false, "setup"=>{"SetupString"=>"<INPUT TYPE=\"hidden\" name=\"BBSePay_transaction\" VALUE=\"IYICvFqCArg8TVNHKzYrU2lnRGF0I1ZFUis1KzMuMC4yI1NZUyszK1BPUyNDSUQrMjArNWJkYjBkYjQ2MDI5NDljNDhmYWUjVElNKzEwKzEzMDIwNzc3ODMjREFUKzI0NCtRZ3BOUWk0d01ESXVNVFk1UndZeU1EQTVNRFpJQTA1UFMwc0dOVGM0TWpBd1RpQmpOemN3WkRFd04yVTBNMlptWmpVNE1UUTJNRFkyWmpVeE9XTmxOemMxT0ZJRE1UQXdWUTR5TURFek1ERXlNREl5TXpZeU0xY2dNekF6WWpVMU5EY3hOVFptTm1FMk56aG1aVE0wTXpnNE9URTVZMkZqTnpKZk5RRXlYejBOTGs1RlZDQlFMMGx1ZG05clpWK0JBQUVnWDRFQkVtaDBkSEE2THk5bGVHRnRjR3hsTG1OdmJWK0JNQWd4TWpBd01ERXdOUT09I1A3UyszNTIrTUlJQkFnWUpLb1pJaHZjTkFRY0NvSUgwTUlIeEFnRUJNUXN3Q1FZRkt3NERBaG9GQURBakJna3Foa2lHOXcwQkJ3R2dGZ1FVc3dGNUFIa3l2U2VDdEJ3Sko1QlN4Z2U0QjFReGdia3dnYllDQVFPQUZDZTdYRmRQdlg0NS9lTDcxaFI2QjB2Y2ZreThNQWtHQlNzT0F3SWFCUUF3RFFZSktvWklodmNOQVFFQkJRQUVnWUJJcWR5bEpMWVNGbFlOZ0QyOW5UYlJMaW8wMTNnMmt6L3FBRWpZRVpOUDhkMXl4SmFGNmlEdGZyVGsxeGdhSkprSkRCTXpaeWlPY0o1MGVCUCtLNEY4VkFvQ2kyQ2kxNVp2Q0tiUUhZTk9UYU9MMWpCM1ZoVHVyUEFsVFM3cWF2a3lsYzBqeUxCbXA0MVFSQ0gvS2JtRjVTZG9QTXJydUcxa0EyNFRTYUxmVXc9PT4=\">", :container=>"SetupResponse"}, "message"=>"Missing parameter: 'transactionString'", "authorization"=>nil, "paymentDetails"=>{"head"=>{"link"=>nil}, "body"=>{"div"=>"Internal error"}, :container=>"html"}, "processSetup"=>{"Message"=>"Missing parameter: 'transactionString'", :container=>"ValidationException"}}, @message="Missing parameter: 'transactionString'", @success=false, @test=true, @authorization=nil, @fraud_review=nil, @avs_result={"code"=>nil, "message"=>nil, "street_match"=>nil, "postal_match"=>nil}, @cvv_result={"code"=>nil, "message"=>nil}>

I have tracked it down to the following couple of lines where I see "Internal Error" returned from the server:

~Line 155, netaxept.rb 

    def commit_payment_details(response, parameters)
        data = encode(parameters[:creditcard].merge(:BBSePay_transaction => response[:setup]['SetupString']))
        response[:paymentDetails] = parse(ssl_post(build_url("terminal/default.aspx"), data), false)
        process(response, :paymentDetails)
      end

Looks like Active Merchant sends:

Sending this to https://epayment-test.bbs.net/terminal/default.aspx?va=4925000000000004&vm=01&vy=16&vc=123&BBSePay_transaction=%3CINPUT+TYPE%3D%22hidden%22+name%3D%22BBSePay_transaction%22+VALUE%3D%22IYICnFqCApg8TVNHKzYrU2lnRGF0I1ZFUis1KzMuMC4yI1NZUyszK1BPUyNDSUQrMjArNWJkYjBkYjQ2MDI5NDljNDhmYWUjVElNKzEwKzEzMDIwNzg2NTAjREFUKzIxMitRZ3BOUWk0d01ESXVNVFk1UndZeU1EQTVNRFpJQTA1UFMwc0dOVGM0TWpBd1RpQXlaVFl4T1dWaU4yUTFOakF5WkRNMlptRTJaVFJtWVROa05EUTJORGhoTjFJR01qUTVNREF3VlE0eU1ERXpNREV5TURJeU5UQTFNRmNGTVRBd01EQmZOUUV5WHowTkxrNUZWQ0JRTDBsdWRtOXJaVitCQUFFZ1g0RUJFbWgwZEhBNkx5OWxlR0Z0Y0d4bExtTnZiVitCTUFneE1qQXdNREV3TlE9PSNQN1MrMzUyK01JSUJBZ1lKS29aSWh2Y05BUWNDb0lIME1JSHhBZ0VCTVFzd0NRWUZLdzREQWhvRkFEQWpCZ2txaGtpRzl3MEJCd0dnRmdRVUpNWEcrUU5GU1d6djI3RjhRVlFhaGxNQ2FPTXhnYmt3Z2JZQ0FRT0FGQ2U3WEZkUHZYNDUvZUw3MWhSNkIwdmNma3k4TUFrR0JTc09Bd0lhQlFBd0RRWUpLb1pJaHZjTkFRRUJCUUFFZ1lCdHFZckVmSTkwSFlWcEF5S3ByVEkvZzg5MFh4UXZocmNZREZ0QWFzRU1LY09DR0V4Lys1aW9EdlRpejlMaVgzM3FjNHV2THFJQ2VJRmhpTnB2akhtQk51RXE1K2RDZEJxM2NwcHFWZy9IUkJ2YzNIOWg3ZDJtbk5kTVVLWkNCaWRPSHlkOUQ3Vk5pQUFHeFhadVlZdnBURDN4d201aStrMkZRSWoyeDlTUEVRPT0%2B%22%3E"

Receive this from Netaxept:
"<html><head><link href="StyleSheet.css" rel="stylesheet" type="text/css" /></head><body><div class="errorPanel">Internal error</div></body></html>"

Any ideas would be helpful.  Thanks in advance.


Nathaniel Talbott

unread,
Jan 21, 2013, 9:17:59 AM1/21/13
to activem...@googlegroups.com
Robert, I did the implementation of Netaxept that is currently in ActiveMerchant, and I'll apologize up-front for that.

I'm actually kind of sad that I managed to get it working in the first place, as I don't know anyone who's been able to actually use it. There are a lot of interrelated reasons as to why: Netaxept seems to have another API they prefer folks to use now; the risk aversion shown by Netaxept proves to be too much of a hurdle; etc.

I can't offer any help in resolving your particular issue, as I've found Netaxept opaque in their dealings and don't have any motivation to try to figure out what's up. Your best bet would be to take it up with them directly, but that's a thin hope at best.

Please let me know if you end up using it; if not, I'm probably going to rip the gateway out of ActiveMerchant altogether.

--
Nathaniel




--
You received this message because you are subscribed to the Google Groups "Active Merchant" group.
To view this discussion on the web visit https://groups.google.com/d/msg/activemerchant/-/Bqx7YaNKi9MJ.
To post to this group, send email to activem...@googlegroups.com.
To unsubscribe from this group, send email to activemerchan...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/activemerchant?hl=en.

Robert Jordan

unread,
Jan 23, 2013, 12:55:13 AM1/23/13
to activem...@googlegroups.com
Nathaniel,  Thanks for letting me know the background.  I was able to get ActiveMerchant to register with Netaxept but It seems that netaxept insists on doing some sort of terminal with a redirect back into the app (Even though it is set as a merchant hosted terminal).  I cannot figure out how that would work in the ActiveMerchant model.    

I have several requests to the support team at Netaxept but they don't like to share any more than they have too.  Plus an 8 hour time difference makes this pretty slow going.

I'll let you know if we get it working or if we decide to go with a different solution. 

Robert Jordan

unread,
Feb 11, 2013, 4:14:03 PM2/11/13
to activem...@googlegroups.com
I have modified the Netaxept gateway and I was able to get the basics working:  Purchase/ Refund.  The error handling is not too great but it will work for my client.

Here is a link to the working code --> https://gist.github.com/rbjordan3/4757571 

-Rob

Nathaniel Talbott

unread,
Apr 4, 2013, 6:21:14 PM4/4/13
to activem...@googlegroups.com
Robert, thanks for this; I cleaned it up and got it integrated today: https://github.com/Shopify/active_merchant/commit/73c53669e6d2d0f106fb808329a8be217dfa7d3c

I'm really happy you were able to get this to the point where I could finish it up; I kind of felt responsible for inflicting the original (broken due to Netaxept policies) version on the world :-)

And for anyone tracking this, Netaxept in ActiveMerchant should actually work now thanks to Robert.

--
Nathaniel


--
You received this message because you are subscribed to the Google Groups "Active Merchant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to activemerchan...@googlegroups.com.

To post to this group, send email to activem...@googlegroups.com.

Meduncho

unread,
Jun 1, 2013, 6:07:16 AM6/1/13
to activem...@googlegroups.com
Hello, guys

Has anyone been able to successfully implement Netaxept as a payment gateway in Spree? I'm trying to do it like described here http://blog.siyelo.com/active-merchant-and-spree and here http://stackoverflow.com/a/11296941/11792 but unfortunately I'm not sure what the class variables should be for the gatway class. Any ideas? Do you have a working example somewhere I can look at or a blog post maybe?

Reply all
Reply to author
Forward
0 new messages