My client is using an eCheck solution that processes payments by bundling all the order data into a CSV and then uploading it to a server via FTP. I've been working for a couple days trying to get this to work and I feel like I'm in way over my head at this point. I thought it would be simple. The whole thing seemed straightforward enough. I've followed the tutorials on LS for creating payment modules but neither solution, server-to-server or redirection, seems to be suitable. I've gotten as far as collecting all the data in an array and outputing that to a text file (at least I hope that part works). Then it should be sent via FTP when the customer clicks Submit on the Pay page but when I do so I get an error that says $host isn't defined as in the $host variable used here:
public function build_config_ui($host, $context = null) {}
The admin portion works. I can select the payment method and fill in the fields to save obviously. I can choose it as a payment method at checkout, but every time I pay it fails for some reason or another.
Is there anyone that's dealt with a similar payment method or has any thoughts as to how to successfully implement this? I'm at my wit's end here and I'm already behind schedule.
Ben