Home php教程 php手册 Paypal线下支付模块,附下载地址

Paypal线下支付模块,附下载地址

Jun 13, 2016 am 10:52 AM
paypal download Function address supply hint pay module offline Options

paypal线下支付模块
功能:
1,提供Paypal线下支付选项,提示客户填写paypal邮箱账户,以便提交订单后联系客户
2,订单提交成功后自动发送邮件(包含paypal收款账户)给客户,并提示客户根据邮件操作
3,Paypal自定义按照,后台功能可定制开发
本模块根据借用西联汇款邮件发送功能,而修改的Paypal线下支付模块。本地测试功能完善,如有问题欢迎指出。
安装代码如下:
[php] 
  class ppoffline  { 
    var $code, $title, $description, $enabled; 
 
// class constructor 
    function ppoffline () { 
      global $order; 
      $this->code = 'ppoffline'; 
      $this->title = MODULE_PAYMENT_PPOFFLINE_TEXT_TITLE; 
      $this->description = MODULE_PAYMENT_PPOFFLINE_TEXT_DESCRIPTION; 
      $this->sort_order = MODULE_PAYMENT_PPOFFLINE_SORT_ORDER; 
      $this->enabled = ((MODULE_PAYMENT_PPOFFLINE_STATUS == 'True') ? true : false); 
                     
      if ((int)MODULE_PAYMENT_PPOFFLINE_ORDER_STATUS_ID > 0) { 
        $this->order_status = MODULE_PAYMENT_PPOFFLINE_ORDER_STATUS_ID; 
      } 
 
      if (is_object($order)) $this->update_status(); 
      $this->email_footer = 'Our Paypal Email Account:'.MODULE_PAYMENT_PPOFFLINE_PAYPAL_EMAIL.','; //邮件通知发送paypal收款账户 
      $this->email_footer .= MODULE_PAYMENT_PPOFFLINE_TEXT_EMAIL_FOOTER; 
    } 
   
// class methods 
function update_status() { 
      global $order, $db; 
 
      if ( ($this->enabled == true) && ((int)MODULE_PAYMENT_PPOFFLINE_ZONE > 0) ) { 
        $check_flag = false; 
        $check = $db->Execute("select zone_id from " . TABLE_ZONES_TO_GEO_ZONES . " where geo_zone_id = '" . MODULE_PAYMENT_PPOFFLINE_ZONE . "' and zone_country_id = '" . $order->billing['country']['id'] . "' order by zone_id"); 
        while (!$check->EOF) { 
          if ($check->fields['zone_id']             $check_flag = true; 
            break; 
          } elseif ($check->fields['zone_id'] == $order->billing['zone_id']) { 
            $check_flag = true; 
            break; 
          } 
          $check->MoveNext(); 
        } 
 
        if ($check_flag == false) { 
          $this->enabled = false; 
        } 
      } 
    } 
     
    function javascript_validation() { 
      return false; 
    } 
 
   function selection() { 
     return array('id' => $this->code, 
                   'module' => MODULE_PAYMENT_PPOFFLINE_TEXT_CATALOG_LOGO, 
                   'icon' => MODULE_PAYMENT_PPOFFLINE_TEXT_CATALOG_LOGO 
                 ); 
   } 
 
    function pre_confirmation_check() { 
      return false; 
    } 
 
    function confirmation() { 
      return array('title' => MODULE_PAYMENT_PPOFFLINE_TEXT_DESCRIPTION); 
    } 
 
    function process_button() { 
      return false; 
    } 
 
    function before_process() { 
      return false; 
    } 
 
    function after_process() { 
      return false; 
    } 
 
    function get_error() { 
      return false; 
    } 
 
    function check() { 
        global $db; 
      if (!isset($this->_check)) { 
        $check_query = $db->Execute("select configuration_value from " . TABLE_CONFIGURATION . " where configuration_key = 'MODULE_PAYMENT_PPOFFLINE_STATUS'"); 
        $this->_check = $check_query->RecordCount(); 
      } 
      return $this->_check; 
    } 
 
    function install() { 
        global $db, $language; 
        if (!defined('MODULE_PAYMENT_PPOFFLINE_PAYPAL_EMAIL')) include(DIR_FS_CATALOG_LANGUAGES . $_SESSION['language'] . '/modules/payment/' . $this->code . '.php'); 
    $db->Execute("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('" . MODULE_PAYMENT_PPOFFLINE_TEXT_CONFIG_1_1 . "', 'MODULE_PAYMENT_PPOFFLINE_STATUS', 'True', '" . MODULE_PAYMENT_PPOFFLINE_TEXT_CONFIG_1_2 . "', '6', '1', 'zen_cfg_select_option(array(\'True\', \'False\'), ', now());"); 
    $db->Execute("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('" . MODULE_PAYMENT_PPOFFLINE_PAYPAL_EMAIL . "', 'MODULE_PAYMENT_PPOFFLINE_PAYPAL_EMAIL', '', '' , '6', '7', now());"); 
    $db->Execute("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('" . MODULE_PAYMENT_PPOFFLINE_RECEIVER_PHONE . "', 'MODULE_PAYMENT_PPOFFLINE_RECEIVER_PHONE', '', '' , '6', '8', now());"); 
    $db->Execute("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('" . MODULE_PAYMENT_PPOFFLINE_TEXT_CONFIG_2_1 . "', 'MODULE_PAYMENT_PPOFFLINE_SORT_ORDER', '0', '" . MODULE_PAYMENT_PPOFFLINE_TEXT_CONFIG_2_2 . "', '6', '0', now())"); 
    $db->Execute("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, use_function, date_added) values ('" . MODULE_PAYMENT_PPOFFLINE_TEXT_CONFIG_3_1 . "', 'MODULE_PAYMENT_PPOFFLINE_ORDER_STATUS_ID', '0', '" . MODULE_PAYMENT_PPOFFLINE_TEXT_CONFIG_3_2 . "', '6', '0', 'zen_cfg_pull_down_order_statuses(', 'zen_get_order_status_name', now())"); 

    function remove() { 
        global $db; 
    $db->Execute("delete from " . TABLE_CONFIGURATION . " where configuration_key in ('" . implode("', '", $this->keys()) . "')"); 
 
    } 
 
    function keys() { 
      return array('MODULE_PAYMENT_PPOFFLINE_STATUS' , 'MODULE_PAYMENT_PPOFFLINE_PAYPAL_EMAIL', 'MODULE_PAYMENT_PPOFFLINE_RECEIVER_PHONE', 'MODULE_PAYMENT_PPOFFLINE_SORT_ORDER','MODULE_PAYMENT_PPOFFLINE_ORDER_STATUS_ID'); 
    } 
  } 
?> 
功能截图:
1,后台设置截图

2,付款方式选择

3,邮件通知

Paypal线下支付下载地址
http://www.BkJia.com/uploadfile/2012/0910/20120910025514326.rar
 

安装插件不能用将includes/modules/payment/paypaloffline.php下的
第23行
class ppoffline  {
修改为
class paypaloffline  {

第27行
function ppoffline () {
修改为
function paypaloffline () {

第29行
$this->code = 'ppoffline';
修改成
$this->code = 'paypaloffline';

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Roblox: Bubble Gum Simulator Infinity - How To Get And Use Royal Keys
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Nordhold: Fusion System, Explained
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Mandragora: Whispers Of The Witch Tree - How To Unlock The Grappling Hook
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Hot Topics

Java Tutorial
1665
14
PHP Tutorial
1269
29
C# Tutorial
1249
24
Introduction to how to download and install the superpeople game Introduction to how to download and install the superpeople game Mar 30, 2024 pm 04:01 PM

The superpeople game can be downloaded through the steam client. The size of this game is about 28G. It usually takes one and a half hours to download and install. Here is a specific download and installation tutorial for you! New method to apply for global closed testing 1) Search for "SUPERPEOPLE" in the Steam store (steam client download) 2) Click "Request access to SUPERPEOPLE closed testing" at the bottom of the "SUPERPEOPLE" store page 3) After clicking the request access button, The "SUPERPEOPLECBT" game can be confirmed in the Steam library 4) Click the install button in "SUPERPEOPLECBT" and download

The difference between vivox100s and x100: performance comparison and function analysis The difference between vivox100s and x100: performance comparison and function analysis Mar 23, 2024 pm 10:27 PM

Both vivox100s and x100 mobile phones are representative models in vivo's mobile phone product line. They respectively represent vivo's high-end technology level in different time periods. Therefore, the two mobile phones have certain differences in design, performance and functions. This article will conduct a detailed comparison between these two mobile phones in terms of performance comparison and function analysis to help consumers better choose the mobile phone that suits them. First, let’s look at the performance comparison between vivox100s and x100. vivox100s is equipped with the latest

How to download Beilehu children's songs How to download Beilehu children's songs Mar 28, 2024 am 11:10 AM

As an indispensable accompaniment to children's growth, Beilehu's children's songs have won the love of countless parents and children with their cheerful melody, vivid pictures and entertaining and educational content. In order to allow babies to enjoy the joy brought by children's songs anytime and anywhere, many parents hope to download Beilehu's children's songs to their mobile phones or tablets so that they can listen to their children at any time, but how to save Beilehu's children's songs? On your mobile phone, this tutorial will bring you a detailed introduction. Users who don’t understand it yet can come and read along with this article to learn more. Beilehu Nursery Rhymes Download Children's Songs Multi-Picture Tutorial: Open the software and select a children's song you want to download. The editor takes "Classic Children's Songs" as an example. 2. Click the "Download" button below the children's song star.

Where to download files from Quark Network Disk_How to download Quark Network Disk to local area and share Where to download files from Quark Network Disk_How to download Quark Network Disk to local area and share Mar 21, 2024 pm 03:57 PM

As a convenient and practical network disk tool, Quark can help users easily obtain their favorite resources. What if you want to download a file locally? Let the editor tell you now, let’s learn it together! How to download Quark Network Disk to local sharing method 1. First open the Quark software, enter the homepage, and click the [Cloud Icon] on the lower right; 2. Then on the Quark Network Disk page, we click the [Document] function; 3. Then go to the document page, select the file you want to download, and click the [three-dot icon]; 4. After the final click, we click [Download] in the pop-up dialog box;

What exactly is self-media? What are its main features and functions? What exactly is self-media? What are its main features and functions? Mar 21, 2024 pm 08:21 PM

With the rapid development of the Internet, the concept of self-media has become deeply rooted in people's hearts. So, what exactly is self-media? What are its main features and functions? Next, we will explore these issues one by one. 1. What exactly is self-media? We-media, as the name suggests, means you are the media. It refers to an information carrier through which individuals or teams can independently create, edit, publish and disseminate content through the Internet platform. Different from traditional media, such as newspapers, television, radio, etc., self-media is more interactive and personalized, allowing everyone to become a producer and disseminator of information. 2. What are the main features and functions of self-media? 1. Low threshold: The rise of self-media has lowered the threshold for entering the media industry. Cumbersome equipment and professional teams are no longer needed.

Detailed steps for downloading files from qq Detailed steps for downloading files from qq Mar 22, 2024 pm 09:10 PM

1. First we open file management. 2. Click Internal Storage. 3. Scroll down and sort to find Tencent (Tencent folder) starting with t. 4. Click to enter and find QQfile_recv, click to enter to view.

What are the functions of Xiaohongshu account management software? How to operate a Xiaohongshu account? What are the functions of Xiaohongshu account management software? How to operate a Xiaohongshu account? Mar 21, 2024 pm 04:16 PM

As Xiaohongshu becomes popular among young people, more and more people are beginning to use this platform to share various aspects of their experiences and life insights. How to effectively manage multiple Xiaohongshu accounts has become a key issue. In this article, we will discuss some of the features of Xiaohongshu account management software and explore how to better manage your Xiaohongshu account. As social media grows, many people find themselves needing to manage multiple social accounts. This is also a challenge for Xiaohongshu users. Some Xiaohongshu account management software can help users manage multiple accounts more easily, including automatic content publishing, scheduled publishing, data analysis and other functions. Through these tools, users can manage their accounts more efficiently and increase their account exposure and attention. In addition, Xiaohongshu account management software has

How to download meeting minutes from Tencent Conference_How to download meeting minutes from Tencent Conference How to download meeting minutes from Tencent Conference_How to download meeting minutes from Tencent Conference Apr 02, 2024 pm 03:30 PM

1. First open Tencent Meeting and click [History Meeting] on the homepage. 2. After entering the meeting, click [Cloud Recording] to download. 3. Finally, to download the cloud recording video, the meeting host needs to enable the download permission and have the permission to view the recording file.

See all articles