What are the basic parameters required to process an authorization in Payflow Pro?
Here's a list of names and descriptions of the parameters required to process an authorization on your Payflow Pro account:
- ACCT - The credit or debit card number.
- AMT - The transaction amount.
- EXPDATE - The expiration date of the credit card
- HOSTADDRESS - The Payflow Gateway server name. Use the following host addresses for sending transactions:
- For live transactions, use "payflowpro.paypal.com."
- For testing purposes, use "pilot-payflowpro.paypal. com."
- HOSTPORT - The port number. Always use port 443. PARTNER - The ID provided to you by the authorized PayPal Reseller who registered you for the Gateway. If you purchased your account directly from PayPal, use "PayPal."
- PROXYADDRESS - The proxy server address (required when using a proxy server).
- PROXYLOGIN - The proxy server login (required when using a proxy server).
- PROXYPASSWORD - The proxy server password (required when using a proxy server).
- PROXYPORT - The proxy server port (required when using a proxy server).
- PWD - The password for your merchant login ID.
- TENDER - The tender type (method of payment).
- TIMEOUT - The number of seconds that elapses, after the transaction request is sent to the server, before that transaction times out. The recommended default value is "30."
- TRXTYPE - The transaction type, such as Sale, Credit, Void, Delayed Capture, etc.
- USER - If you have additional users on the account, this is the ID of the user who is authorized to process transactions. If there are no additional users on the account, this has the same value as the VENDOR parameter.
- VENDOR - The merchant login ID that you created when you registered for your account.
- X-VPS-CLIENT-TIMEOUT - Timeout value in seconds. A transaction times out if the elapsed time between ending the original transaction request and receiving the transaction response exceeds the value of X-VPS-CLIENT-TIMEOUT. The default value is 45, but we recommend setting the value to 90.
- X-VPS-REQUEST-ID - A unique identifier for each request. This identifier is associated with all the transactions in that particular request. You'll receive DUPLICATE=1 if you try to process a transaction using an X-VPS-REQUEST-ID that has been used within the last seven days.
Here's an example of a test sale transaction request:
pfpro pilot-payflowpro.paypal.com 443 "TRXTYPE=S&TENDER=C&PWD=%PASSWORD%&USER=%USER%&VENDOR=%VENDOR%&PARTNER=%PARTNER%&ACCT=5105105105105100&EXPDATE=1219&AMT=14.42" 30
For information about passing optional parameters or processing other API calls, see the Payflow Gateway Developer Guide and Reference.