Web Hosting Talk







View Full Version : Enom API - Sending CC details


freakysid
04-20-2002, 05:46 AM
Hi - I'm looking through enom's documentation for their reseller API - I am also looking through their PHP example site. I am wanting to use enom to collect the cc payment - but it appears that the cc info, along with all the other info is sent to enom's server in the GET request header. Is this secure? I am a bit worried about transmitting my customers' CC info this way. :confused:

Um, additionally, the page at enom explaining the API parameters says that the connection to the enom server is made on port 80 - so I am assuming its an unsecure connection.

nox
04-20-2002, 11:23 AM
You need to chat with Ted at enom about the php api, but the perl requires..

# NOTE: IF YOU CHANGE $usecreditcard = 'no' to $usecreditcard = 'yes'
# THEN YOU MUST ALSO CHANGE $connectiontype = 'standard' to
# $connectiontype = 'SSL'
# AND EDIT eNomInterface.pm in your Lib directory.

and that is..

use lib qw(/usr/local/ssl);
use Net::SSL;
&sslSocket($qstring);

-----//------

if ($sock = Net::SSL->new(PeerAddr => "$connectionURL", PeerPort => 443, Timeout => 30)) {
$sock->print("GET /interface.asp HTTP/1.0\n");


although if you are referring to the web site I guess you are using asp.. <??>


Anyway.. it won't work unless it is 'secure', something enom is *extreme* about..

freakysid
04-20-2002, 07:01 PM
Cool thanks. I am using the PHP API. I will make sure it's securure and ask enom to check out my final script. :) I might have to use cURL for the secure socket to enom's server.