You will receive the PayPal Website Payments Pro and Express Checkout (PayPal Pro) either as an independent plugin or as a part of the transaction processing plugin.
Step 2 Configuring SalesCart for your PayPal API.
To configure Express checkout, you will need to edit the file paypal_init.asax file for your particular store settings. By default, the file looks as follows:
Default Settings <script runat="server"> ' Copyright (c) 2007 ComCity. All Rights Reserved ' SalesCart 7 ' ' File: paypal_init.asax ' Version: 1.0 ' ASP file that specified Transaction Processing Variables for PayPal Express ' ' Set the type of processor Sub SetPPVars() ' PPExpress. PayPal Standard = 0; PayPal Websites Payments PRO w/PayPal Express is 1. Session ("PPExpress") = 1
' PayPal Username Session ("PPUser") = "Your PayPal API User name" ' PayPal Pwd Session ("PPPassword") = "Your PayPal API Password" ' PayPal Signature Session ("PPSignature") = "Your PayPal API Signature"
' TxtMode: Specify the type of Processing you perform (default=AUTH_CAPTURE) Session ("PPMode") = "Sale" ' PPCurrencyCode: Currency Code (default=USD Session ("PPCurrencyCode") = "USD" ' PPDescription: Specify the Description that should be shown for orders placed via this mechanism Session ("PPDescription") = "Automatically Generated SalesCart Order for PayPal Express" ' PPReturnURL: Specify the receipt page to show upon a successful transaction. (default=receipt2.aspx) Session ("PPReturnURL") = "https://www.yourdomain.com/cgi-bin/PPShipping1.aspx" ' PPReturnURL2: Specify the receipt page to show upon a successful transaction. (default=receipt2.aspx) Session ("PPReturnURL2") = "https://www.yourdomain.com/cgi-bin/EndPayPal.aspx" ' PPCancelURL: Specify the Failure page to show upon an unsuccessful transaction. (default=authfail.aspx Session ("PPCancelURL") = "https://www.yourdomain.com/cgi-bin/view1.aspx" ' PPFailURL: Specify the Failure page to show upon an unsuccessful transaction. (default=authfail.aspx Session ("PPFailURL") = "https://www.yourdomain.com/cgi-bin/authfail.aspx" ' PPConfirmShip: True/False. Require the shipping address on File be a confirmed address (default=True) Session ("PPConfirmShip") = "0" ' PPToken. Set programmatically. Session ("PPToken") = "" ' PPPayerID. Set programmatically. Session ("PPPayerID") = "" ' PPVersion. PPVersion Session ("PPVersion") = "2.3"
' PPPostURL: Specify the URL for your Processor ' SandBox Testing: https://api-3t.sandbox.paypal.com/nvp ' Live: https://api-3t.paypal.com/nvp Session ("PPPostURL") = "https://api-3t.paypal.com/nvp" ' PPRedirectURL: Specify the URL for your Processor ' SandBox Testing: https://www.sandbox.paypal.com/cgi-bin/webscr?cmd= express-checkout&token= ' Live: https://www.paypal.com/cgi-bin/webscr?cmd= express-checkout&token= Session ("PPRedirectURL") = "https://www.paypal.com/cgi-bin/webscr?cmd=_express-checkout&token=" End Sub </script> |
The file is composed of a number of variables that direct how to process using PayPal. Most of these values you will not change. Each of these variables are set to specific values. You will edit only the values on the right of an "=" sign and only between the quotes to your particular store values.
PayPal Express Checkout Example Settings ' PayPal Username Session ("PPUser") = "business_api1.somecorporation.com" ' PayPal Pwd Session ("PPPassword") = "GCQQE5X5CUT9SZW3" ' PayPal Signature Session ("PPSignature") = "AgpzOUBnTeXzjZf1SWysZ8mdUE8QqE5XfECf9dEWxcEYnriIVXz.1QU" |
Setting the PayPal Return URLs
PayPal Express Checkout Example Settings ' PPReturnURL: Specify the receipt page to show upon a successful transaction. (default=receipt2.aspx) Session ("PPReturnURL") = "https://www.website.com/cgi-bin/PPShipping1.aspx" ' PPReturnURL2: Specify the receipt page to show upon a successful transaction. (default=receipt2.aspx) Session ("PPReturnURL2") = "https://www.website.com/cgi-bin/EndPayPal.aspx" ' PPCancelURL: Specify the Failure page to show upon an unsuccessful transaction. (default=authfail.aspx Session ("PPCancelURL") = "https://www.website.com/cgi-bin/view1.aspx" ' PPFailURL: Specify the Failure page to show upon an unsuccessful transaction. (default=authfail.aspx Session ("PPFailURL") = "https://www.website.com/cgi-bin/authfail.aspx"
|
You must enable Website Payments Pro in your PayPal account to process credit cards directly with PayPal without a merchant account. You must enable and configure the Express Checkout described above for PayPal, or DirectPay won't work.
PayPal Website Payments Pro Direct Pay Default Settings <script runat="server"> ' Copyright (c) 2007 ComCity. All Rights Reserved ' SalesCart 3.0 ' ' File: tp.asa ' Version: 1.0 ' ASP file that specified Transaction Processing Variables ' ' DO NOT CHANGE- UNLESS YOU REALLY KNOW WHAT YOU'RE DOING! ' Set the type of processor Sub SetTPVars() Session("TP-Type") = 13 ' TxtLogin: Specify your Processing Login or UserID Session ("TxtLogin") = "your_login" ' TxtPassword: Specify your Processing Password or Transaction Key(if applicable) Session ("TxtPassword") = "your_transkey" ' TxtPostURL: Specify the URL for your Processor Session ("TxtPostURL") = "https://secure.authorize.net/gateway/transact.dll" ' TxtTestRequest: Specify whether you are in testing mode (TRUE) or Live (FALSE). (default=TRUE) Session ("TxtTestRequest") = "TRUE" ' TxtMode: Specify the type of Processing you perform (default=AUTH_CAPTURE) Session ("TxtMode") = "Auth_Capture" ' TxtDescription: Specify the Description that should be shown for orders placed via this mechanism Session ("TxtDescription") = "Automatically Generated SalesCart Order" ' TxtReturnURL: Specify the receipt page to show upon a successful transaction. (default=receipt2.aspx) Session ("TxtReturnURL") = "receipt2.aspx" ' TxtFailURL: Specify the Failure page to show upon an unsuccessful transaction. (default=authfail.aspx Session ("TxtFailURL") = "authfail.aspx" End Sub </script> |