PHP Classes

All in One PayPal WooCommerce Plugin: Paypal payment plugin for Woocommerce

Recommend this page to a friend!
  Info   View files Example   View files View files (61)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 162 This week: 1All time: 8,929 This week: 560Up
Version License PHP version Categories
paypal-woocommerce 1.0.0GNU General Publi...5PHP 5, E-Commerce
Description 

Author

This package provides a Paypal payment plugin for Woocommerce.

It provides support for PayPal Pro hosted solutions in several countries.

* United Kingdom – Website Payments Pro Hosted Solution
* France – PayPal Intégral Evolution
* Australia – Website Payments Pro Hosted Solution
* Hong Kong – Website Payments Pro Hosted Solution
* Italy – PayPal Pro
* Spain – Pasarela Integral
* Japan – Website Payments Plus

It also support several types of Paypal payments like

- PayPal Advanced
- PayPal Digital Goods
- PayPal Pro
- PayPal PayFlow
- PayPal Adaptive Payments
- PayPal Express

The package provide an administration interface for managing the payment options.

Innovation Award
PHP Programming Innovation award nominee
September 2015
Number 6
Woocommerce is a very popular extension of Wordpress that allows turning Wordpress installations into e-commerce stores.

This package provides a free plugin that enables payments via Paypal in Woocommerce.

Manuel Lemos
Picture of mbjwebdevelopment
Name: mbjwebdevelopment <contact>
Classes: 1 package by
Country: India India
Age: ???
All time rank: 4249293 in India India
Week rank: 411 Up26 in India India Up
Innovation award
Innovation award
Nominee: 1x

Recommendations

What is the best PHP Paypal Pro integration class?
How to set Paypal Pro integration in PHP

Example

<?php

/**
 * @wordpress-plugin
 * Plugin Name: All in One PayPal for WooCommerce
 * Plugin URI: http://localleadminer.com/
 * Description: All in One PayPal for WooCommerce Developed by an Certified PayPal Developer, official PayPal Partner.
 * Version: 1.0.0
 * Author: mbj-webdevelopment <mbjwebdevelopment@gmail.com>
 * Author URI: http://localleadminer.com/
 * License: GPL-2.0+
 * License URI: http://www.gnu.org/licenses/gpl-2.0.txt
 * Text Domain: all-in-one-paypal-for-woocommerce
 * Domain Path: /languages
 *
 *************
 * Attribution
 *************
 * All in One PayPal for WooCommerce is a derivative work of the code from WooThemes / Limecuda,
 * which is licensed with GPLv3. This code is also licensed under the terms
 * of the GNU Public License, version 3.
 */
 
// If this file is called directly, abort.
if (!defined('WPINC')) {
    die;
}

if (!
defined('PPFW_PLUGIN_DIR')) {
   
define('PPFW_PLUGIN_DIR', dirname(__FILE__));
}

if (!
defined('PPFW_PLUGIN_DIR_BASE')) {
   
define('PPFW_PLUGIN_DIR_BASE', plugin_basename(__FILE__));
}

if (!
defined('PEC_PLUGIN_DIR'))
   
define('PEC_PLUGIN_DIR', dirname(__FILE__));

if (!
defined('PEC_PLUGIN_DIR_BASE'))
   
define('PEC_PLUGIN_DIR_BASE', plugin_basename(__FILE__));

if (!
defined('PEC_PLUGIN_DIR_PATH'))
   
define('PEC_PLUGIN_DIR_PATH', plugin_dir_path( __FILE__ ));

/**
 * The code that runs during plugin activation.
 * This action is documented in includes/class-all-in-one-paypal-for-woocommerce-activator.php
 */
function activate_all_in_one_paypal_for_woocommerce() {
    require_once
plugin_dir_path(__FILE__) . 'includes/class-all-in-one-paypal-for-woocommerce-activator.php';
   
All_In_One_Paypal_For_Woocommerce_Activator::activate();
}

/**
 * The code that runs during plugin deactivation.
 * This action is documented in includes/class-all-in-one-paypal-for-woocommerce-deactivator.php
 */
function deactivate_all_in_one_paypal_for_woocommerce() {
    require_once
plugin_dir_path(__FILE__) . 'includes/class-all-in-one-paypal-for-woocommerce-deactivator.php';
   
All_In_One_Paypal_For_Woocommerce_Deactivator::deactivate();
}

register_activation_hook(__FILE__, 'activate_all_in_one_paypal_for_woocommerce');
register_deactivation_hook(__FILE__, 'deactivate_all_in_one_paypal_for_woocommerce');

