Authorize.net

Boaz Bezborodko boaz at mirrotek.com
Thu Nov 5 14:14:35 PST 2009


> ---------------------------------------------------------------------
>
> Message: 1
> Date: Tue, 3 Nov 2009 09:12:33 -0700
> From: Tyler <tyler.style at gmail.com>
> Subject: Authorize.net
> To: filepro-list at lists.celestial.com
> Message-ID:
> 	<1e78e1e80911030812m17d40163t4e7b8b45e306506b at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> I don't know how many people use authorize.net, but I thought I'd share the
> way I am going to use from inside filepro.  Here's my crude sample code
> using fp 5.0.14r4 on SCO Openserver 6 with cURL installed:
>
> ::DECLARE flags; DECLARE querystr:
> ::DECLARE url; DECLARE outputfile:
> ::DECLARE x_login; DECLARE x_tran_key;:
> ::x_login="redacted"; x_tran_key="redacted":
> ::flags="-k":
> ::querystr="-d \"":
> ::querystr=querystr{"x_login="{x_login{"&x_tran_key="{x_tran_key{"&x_version=3.1&x_delim_data=TRUE":
> ::querystr=querystr{"&x_delim_char=%7C&x_relay_response=FALSE&_type=AUTH_CAPTURE&x_method=CC&x_card_num=4111111111111111":
> ::querystr=querystr{"&x_exp_date=0115&x_amount=19.99&x_description=Inv%3A555666%3BCus%3A333222%28Doe%2CJohn%29":
> ::querystr=querystr{"&x_last_name=Doe&x_address=1234+Street&x_state=WA&x_zip=98004":
> ::querystr=querystr{"\"":
> ::url="\"https//secure.authorize.net/gateway/transact.dll\"":
> :@PM eq "test":url="\"https//test.authorize.net/gateway/transact.dll\"":
> ::outputfile="/tmp/deleteme.txt":
> ::system "curl" <flags <querystr <url <">" <outputfile <"2> /dev/null":
>
> Hopefully other people may find it of use :)
>
>
>   
Thanks for that, Tyler. 

I had not known about cURL.  I was just starting to look into how to get 
web information directly from within FP and this tip saved me a lot of time.

Boaz


More information about the Filepro-list mailing list