Hi have fond an answer to my own question. After digging in deeper into debugger and stepping into a Payment methods, I have found out that the zip code that I was transferring to ActiveMerchant was reporting an error. But the error itself didn't report on some upper level functions, which is strange. Anyway, the error was that I was sending a json data wich have had
billing_attributes { zipcode: $scope.zipcode}
But when I have looked at my view, I have found that I have used ng-model zipcode
I have accidentally missed _
in the data that is sent to the ActiveMerchant, it should have been:
billing_attributes { zip_code: $scope.zipcode}
All this problem because of typo. Not a big problem, but wanted to note the place where to first look if someone runs on this problem. The data seemed good, but for all others please pay attention if the data you are sending is really formatted like it should.