/**
 * The core plugin class that is used to define internationalization,
 * admin-specific hooks, and public-facing site hooks.
 */
require plugin_dir_path(__FILE__) . 'includes/class-all-in-one-paypal-for-woocommerce.php';

/**
 * Begins execution of the plugin.
 *
 * Since everything within the plugin is registered via hooks,
 * then kicking off the plugin from this point in the file does
 * not affect the page life cycle.
 *
 * @since 1.0.0
 */
function run_all_in_one_paypal_for_woocommerce() {

   
$plugin = new All_In_One_Paypal_For_Woocommerce();
   
$plugin->run();
}

run_all_in_one_paypal_for_woocommerce();


Details

All in One PayPal for WooCommerce

All in One PayPal for WooCommerce Developed by an Certified PayPal Developer, official PayPal Partner.

Easily add PayPal payment options to your WordPress / WooCommerce website.

* PayPal Pro Hosted

    * United Kingdom – Website Payments Pro Hosted Solution
    * France – PayPal Intégral Evolution
    * Australia – Website Payments Pro Hosted Solution
    * Hong Kong – Website Payments Pro Hosted Solution
    * Italy – PayPal Pro
    * Spain – Pasarela Integral
    * Japan – Website Payments Plus

* PayPal Advanced * PayPal Digital Goods * PayPal Pro * PayPal PayFlow * PayPal Adaptive Payments * PayPal Express


Installation

Automatic installation

Automatic installation is the easiest option as WordPress handles the file transfers itself and you don't need to leave your web browser. To do an automatic install, log in to your WordPress dashboard, navigate to the Plugins menu and click Add New.

In the search field type "All in One PayPal for WooCommerce" and click Search Plugins. Once you've found our plugin you can view details about it such as the the rating and description. Most importantly, of course, you can install it by simply clicking Install Now.

Manual Installation

  1. Unzip the files and upload the folder into your plugins folder (/wp-content/plugins/) overwriting previous versions if they exist
  2. Activate the plugin in your WordPress admin area.

configuration

Easy steps to install the plugin:

  • Upload all-in-one-paypal-for-woocommerce folder/directory to the /wp-content/plugins/ directory
  • Activate the plugin through the 'Plugins' menu in WordPress.
  • Go to: WooCommerce > Settings > Checkout > PayPal Advanced to configure the plugin.

Frequently Asked Questions

How do I create sandbox accounts for testing?

Where do I get my API credentials?

  • Live credentials can be obtained by signing in to your live PayPal account here: https://www.paypal.com/us/cgi-bin/webscr?cmd=_login-api-run
  • Sandbox credentials can be obtained by viewing the sandbox account profile within your PayPal developer account, or by signing in with a sandbox account here: https://www.sandbox.paypal.com/us/cgi-bin/webscr?cmd=_login-api-run

  Files folder image Files  
File Role Description
Files folder imageadmin (2 files, 4 directories)
Files folder imageincludes (6 files)
Files folder imagelanguages (1 file)
Files folder imagepublic (2 files, 3 directories)
Files folder imagetemplate (1 file)
Accessible without login Plain text file all-in-one-paypal-for-woocommerce.php Example Class source
Plain text file index.php Class Class source
Accessible without login Plain text file LICENSE.txt Doc. Documentation
Accessible without login Plain text file README.md Doc. Auxiliary data
Accessible without login Plain text file README.txt Doc. Documentation
Plain text file uninstall.php Class Class source

  Files folder image Files  /  admin  
File Role Description
Files folder imagecss (2 files)
Files folder imageimages (1 file)
Files folder imagejs (1 file)
Files folder imagepartials (7 files, 2 directories)
  Plain text file class-all-in-one-p...ocommerce-admin.php Class Class source
  Plain text file index.php Class Class source

  Files folder image Files  /  admin  /  css  
File Role Description
  Accessible without login Plain text file all-in-one-paypal-...ocommerce-admin.css Data Auxiliary data
  Accessible without login Plain text file all-in-one-paypal-...blic-activation.css Data Auxiliary data

  Files folder image Files  /  admin  /  images  
File Role Description
  Accessible without login Image file cards.png Icon Icon image

  Files folder image Files  /  admin  /  js  
File Role Description
  Accessible without login Plain text file all-in-one-paypal-...oocommerce-admin.js Data Auxiliary data

  Files folder image Files  /  admin  /  partials  
