PHP Classes

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

Recommend this page to a friend!
     
  Info   Example   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 162 All time: 8,944 This week: 455Up
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
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 (61)  
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

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:162
This week:0
All time:8,944
This week:455Up