Results 1 to 2 of 2

Hybrid View

  1. #1

    Default payflow pro comments

    i'm having difficulties locating where the comments are being populated/created for the payflow pro mod.

    i thought i saw where the comments were being populated (lines 256-326 in version 1.2f of the includes/modules/payment/payflowpro.php file)

    Code:
       if (MODULE_PAYMENT_PAYFLOWPRO_SERVEROS=='Windows') { // for Windows servers only
    			 $objCOM = new COM("PFProCOMControl.PFProCOMControl.1");
    			
    			 $parmList .= "TRXTYPE=" . ((MODULE_PAYMENT_PAYFLOWPRO_TYPE == 'Authorization') ? 'A' : 'S');
    			 $parmList .= "&TENDER=C";
    			 $parmList .= "&PWD=" . MODULE_PAYMENT_PAYFLOWPRO_PWD;
    			 $parmList .= "&USER=" . MODULE_PAYMENT_PAYFLOWPRO_LOGIN;
    			 $parmList .= "&VENDOR=" . MODULE_PAYMENT_PAYFLOWPRO_LOGIN;
    			 $parmList .= "&PARTNER=" . MODULE_PAYMENT_PAYFLOWPRO_PARTNER;
    			
    			 $parmList .= "&ZIP=".$order->customer['postcode'];
    			 $parmList .= "&COMMENT1=" . 'CustID:' . $_SESSION['customer_id'] . ' OrderID:' . $new_order_id . ' Email:'. $order->customer['email_address'];
    			 $parmList .= "&COMMENT2=" . 'ZenSessName:' . zen_session_name() . ' ZenSessID:' . zen_session_id() ;
    			 if (MODULE_PAYMENT_PAYFLOWPRO_MODE =='Test') $parmList .= ' -- PHP/COM Test Transaction --';
    			 $parmList .= "&ACCT=" . $order->info['cc_number'];
    			 $parmList .= "&EXPDATE=" . $order->info['cc_expires'];
    			 $parmList .= "&CVV2=" . $order->info['cc_cvv'];
    			 $parmList .= "&AMT=" . number_format($order->info['total'], 2,'.','');
    			 $parmList .= "&NAME=" . $order->billing['firstname'] . ' ' . $order->billing['lastname'];
    			 $parmList .= "&STREET=" . $order->customer['street_address'];
    			
    			  if (MODULE_PAYMENT_PAYFLOWPRO_MODE =='Test') {
    			    $url="test-payflow.verisign.com";
    			  } else {
    			    $url="payflow.verisign.com";
    			  }
    			
    			 $ctx1 = $objCOM->CreateContext($url, 443, 30, "", 0, "", "");
    			 $result = $objCOM->SubmitTransaction($ctx1, $parmList, strlen($parmList));
    			 $objCOM->DestroyContext($ctx1);
    
        } else {  // end Windows version
    
    			 $parmList .= "TRXTYPE=" . ((MODULE_PAYMENT_PAYFLOWPRO_TYPE == 'Authorization') ? 'A' : 'S');
    			 $parmList .= "&TENDER=C";
    			 $parmList .= "&USER=" . MODULE_PAYMENT_PAYFLOWPRO_LOGIN;
    			 $parmList .= "&VENDOR=" . MODULE_PAYMENT_PAYFLOWPRO_LOGIN;
    			 $parmList .= "&PARTNER=" . MODULE_PAYMENT_PAYFLOWPRO_PARTNER;
    			 $parmList .= "&PWD=" . MODULE_PAYMENT_PAYFLOWPRO_PWD;
    			
    			 $parmList .= "&ZIP=".$order->customer['postcode'];
    			 $parmList .= "&COMMENT1=" . 'CustID:' . $_SESSION['customer_id'] . ' OrderID:' . $new_order_id . ' Email:'. $order->customer['email_address'];
    			 $parmList .= "&COMMENT2=" . 'ZenSessName:' . zen_session_name() . ' ZenSessID:' . zen_session_id() ;
    			 if (MODULE_PAYMENT_PAYFLOWPRO_MODE =='Test') $parmList .= ' -- PHP/COM Test Transaction --';
    			 $parmList .= "&ACCT=" . $order->info['cc_number'];
    			 $parmList .= "&EXPDATE=" . $order->info['cc_expires'];
    			 $parmList .= "&CVV2=" . $order->info['cc_cvv'];
    			 $parmList .= "&AMT=" . number_format($order->info['total'], 2,'.','');
    			 $parmList .= "&NAME=" . $order->billing['firstname'] . ' ' . $order->billing['lastname'];
    			 $parmList .= "&STREET=" . $order->customer['street_address'];
    		         $parmList = str_replace('"','~',$parmList);
    		
    		   // The following method requires that the "pfpro" components be compiled into PHP on your server.
    		   // Detailed information on the compiling process is contained here:  http://www.php.net/manual/en/ref.pfpro.php
    		    $transaction = array(USER=> MODULE_PAYMENT_PAYFLOWPRO_LOGIN,
    	                 PWD => MODULE_PAYMENT_PAYFLOWPRO_PWD,
    	                 VENDOR=> MODULE_PAYMENT_PAYFLOWPRO_LOGIN,
    	                 PARTNER=> MODULE_PAYMENT_PAYFLOWPRO_PARTNER,
    	                 TRXTYPE => ((MODULE_PAYMENT_PAYFLOWPRO_TYPE == 'Authorization') ? 'A' : 'S'),
    	                 TENDER=> 'C',
    	                 ZIP=> $order->customer['postcode'],
    	                 COMMENT1=> 'CustID:' . $_SESSION['customer_id'] . '+OrderID:' . $new_order_id . '+Email:'. $order->customer['email_address'],
    	                 COMMENT2=> 'ZenSessName:' . zen_session_name() . '+ZenSessID:' . zen_session_id() . 
    	                      (MODULE_PAYMENT_PAYFLOWPRO_MODE =='Test') ? '+++Test Transaction+++' : '',
    	                 ACCT=> $order->info['cc_number'],
    	                 EXPDATE=> $order->info['cc_expires'],
    	                 CVV2=> $order->info['cc_cvv'],
    	                 AMT=> number_format($order->info['total'], 2,'.',''),
    	                 NAME=> $order->billing['firstname'] . ' ' . $order->billing['lastname'],
    	                 STREET => $order->customer['street_address']
    	                 );
    however, somewhere comment1 is being overwritten with two things 1) the number of products ordered (ex. (2) for two products) and 2) any comments typed in by the customer...

    does anyone know where this is being overwritten?

  2. #2

    Default Re: payflow pro comments

    i made some modifications to the file and now, i'm not getting that information (the product count and comments) in the comment field anymore - now, i'm getting the stuff that i was expecting - anyone else come across this behavior??

 

 

Similar Threads

  1. v154 PayPal Express Checkout (Pro 2.0 Payflow Edition) (UK) - Pro 3.0 version?
    By SarahL in forum PayPal Website Payments Pro support
    Replies: 0
    Last Post: 22 Oct 2015, 04:48 PM
  2. v154 Does Paypal Payflow Gateway (Paypal Payflow Pro) work with 1.5.4?
    By mumzie in forum PayPal Website Payments Pro support
    Replies: 4
    Last Post: 16 Jul 2015, 06:59 PM
  3. Replies: 2
    Last Post: 31 Dec 2009, 04:42 AM
  4. Is PayFlow Pro the same as PayPal Website Payments Pro?
    By alicia1234 in forum PayPal Website Payments Pro support
    Replies: 2
    Last Post: 30 Jan 2009, 10:28 PM
  5. How to send payflow pro comments to paypal?
    By aligtech in forum Addon Payment Modules
    Replies: 4
    Last Post: 4 Jul 2008, 08:33 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg