Anyone have any success with getting Verisign's PayflowLINK (not Pro)
working using CFHTTP to pass and return parameters? For me it just times
out. I've tried a number of different ways with the login being in the
cfhttp call rather than the cfhttpparam attributes, without success. Read
all the VS docs and they indicate using a simple form submit. Made sure I'm
using the most recent url https://payments.verisign.com/payflowlink I want
this to run inside my cart so it's transparent to the user.
cftry!--- Set Error Trapping ---
cfhttp
method=post
url=#REQUEST.authHostAddress#
port=443
username=#REQUEST.authUID#
password=#REQUEST.authPWD#
resolveurl=no
timeout=30
redirect=no
throwonerror=yes
!--- Authentication and Configuration Information
cfhttpparam name=partner type=formfield value=#REQUEST.authPartner#
cfhttpparam name=login type=formfield value=#REQUEST.authUID#
cfhttpparam name=orderform type=formfield value=false
cfhttpparam name=showconfirm type=formfield value=false
!--- Billing Information ---
cfhttpparam name=name type=formfield value=#SESSION.ecom.FirstName#
#SESSION.ecom.LastName#
cfhttpparam name=address type=formfield
value=#SESSION.ecom.BillToAddress1#
cfhttpparam name=city type=formfield
value=#SESSION.ecom.BillToCity#
cfhttpparam name=state type=formfield
value=#SESSION.ecom.BillToStateProvince#
cfhttpparam name=zip type=formfield
value=#SESSION.ecom.BillToZipPostalCode#
cfhttpparam name=country type=formfield
value=#SESSION.ecom.BillToCountry#
cfhttpparam name=email type=formfield
value=#SESSION.ecom.EmailAddress#
cfhttpparam name=phone type=formfield
value=#SESSION.ecom.DayPhoneAreaCode##SESSION.ecom.DayPhoneNumber#
cfhttpparam name=fax type=formfield
value=#SESSION.ecom.FaxAreaCode##SESSION.ecom.FaxNumber#
!--- Shipping Information ---
cfhttpparam name=nametoship type=formfield value=
cfhttpparam name=addresstoship type=formfield value=
cfhttpparam name=citytoship type=formfield value=
cfhttpparam name=statetoship type=formfield value=
cfhttpparam name=ziptoship type=formfield value=
cfhttpparam name=countrytoship type=formfield value=
cfhttpparam name=emailtoship type=formfield value=
cfhttpparam name=phonetoship type=formfield value=
cfhttpparam name=faxtoship type=formfield value=
!--- Order particulars ---
cfhttpparam name=Type type=formfield value=S !--- Only S(Sale) and
A(Authorize Only) Transaction Types are permitted with PayFlowLink ---
cfhttpparam name=Method type=formfield value=CC !--- Either
CC(Credit Card) or Echeck(Telecheck) is permitted ---
cfhttpparam name=Tender type=formfield value=C
cfhttpparam name=CardNum type=formfield
value=#SESSION.ecom.CreditCardNumber#
cfhttpparam name=ExpDate type=formfield
value=#SESSION.ecom.CreditCardExpirationMonth##VARIABLES.expYY#
cfhttpparam name=CSC type=formfield
value=#SESSION.ecom.CreditCardIDNumber#
cfhttpparam name=Amount type=formfield
value=#SESSION.cart.grandTotal#
cfhttpparam name=Tax type=formfield value=
cfhttpparam name=ShipAmount type=formfield value=
cfhttpparam name=Comment1 type=formfield value=Order No.
#SESSION.ecom.OrderNumber#
cfhttpparam name=Comment2 type=formfield value=
cfhttpparam name=Description type=formfield value=
cfhttpparam name=User1 type=formfield value=
cfhttpparam name=User2 type=formfield value=
cfhttpparam name=User3 type=formfield value=
cfhttpparam name=User4 type=formfield value=
cfhttpparam name=User5 type=formfield value=
cfhttpparam name=User6 type=formfield value=
cfhttpparam name=User7 type=formfield value=
cfhttpparam name=User8 type=formfield value=
cfhttpparam name=User9 type=formfield value=
cfhttpparam name=User10 type=formfield value=
/cfhttp
cfcatch type=any
cfoutput#cfhttp.StatusCode#/cfoutput
Failure
cfabort
/cfcatch
/cftry
Thanks,
Mark
~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:231851
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations Support: http://www.houseoffusion.com/tiny.cfm/54