Doug Lubey and Family

Home     About Me     Contact Me     Site Map     Pictures      
REVIEW DVD MENU WITH MORE
Delete Carriage Returns f
SQL COMMENTS IN SQL MANAG
Sharepoint TaskLists Cust
Moss 2007 Print Screen
SQL SERVER 2005 nvarchar(
transact sql performance
ExchangeDistributionGroup
JavaScriptHowToDetectOper
PayPalNameValuePairs
SQL DAtabase Columns Name
DFS FOLDER CREATED ON WIN
various DFS Errors
ADOBE FLEX AND DOTNET XML
sql 2005 stored procedure
Information about the SDK for payflow pro with SWIPE TRANSACTIONS I found how to add swipe parameters as follows
 
Where I posted information to originally:
 
 
Blog  I posted to:

I have looked for it in the documentation and search for it in the forums and on the web in general.

 

If it does, can someone point me to the documentation / thread where this information can be found.

REFERENCE:

 

reference:

nvp swipe transactions

nvp api for swipe credit card transactions

papal swipe transactions for http post

name value pair swipe transactions
name value swipe
swipe and name and value and pairs
name value pair swipe paypal

 

==========================

==========================

2nd post

==========================

==========================

I started to look into it a little deeper, and started to look into the parameters I used in the PFPRO client 2.x.

 

I do not have a mag stripe reader with me, but I believe I ran a sample through the API https post and it appears it gave me a proper response (Declined).

 

I believe if it did not work, it would of gave me another error message, maybe something like "BAD PARAMETER" or "BAD NAME-VALUE PAIR".

 

I know it is not documented, but it does appear to work.

 

The code below was pulled from a website my associate found, It was originally developed in C sharp, C Pound, C#) But I redeveloped in into vb.net.

 

I believe the original c sharp code may have came from this website:

http://geekswithblogs.net/mikedopp/archive/2008/02/04/paypal-payflow-pro-code.aspx

 

 

Dim postURL As String = "https://pilot-payflowpro.verisign.com"

' live

' string postURL = "https://payflowpro.verisign.com/transaction";

' 2. Set your user info. This is case sensitive

Dim PWD As String = "password"

Dim USER As String = "userxyz"

Dim VENDOR As String = "Yourcompany"

Dim PARTNER As String = "gatewaycompany"

' 3. now create the name value pair string to send to the Payflow servers

' more variables can be found in the docs that can be downloaded from your payflow manager

 Dim postData As StringBuilder = New StringBuilder()

' ***************add the user info***************

postData.Append("PWD=" + PWD)

postData.Append("&USER=" + USER)postData.Append(

"&VENDOR=" + VENDOR)postData.Append("&PARTNER=" + PARTNER)

' ***************add some required info for testing***************

' postData.Append("&CUSTIP=" + Request.UserHostAddress);

' S for Sale. A for Auth. More in the docs

postData.Append("&TRXTYPE=S")postData.Append("&AMT=1.00")

'--------

If Not (isCCSWIPE) Then

'postData.Append("&EXPDATE=1209"

'postData.Append("&ACCT=5105105105105100"

'postData.Append("&CVV2=123"

'--------

Else

'--------&SWIPE[lengthOfOneOfTheMagStripsOnTheCard]=OneOfTheMagStripsOnTheCard

postData.Append("&SWIPE[" + GetSwipeData().Length.ToString() + "]=" + GetSwipeData())

End If

postData.Append("&FIRSTNAME=Doug")

postData.Append("&LASTNAME=Lubey")

postData.Append(
"&STREET=155515")

postData.Append("&STATE=LA")

postData.Append(
"&CITY=BatonRouge")

postData.Append("&ZIP=12345")

postData.Append(
"&COUNTRY=US")

' C is for credit card, P is for PayPal Express Checkout. More in the docs

postData.Append("&TENDER=C")

' *************add some optional feilds***************

' postData.Append("&COMMENT1=ASP.NET Testing";

' make sure that the "@" is not url encoded or you will get an error

' postData.Append("&email=bob@domain.com";

' this is if you want to have PayPal send an IPN post

' postData.Append("&NOTIFYURL=" + xxxx);

' removed for now: INVNUM=12345678&

' add the REQUEST_ID

postData.Append("&REQUEST_ID=" + System.Guid.NewGuid().ToString())

' TROUBLESHOOTING

'locString = postData.ToString()

requestBytes = Encoding.UTF8.GetBytes(postData.ToString())

locNewWebRequest = HttpWebRequest.Create(postURL)

'Set WebRequest Properties

locNewWebRequest.Method = "POST"

locNewWebRequest.Accept = "text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5"

locNewWebRequest.UserAgent = "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.7) Gecko/20060909 Firefox/1.5.0.7"

locNewWebRequest.ContentType = "text/namevalue"

locNewWebRequest.ContentLength = requestBytes.Length

locNewWebRequest.AllowAutoRedirect = False

'add the custom headers

locNewWebRequest.Headers.Add("X-VPS-Timeout:30")

locNewWebRequest.Headers.Add("X-VPS-VIT-Client-Architecture:x86")

locNewWebRequest.Headers.Add("X-VPS-VIT-Client-Certification-Id:14")

locNewWebRequest.Headers.Add("X-VPS-VIT-Client-Type:ASP.NET")

locNewWebRequest.Headers.Add("X-VPS-VIT-Client-Version:0.0.1")

locNewWebRequest.Headers.Add("X-VPS-VIT-Integration-Product:Homegrown")locNewWebRequest.Headers.Add("X-VPS-VIT-Integration-Version:0.0.1")

locNewWebRequest.Headers.Add("X-VPS-VIT-OS-Name:windows")

locNewWebRequest.Headers.Add("X-VPS-VIT-OS-Version:2002_SP2") 

'write the form values into the request message

locWebResponseStream = locNewWebRequest.GetRequestStream()

locWebResponseStream.Write(requestBytes, 0, requestBytes.Length)

'Get the response. (communication to webpage)

 Dim locWebResponse As HttpWebResponse

locWebResponse = locNewWebRequest.GetResponse()

locWebResponseStream.Close()

'Get the response string after communication succeeded.

 Dim locResponseReader As StreamReaderlocResponseReader = New StreamReader(locNewWebRequest.GetResponse().GetResponseStream())

'Get all data from the page into a single string

 Dim responseData As String = locResponseReader.ReadToEnd()

locResponseReader.Close()

locString = responseData

  

reference: Swipe for Mag Strip on a credit card

 

==========================

==========================

3rd post

==========================

==========================

 

Here is information I found in a payflow implementation on the Wells Fargo site (of course i did not dig for it, google found it for me) .

 

Submitting Card-Present (SWIPE) Transactions

 

Payflow Pro supports card-present transactions (face-to-face purchases).

NOTE:SWIPE (card-present) transactions are not supported by the PayPal processor.

Follow these guidelines to take advantage of the lower card-present transaction rate: Contact your merchant account provider to ensure that they support card-present transactions. Contact PayPal Customer Service to request having your account set up properly for accepting and passing swipe data. 

  

If you plan to process card-present as well as card-not-present transactions, set up two separate Payflow Pro accounts. Request that one account be set up for card-present transactions, and use it solely for that purpose. Use the other for card-not-present transactions. Using the wrong account may result in downgrades. A Sale is the preferred method to use for card-present transactions. Consult with your acquiring bank for recommendations on other methods.

 

Supported Processing Platforms

PayPalis certified to submit card-present transactions for the following processing platforms:

American Express Phoenix

First Data Merchant Services (FDMS) Nashville

First Data Merchant Services (FDMS) North

First Data Merchant Services (FDMS) South

Global Payments Central

Global Payments East

Nova

Paymentech New Hampshire

Paymentech Tampa

Vital

 

 

Card-present Transaction Syntax

Use the SWIPE parameter to pass the Track 1 or Track 2 data (the card’s magnetic stripe information). Include either Track 1 or Track 2 data—not both (up to 80 alphanumeric characters). If Track 1 is physically damaged, the POS application can send Track 2 data instead.  The track data includes the disallowed = (equal sign) character. To enable you to use the data, the SWIPE parameter must include a length tag specifying the number of characters in the track data. For this reason, in addition to passing the track data, the POS application must count the characters in the track data and pass that number. Length tags are described in "Using Special Characters in Values" (see below -copied from page 25 in the adobe document). The length tag in the following example is [40].  Do not include the ACCT or EXPDATE parameters in card-present transactions, as this data is included in the SWIPE value.

 

Example Card-present Transaction Parameter String

This is an example card-present transaction parameter string:

"TRXTYPE=S&TENDER=C&PARTNER=PayPal&USER=SuperMerchant&PWD=SuperMerchant&SWIPE[40]=;4912000033330026=15121011000012345678?&AMT=21.00"

 

 

 

 

Using Special Characters in Values

Because the ampersand (& and equal sign (=) characters have special meanings in the PARMLIST, name-value pairs like the following examples are not valid:

NAME=Ruff & Johnson

COMMENT1=Level=5

 

To use special characters in the value of a name-value pair, use a length tag. The length tag specifies the exact number of characters and spaces that appear in the value. The following name-value pairs are valid:

NAME[14]=Ruff & Johnson

COMMENT1[7]=Level=5

 

NOTE:Quotation marks ("") are not allowed even if you use a length tag.
 
additional search references could include:
name value pair swipe transactions
name value swipe
swipe and name and value and pairs
name value pair swipe paypal
submitting card-present swipe transactions
nvp paypal sdk how to post using the https protocol to their website .