CFPaypal

techscreencast.com
(Quality Technical Screencast)
Coldfusion Projects

CFPaypal Config Files

In order to make CFPaypal work, a number of settings have to be customized, and therefore a better understanding of various settings will be helpful in CFPaypal installation.

Settings located in Application.cfm

Application.cfpaypal.configfolder

This setting is used to specific the folder location for config files.
          e.g.: Application.cfpaypal.configfolder = "c:\projects\config";
                  Application.cfpaypal.configfolder = "c:\projects\logs\mylogs";

Application.cfpaypal.configmode

Configmode variables tells the system to use a specific config settings file. This variable is useful to switch between dev, QA and production mode, where the settings for each environment can be different.
          e.g.: Application.cfpaypal.configmode = “dev”; //will read “dev.properties”
                  Application.cfpaypal.configmode = “qa”; //will read “qa.properties”
                  Application.cfpaypal.configmode = “production”; //will read “production.properties”

request.comPath

This property should store the component path prefix to access CFPaypal com folder.
          e.g.: If you have web application installed at c:\wwwroot\myproject and CFPaypal is installed under myproject i.e. c:\wwwroot\myproject\CFPaypal in this case the path to access the CFPaypal cfc’s will be “cfpaypal.com.system….” and the “request.comPath” should be set to “cfpaypal” If CFPaypal was installed under c:\wwwroot\myproject\payment\CFPaypal in this case request.comPath will be set to “payment.cfpaypal”

Properties file setting (located under cfpaypal\config)

URL to verify payment notification
          Paypal sandbox url
          paypalverificationurl=https://www.sandbox.paypal.com/cgi-bin/webscr

          Paypal production
          paypalverificationurl=https://www.paypal.com/cgi-bin/webscr

URL to post data
          Paypal sandbox url
          paypalposturl=https://www.sandbox.paypal.com/cgi-bin/webscr

          Paypal production
          paypalposturl=https://www.paypal.com/cgi-bin/webscr

Authentication Token
          paypalauthenticationtoken=xxxxxxx

Page where customer should return after making payment
          paypalreturnurl=http://www.yourdomain.com/cfpaypal/webpage/pdt.cfm

Page where customer should return after cancelling payment transaction
          paypalcancelurl=http://www.yourdomain.com/anypage.cfm

Page that should receive payment notification
          paypalnotifyurl=http://www.indiankey.com/cfpaypal/webpage/ipn.cfm

Email receiving payment
          paypalbusinessemail=youremail@yourdomain.com

Log folder
          logfolder=c:\somewhere\cfpaypal\wwwroot\cfpaypal\log

Default currency code
          defaultcurrencycode=USD

Company logo url
          defaultcompanylogourl=

Is additional cf paypal security key verification enabled
          cfpaypalsecurekeyverificationenabled=false

If secure key verification enabled, then provide encryptionkey
          encryptionkey=

Debug CFPaypal with static values (true, false)
          cfpaypaldebug=false

Do you want to use CFPaypal order management (true, false)
          cfpaypalordermanagment=true

If CFPaypal order management is used, then provide CF datasource name
          cfpaypalds=cfpaypal_local

Database userid
          cfpaypaldsuid=

Database password
          cfpaypaldspwd=

If CFPaypal enabled order management is used, then provide prefix values for order numbers generated
          cfpaypalautoinvoiceprefix=CFPI_

Subscription Id generation prefix
          cfpaypalautosubscriptionprefix=CFPS_