Projects MyClientBase Visuex PayPal (MCB Addon)

Open Source Projects

_
Overview Search Downloads
Visuex PayPal (MCB Addon)
Version:1.1.1

Size: 122.85 KB
Downloads: 132
Language: English
License: GNU/GPL
Price: FREE
Created: 01-02-2012
Updated: 02-16-2012

Features Included:

  • Integrated with the MCB Client Center PayPal System. (auto-detects and utilizes the paypal email and currency code set in the admin)
  • Built-in return functions including a Completed Payment Return, Canceled Order Return and a Notify URL.
  • Vast Currency Support (ALL currencies that PayPal & MCB support)
  • Customer Data to PayPal (send client name and address for automatic logging of the information for each sale in paypal to make future reports easier for the Paypal side. It also allows your clients who dont have paypal accounts to easily sign up with their information pre-filled.)
  • Advanced Button Alignment (options include left, right and centered)
  • Auto-Detect & Applies HTTP or HTTPS
  • PayPal Page Style - allows the button to control the look of the PayPal checkout page.

 

How to Install the Visuex PayPal addon:

1. Extract the zip file.

 

2. Upload the addon files to your website keeping the folder structure of:

     - /assets/templates/addons/visuex_paypal

     - there are two php files (one in images folder) and 31 images to choose for your invoice (inside the images folder)

     - be sure to overwrite the file mcb_invoice_helper.php located in the folder ~/application/helpers.

 

3. Open the template file that you wish to add the addon to, this can be done one of two ways.

     - a. Login to your MCB Dashboard and go to "Invoice Templates" in Control Center menu then click the Pencil to edit the template.

     - b. Navigate to application/modules_core/invoices/views/invoice_templates and edit the php template file.

 

4. Add the code below wherever you want it to be for example: add it right above "" in default.php

 


Add the code below to your template file: located in the ~/application/modules_core/invoices/views/invoice_templates folder

<?php include_once($this->config->item("base_url")."assets/templates/addons/visuex_paypal/visuex_paypal.php?pp_email=".urlencode(merchant_account_id())."&currency_code=".merchant_currency_code()."&balance=".$invoice->invoice_balance."&invnum=".invoice_id($invoice)."&client_name=".urlencode(invoice_to_client_name($invoice))."&lang_invoice=".$this->lang->line('invoice')."&client_addresso=".urlencode(invoice_to_address($invoice))."&client_addresst=".urlencode(invoice_to_address_2($invoice))."&client_city=".invoice_to_city($invoice)."&client_state=".invoice_to_state($invoice)."&client_zip=".invoice_to_zip($invoice)); ?>

 


 

How to use the Visuex PayPal addon:

You need to activate the PayPal system inside your MCB Client Center to use this addon.
Here's how = http://visuex.com/blog/23-myclientbase/44-how-to-activate-paypal-payments-inside...

There are 6 paramters that you can change to your preference.
Open the file = /assets/templates/addons/visuex_paypal/visuex_paypal.php to set these options.

  • image_filename = "horizontal_solution_pp.gif";
     - Filename of the desired image. (include the image extension such as .gif, .jpg, .png, etc.)
     - to view and get the filename of all PayPal button images - /assets/templates/addons/visuex_paypal/images/index.php
  • customertopaypal = true;
     - Sends Customer data, such as name and address, to the PayPal payment system.
     - Default = true (change to false to disable)
  • button_alignment = "right";
     - Alignment of the PayPal button.
     - Options = left, center, right.
  • logo_url
     - URL to your company logo, PayPal's Maximum Image Size = 150 x 90 (in pixels)
     - Default = empty (disabled)
  • paypal_page_style
    Defines the page style of the PayPal checkout page. (not MCB related)
     - Default = empty (let PayPal set it)
     - Options = paypal (standard), primary (your style you set as primary in PayPal) or page_style_name (use the custom payment page style from your account profile that has the specified name)
  • language_page_code
     - Language code that PayPal uses to set the language of the Checkout page.
     - Default = US

 

What do you think of this MCB addon? Do you have any requests for this addon? Have you found a bug?

Let us know in the comments below: (no account needed)

 

blog comments powered by Disqus