Hi,
On my payment form submitted to my payment gateway (First Data), I don't get the ip address. How do I capture this on the form side instead of using an action?
Diana
Nope won't work..........I can't use any actions in the On Submit because all on submit actions there are stripped out. Has to be in the view side (on load) of form.
Hi Diana,
You can capture the IP Address in the On Load event and add it to a hidden input in the form if you need to.
Bob
PS I generally don't recommend submitting directly from a form to a payment gateway. It's safer to submit to ChronoForms, check and save a copy of the data there as an audit trail, then pass it to the gateway.
Hi Diana,
That IP Address code looks OK to me.
I'd be very surprised if First Data can't be accesses from the On Submit event. I took a quick look at their Web API docs and they describe a PHP cURL API there (page 56 on).
Bob
You are probably right Bob. I would need to hire a programer to do this for me. Way over my head.
I have more trouble with the php thank you page that the first web guy set up for my client that all our donation and event payment forms use. It would be so nice to get away from that.
What do you charge for programmer services?
Hi Diana,
I'm off to London for a couple of days, drop me a PM if you want to look at using the API and we can work out of it is practical.
Bob
Hi cappleby,
Two options:
+ leave the value of your hidden input empty and move the custom code up before the HTML (Render Form) action
+ Put the Custom Code in the On Submit event before the DB Save as you don't need it until then.
Bob