File Role Description
Files folder imageimages (4 files)
Files folder imagelib (5 files, 2 directories)
  Plain text file class-all-in-one-p...aptive-payments.php Class Class source
  Plain text file class-all-in-one-p...paypal-advanced.php Class Class source
  Plain text file class-all-in-one-p...l-digital-goods.php Class Class source
  Plain text file class-all-in-one-p...-paypal-express.php Class Class source
  Plain text file class-all-in-one-p...ypal-pro-hosted.php Class Class source
  Plain text file class-all-in-one-p...pal-pro-payflow.php Class Class source
  Plain text file class-all-in-one-p...dmin-paypal-pro.php Class Class source

  Files folder image Files  /  admin  /  partials  /  images  
File Role Description
  Accessible without login Image file cards.png Icon Icon image
  Accessible without login Image file cards_1.png Icon Icon image
  Accessible without login Image file paypal-credit.png Icon Icon image
  Accessible without login Image file paypal.png Icon Icon image

  Files folder image Files  /  admin  /  partials  /  lib  
File Role Description
Files folder imagepaypal-digital-goods (6 files)
Files folder imagepaypal-php-library (1 directory)
  Plain text file CentinelClient.php Class Class source
  Plain text file CentinelErrors.php Class Class source
  Plain text file CentinelUtility.php Class Class source
  Plain text file NameParser.php Class Class source
  Plain text file XMLParser.php Class Class source

  Files folder image Files  /  admin  /  partials  /  lib  /  paypal-digital-goods  
File Role Description
  Accessible without login Plain text file license.txt Doc. Documentation
  Plain text file paypal-configuration.class.php Class Class source
  Plain text file paypal-digital-goods.class.php Class Class source
  Plain text file paypal-purchase.class.php Class Class source
  Plain text file paypal-subscription.class.php Class Class source
  Accessible without login Plain text file README.md Data Auxiliary data

  Files folder image Files  /  admin  /  partials  /  lib  /  paypal-php-library  
File Role Description
Files folder imageincludes (3 files)

  Files folder image Files  /  admin  /  partials  /  lib  /  paypal-php-library  /  includes  
File Role Description
  Plain text file config-sample.php Class Class source
  Plain text file paypal.class.php Class Class source
  Plain text file paypal.nvp.callback.php Class Class source

  Files folder image Files  /  includes  
File Role Description
  Plain text file class-all-in-one-p...merce-activator.php Class Class source
  Plain text file class-all-in-one-p...rce-deactivator.php Class Class source
  Plain text file class-all-in-one-p...oocommerce-i18n.php Class Class source
  Plain text file class-all-in-one-p...commerce-loader.php Class Class source
  Plain text file class-all-in-one-p...for-woocommerce.php Class Class source
  Plain text file index.php Class Class source

  Files folder image Files  /  languages  
File Role Description
  Accessible without login Plain text file all-in-one-paypal-for-woocommerce.pot Data Auxiliary data

  Files folder image Files  /  public  
File Role Description
Files folder imagecss (5 files)
Files folder imageimages (4 files)
Files folder imagejs (5 files)
  Plain text file class-all-in-one-p...commerce-public.php Class Class source
  Accessible without login Plain text file index.php Aux. Class source

  Files folder image Files  /  public  /  css  
File Role Description
  Accessible without login Plain text file all-in-one-paypal-...commerce-public.css Data Auxiliary data
  Accessible without login Plain text file all_in_one_paypal_...al_goods-iframe.css Data Auxiliary data
  Accessible without login Plain text file cart.css Data Auxiliary data
  Accessible without login Plain text file checkout.css Data Auxiliary data
  Accessible without login Plain text file single.css Data Auxiliary data

  Files folder image Files  /  public  /  images  
File Role Description
  Accessible without login Image file cards.png Icon Icon image
  Accessible without login Image file payflow-cards.png Icon Icon image
  Accessible without login Image file paypal-credit.png Icon Icon image
  Accessible without login Image file paypal.png Icon Icon image

  Files folder image Files  /  public  /  js  
File Role Description
  Accessible without login Plain text file all-in-one-paypal-...ocommerce-public.js Data Auxiliary data
  Accessible without login Plain text file all_in_one_paypal_...tal_goods-return.js Data Auxiliary data
  Accessible without login Plain text file checkout.js Data Auxiliary data
  Accessible without login Plain text file mbj-button.js Data Auxiliary data
  Accessible without login Plain text file paypal-express-che...ocommerce-public.js Data Auxiliary data

  Files folder image Files  /  template  
File Role Description
  Plain text file paypal-review-order.php Class Class source

 Version Control Unique User Downloads Download Rankings  
 100%
Total:162
This week:1
All time:8,929
This week:560Up