Skip to content

hotoracle/widshop

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Step 1:
Create folder named with "WidShop" in plugin folder.

Step 2:
Extract plugin zip.
Copy all folder like app, model etc from extracted zip and paste it on "WidShop" folder.

Step 3:
Copy these lines to app/Config/bootstrap.php

CakePlugin::loadAll(); // Loads all plugins at once
CakePlugin::load('WidShop');

Step 4:
Copy these lines to app/Config/routes.php and remove all default Router Connection
require App::pluginPath('WidShop'). DS . 'Config' .DS. "routes.php";

step 5:
Copy it to app CONTROLLER
public $helpers = array('Html', 'Session', 'Form', 'WidShop.Javascript', 'WidShop.Image', 'WidShop.WidShop');

Step 6:

Change the setting as required on WidShop/Config/bootstrap.php

Step 7:
Import sql file


step 8:
Copy these lines to app/Config/core.php

Configure::write('Routing.prefixes', array('admin'));

/** Paypal Configaration */
/**************************************************** 
constants.php 

This is the configuration file for the samples.This file 
defines the parameters needed to make an API call. 
****************************************************/ 

/** 
# API user: The user that is identified as making the call. you can 
# also use your own API username that you created on PayPal’s sandbox 
# or the PayPal live site 
*/ 

define('API_USERNAME', 'widahead-facilitator_api1.gmail.com'); 

/** 
# API_password: The password associated with the API user 
# If you are using your own API username, enter the API password that 
# was generated by PayPal below 
# IMPORTANT - HAVING YOUR API PASSWORD INCLUDED IN THE MANNER IS NOT 
# SECURE, AND ITS ONLY BEING SHOWN THIS WAY FOR TESTING PURPOSES 
*/ 

define('API_PASSWORD', '1364985630'); 

/** 
# API_Signature:The Signature associated with the API user. which is generated by paypal. 
*/ 

define('API_SIGNATURE', 'AjbkUZZpMOw92mhGqtiMwaO9CZwqAQUfpCKIZX82rl79LcaQC-zAiEHL'); 

/** 
# Endpoint: this is the server URL which you have to connect for submitting your API request. 
*/ 

define('API_ENDPOINT', 'https://api-3t.paypal.com/nvp'); 
/** 
USE_PROXY: Set this variable to TRUE to route all the API requests through proxy. 
like define('USE_PROXY',TRUE); 
*/ 
define('USE_PROXY',FALSE); 
/** 
PROXY_HOST: Set the host name or the IP address of proxy server. 
PROXY_PORT: Set proxy port. 

PROXY_HOST and PROXY_PORT will be read only if USE_PROXY is set to TRUE 
*/ 
define('PROXY_HOST', '127.0.0.1'); 
define('PROXY_PORT', '808'); 

/* Define the PayPal URL. This is the URL that the buyer is 
   first sent to to authorize payment with their paypal account 
   change the URL depending if you are testing on the sandbox 
   or going to the live PayPal site 
   For the sandbox, the URL is 
   https://www.sandbox.paypal.com/webscr&cmd=_express-checkout&token= 
   For the live site, the URL is 
   https://www.paypal.com/webscr&cmd=_express-checkout&token= 
   */ 
define('PAYPAL_URL', 'https://www.sandbox.paypal.com/webscr&cmd=_express-checkout&token='); 

/** 
# Version: this is the API version in the request. 
# It is a mandatory parameter for each API request. 
# The only supported value at this time is 2.3 
*/ 

define('VERSION', '3.0'); 



Step 9:
Change Paypal setting
	a. API_SIGNATURE
	b. API_USERNAME
	c. API_PASSWORD

About

CakePHP product management system

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published