Jump to content

bfcase

Members
  • Content count

    39
  • Joined

  • Last visited

Everything posted by bfcase

  1. bfcase

    PayPal WPP Direct Payments & Express Checkout Support

    I am having the same errors...and PayPal is acting strangely today. I get frequent page not found errors when I try to log into my account. When it does let me log in it doesn't show the latest transactions for quite a while - I get the "This list doesn't include your most recent account activity yet" message for two to three hours sometimes. I will wager that the fault is at PayPal for the errors... BFC
  2. bfcase

    PayPal WPP Direct Payments & Express Checkout Support

    Sure it is possible though the answer is two years old which may be why dynamoeffects forgot about it :) For the answer see post #47 by SteveDallas in this thread. Works great for me. One thing to remember though is that when upgrading to a newer version of the module you will need to edit the changes back in again - unless dynamoeffects makes it an included feature in future new versions of course.
  3. bfcase

    Paypal Add Percentage + Handling Fee

    Adam: A surcharge to accept a PayPal payment is against the PayPal agreement (at least for US PayPal accounts). The Payments (Sending, Receiving, and Withdrawals) Policy at PayPal expressly prohibits imposing a fee to accept payment via PayPal. Link to the Policy Here - See Section V. Here is a copy and paste of Section V. from the above linked-to page: No Surcharges. Under Visa, MasterCard, Discover and American Express regulations and the laws of several states, including California, merchants may not charge a fee to the buyer for accepting credit card payments (often called a "surcharge"). You agree that you will not impose a surcharge or any other fee for accepting PayPal as payment. This restriction does not prevent you from imposing a handling fee in connection with the sale of goods or services, as long as the handling fee does not operate as a surcharge (in other words, the handling fee for transactions paid through PayPal may not be higher than the handling fee for transactions paid through other payment methods). While the PayPal IPN contribution you speak of may work flawlessly to add a surcharge for PayPal payments it will violate the PayPal agreement (again - the US agreement at least). Endless functions could be coded that would work as intended but would violate laws or policies. If the policy linked to and quoted above applies to you and you disregard it by coding a surcharge for PayPal payments do not be surprised when someone turns you in to PayPal and your PayPal account is suspended for violating the policy. I personally wouldn't turn any site in but I wouldn't buy from a site that singled my payment method out for a surcharge either. Amanda - Law and wisdom often react like matter and anti-matter when brought to close proximity. :)
  4. bfcase

    PayPal WPP Direct Payments & Express Checkout Support

    This may help people who would like to see the PayPal payment status (Completed", Pending (eCheck) or any others there may be) in the list of orders in admin. Also included are alternate directions to add the Order ID in addition to the PayPal payment status to the list if you would like to. I use the payment status retruned from PayPal while viewing the day's orders to make sure I don't ship any items to someone that used this excellent PayPal WPP contribution with an eCheck before the payment clears. Here is how I did it - there may be a better way but this worked for me: I added a field to my orders table called ppstat using the following statement in MySQL: ALTER TABLE `orders` ADD `ppstat` TEXT NULL DEFAULT NULL; Then in /includes/modules/payment/paypal_wpp.php (in the after_process() function): Look for: tep_db_query("update ".TABLE_ORDERS_STATUS_HISTORY. " set comments = concat(if(trim(comments) != '', concat(trim(comments), '\n'), ''), 'Transaction ID: ".$this->trans_id."\nPayment Type: ".$this->payment_type."\nPayment Status: ".$this->payment_status.($this->avs != 'N/A' ? "\nAVS Code: ".$this->avs."\nCVV2 Code: ".$this->cvv2 : '')."') where orders_id = ".$insert_id); and right under it add: tep_db_query("update ".TABLE_ORDERS. " set ppstat = '". $this->payment_status ."' where orders_id = ".$insert_id); Then, in admin/orders.php: Look for the following (in three occurances of the $orders_query_raw query - be sure to change all three occurances) : o.currency_value, and change it to: o.currency_value, o.ppstat, and, still in /admin/orders.php, look for: <td class="dataTableHeadingContent" align="right"><?php echo TABLE_HEADING_STATUS; ?></td> under that add: <td class="dataTableHeadingContent" align="right"><?php echo 'Payment Status'; ?></td> Then, just a little further down, still in /admin/orders.php, look for: <td class="dataTableContent" align="right" <?php echo $onclick; ?>><?php echo $orders['orders_status_name']; ?></td> and under that add: <td class="dataTableContent" align="right" <?php echo $onclick; ?>><?php echo $orders['ppstat']; ?></td> Now in admin you will see the "Completed", "Pending (echeck)" or other staus in a column in your orders list. You can of course change where the status shows up by altering where you put the table heading and table content statements above. I also have the Order ID show up in my orders list. I have it right after the Payment Status as follows but you can put the column anywhere, again by altering where you put the table heading and table content statements. To add both the Payment Status and Order ID at the same time - instead of the last two steps above look for: [code]<td class="dataTableContent" align="right" <?php echo $onclick; ?>><?php echo $orders['orders_status_name']; ?></td> and then right under it add: <td class="dataTableHeadingContent" align="right"><?php echo 'Payment Status'; ?></td> <td class="dataTableHeadingContent" align="right"><?php echo 'Order ID'; ?></td> I use the Order ID for a script I hacked that allows me to enter a starting order id and an ending ID that then returns all the orders in that range with the info I need to email my warehouse to ship to the orders. I am sure others would like to be able to see the order id in the orders list for other reasons so I include it here. I hope this helps someone. BFCase
  5. I fixed my own problem and thought I would share the reason for the errors as well as admit that a stupid mistake was made on my part. I exported the text file for EP upload from my Access database as comma instead of tab delimited. Exporting again in tab delimited format and uploading worked fine. And now you know the rest of the story. Brian - BFCase
  6. I am having the same problem as recently reported. Easy Populate was working fine the last time I used it (about a month ago - maybe six weeks) but now returns errors when trying to use the Upload EP File and Import from Temp Dir functions. I don't use Easy Populate often but when I do (usually for a big update) it has always worked great. The error when using the Upload EP File function: I browse locally to the text file and press the Insert into db button - the file uploads fine to the temporary directory specified in the EP file. This is what is returned: File uploaded. Temporary filename: /tmp/phpCtGy0R User filename: hu7197xupdate.txt Size: 12926 No update is performed to the database though. If I try to use the Import from Temp Dir function all that returns is the filename - example: Filename: hu7197xupdate.txt Note that this is the correct filename of hu7197xupdate.txt - not the temporary filename assigned like the example Temporary filename above (phpCtGy0R) . Repeated attempts result in different Temporary filename: phpxxxxxxxx but the rest of the information remains the same. Another thing I noticed was that the Temporary filename always starts with php followed by the random characters. (That may be normal operation and I just never noticed the /tmp/phpxxxx happen before). Here's some miscellaneous info that may or may not be of use: I am on a shared Linux server with PHP version 4.3.11. In the osCommerce Server Info tool I see that Configuration / PHP Core / upload_tmp_dir is set to /tmp which of course is referenced in my example above. If anyone needs more info let me know. Brian - BFCase
  7. I figured it out. For anyone who wants to move the checkbox to the left to match radio buttons that have been moved to the left - this is how I did it: In catalog/includes/modules/order_total/ot_gv.php: Look for: $this->checkbox = $this->user_prompt . '<input type="checkbox" onClick="clearRadeos()" name="' . 'c' . $this->code . '">'; Change to: $this->checkbox = '<input type="checkbox" onClick="clearRadeos()" name="' . 'c' . $this->code . '">'; Also in catalog/includes/modules/order_total/ot_gv.php: Look for: // #################### Begin Added CGV JONYO ###################### function use_credit_amount() { global $cot_gv, $currencies; // $_SESSION['cot_gv'] = false; // old code - Strider $cot_gv = false; if ($this->selection_test()) { $output_string = $this->checkbox . '</b>' . '</td>' . "\n";} return $output_string; } function use_credit_amount_sub() { global $cot_gv; // $_SESSION['cot_gv'] = false; // old code - Strider $cot_gv = false; if ($this->selection_test()) { $output_string .= ' <td align="right" class="main" colspan=2>'; $output_string .= '<b>' . $this->checkbox . '</b>' . '</td>' . "\n"; } return $output_string; } // #################### End Added CGV JONYO ###################### Change to: // #################### Begin Added CGV JONYO ###################### function use_credit_amount() { global $cot_gv, $currencies; // $_SESSION['cot_gv'] = false; // old code - Strider $testing= $GLOBALS['ot_gv']->mod_process(); $testing= $GLOBALS['ot_gv']->my_output[0]; $cot_gv = false; if ($this->selection_test()) { $output_string = $this->checkbox . '??' . $testing['text'] . $this->user_prompt . '</b>' . '</td>' . "\n";} return $output_string; } function use_credit_amount_sub() { global $cot_gv; // $_SESSION['cot_gv'] = false; // old code - Strider $cot_gv = false; if ($this->selection_test()) { $output_string .= ' <td align="right" class="main" colspan=2>'; $output_string .= '<b>' . $this->checkbox . '??' . $testing['text'] . $this->user_prompt . '</b>' . '</td>' . "\n"; } return $output_string; } // #################### End Added CGV JONYO ###################### In catalog/checkout_payment.php: Look for: if ($gv_result['amount']>0){ echo ' <tr><td width="10">' . tep_draw_separator('pixel_trans.gif', '10', '1') .'</td><td colspan=2>' . "\n" . ' <table border="0" cellpadding="2" cellspacing="0" width="100%"><tr class="moduleRow" onmouseover="rowOverEffect(this)" onclick="clearRadeos()" onmouseout="rowOutEffect(this)" >' . "\n" . ' <td width="10">' . tep_draw_separator('pixel_trans.gif', '10', '1') .'</td><td class="main">' . $testing['text']; echo $order_total_modules->sub_credit_selection(); Change to: if ($gv_result['amount']>0){ echo ' <tr><td width="10">' . tep_draw_separator('pixel_trans.gif', '10', '1') .'</td><td colspan=2>' . "\n" . ' <table border="0" cellpadding="2" cellspacing="0" width="100%"><tr class="moduleRow" onmouseover="rowOverEffect(this)" onclick="clearRadeos()" onmouseout="rowOutEffect(this)" >' . "\n" . ' <td class="main">' . $order_total_modules->sub_credit_selection(); // echo $order_total_modules->sub_credit_selection(); I left the checkbox as a checkbox. I don't know what I was thinking in my previous post - changing it to a radio button will preclude the use of other payment methods if the gift certificate total is less than the total order amount. I have no idea what I am doing but the above has been tested on my site and it works for me. If anyone has a better way or knows if the code above will cause problems please let me know. Brian
  8. bfcase

    CCGV discount not updating price??

    Take a look at this thread - post #261 towards the bottom, the reply from seanjohnson about changing the order of before_process and order_totals. I know you are using the PayPal IPN and not WPP as discussed in the thread mentioned above but the info there may help you too. It is a change to the CCGV code (in checkout_process.php specifically), not the PayPal code that cured the same problem I had; of the before-discount total being passed to PayPal. BFC
  9. Rick, I am glad it helped. Moving the code for applying the gift certificate balance was one of those things I just tried until I got it to work... like everything I seem to do with my site. I tried many different things to swap the text and buttons for this add-on but ended up with errors every time so I had to break down and ask for some help here. There is a contribution for moving the radio buttons to be to the left of the module text. It is called Checkout Payment Fix. It can be found in the Payment Modules contributions area. Original file dated Sept 8 2005 by wdepot, updated October 26, 2005 by brushwood. I used the update to install as my checkou_payment.php was already modifed and couldn't be changed via a drop-in replacement. BFC
  10. Rick, The very last subsection of "Step #4 - In /catalog/checkout_payment.php" in the (very well written by the way) readme.html install file says to do do this: $radio_buttons++; } // #################### Begin Added CGV JONYO ###################### /* if (tep_session_is_registered('customer_id')) { if ($testing['value']>0){ echo ' <tr><td width="10">' . tep_draw_separator('pixel_trans.gif', '10', '1') .'</td><td colspan=2><table border="0" cellpadding="2" cellspacing="0" width="100%"><tr class="moduleRow" onmouseover="rowOverEffect(this)" onclick="clearRadeos()" onmouseout="rowOutEffect(this)" >' . "\n" . ' <td width="10">' . tep_draw_separator('pixel_trans.gif', '10', '1') .'</td><td class="main"><b>'; echo $testing['text'].' ';//var_dump ( $testing); echo $order_total_modules->sub_credit_selection(); } } */ if (tep_session_is_registered('customer_id')) { // if ($testing['value']>0){ if ($gv_result['amount']>0){ echo ' <tr><td width="10">' . tep_draw_separator('pixel_trans.gif', '10', '1') .'</td><td colspan=2>' . "\n" . ' <table border="0" cellpadding="2" cellspacing="0" width="100%"><tr class="moduleRow" onmouseover="rowOverEffect(this)" onclick="clearRadeos()" onmouseout="rowOutEffect(this)" >' . "\n" . ' <td width="10">' . tep_draw_separator('pixel_trans.gif', '10', '1') .'</td><td class="main">' . $testing['text']; echo $order_total_modules->sub_credit_selection(); } } // #################### End Added CGV JONYO ###################### ?> </table></td> Instead of placing the code there, I placed it here: <?php } else { ?> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> <td class="main" width="100%" colspan="2"><?php echo TEXT_ENTER_PAYMENT_INFORMATION; ?></td> <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> </tr> <?php } // #################### Begin Added CGV JONYO ###################### /* if (tep_session_is_registered('customer_id')) { if ($testing['value']>0){ echo ' <tr><td width="10">' . tep_draw_separator('pixel_trans.gif', '10', '1') .'</td><td colspan=2><table border="0" cellpadding="2" cellspacing="0" width="100%"><tr class="moduleRow" onmouseover="rowOverEffect(this)" onclick="clearRadeos()" onmouseout="rowOutEffect(this)" >' . "\n" . ' <td width="10">' . tep_draw_separator('pixel_trans.gif', '10', '1') .'</td><td class="main"><b>'; echo $testing['text'].' ';//var_dump ( $testing); echo $order_total_modules->sub_credit_selection(); } } */ if (tep_session_is_registered('customer_id')) { // if ($testing['value']>0){ if ($gv_result['amount']>0){ echo ' <tr><td width="10">' . tep_draw_separator('pixel_trans.gif', '10', '1') .'</td><td colspan=2>' . "\n" . ' <table border="0" cellpadding="2" cellspacing="0" width="100%"><tr class="moduleRow" onmouseover="rowOverEffect(this)" onclick="clearRadeos()" onmouseout="rowOutEffect(this)" >' . "\n" . ' <td width="10">' . tep_draw_separator('pixel_trans.gif', '10', '1') .'</td><td class="main">' . $testing['text']; echo $order_total_modules->sub_credit_selection(); } } // #################### End Added CGV JONYO ###################### $radio_buttons = 0; for ($i=0, $n=sizeof($selection); $i<$n; $i++) { ?> The method above works for me just fine and is the only change I made for the formatting. Brian
  11. Thank you Aaron et al for a great modification to a great contribution! One little thing I can't figure out is how to move the checkbox to precede the text. I read this and the main CCGV thread completely; for about the tenth time, and couldn't find an answer anywhere. Sorry if I missed it somewhere along the line... I have installed a modification that places the radio buttons in front of the payment method but cannot find how to put the check box in front of the "$XX.YY to be used from Gift Vouchers" text. See screen capture: I have tried numerous "let me try this and see what happens" hacks in various files but to no avail. I did manage to place the voucher redemption payment method above the other payment methods I have available. If anyone wants to see where I moved the code just let me know; though most people in this thread seem to know how to perform such a formatting change. Any news on changing the checkbox to a radio button so it matches the other methods (as discussed previously either in this thread or the main CCGV thread)? That would make this already great modification the real bee's knees. BFC
  12. bfcase

    PayPal WPP Direct Payments & Express Checkout Support

    Registered globals, or lack thereof depending on your point of view, my problem seemed to be. As it turns out my Godaddy server has globals on, not off. I was lead to believe they would be off while reading up prior to the move and applied the globals-off patch prior to uploading the site. Today I undid the globals-off contribution and now both EC and DP payments process through without error. Though I am certainly no script-writer (nor even a very good script-understander) that the DP would work while the EC wouldn't is interesting. I am sure there is a reason; which now would be educational to know. BFC
  13. bfcase

    PayPal WPP Direct Payments & Express Checkout Support

    Here's one I can't figure out: I signed up for a Godaddy shared linux and got my SSL certificate installed. I succesfully applied the curl proxy info I found in this thread (thanks) as well as some other general stuff for the site like the register globals off contribution and such (unless there is a globals function in any of the WPP contribution files I missed [?]). The site works fine and Direct Pay credit card payments go through just fine. Now here's the funny thing: When someone goes to pay using EC they are taken to the PayPal login page as they should be. They login then hit the Continue Checkout button. Once they have clicked the Continue Checkout button they are returned back to the PayPal login page rather than my site. I have looked through files until I turned green and cannot see any glaring items to try changing. I contacted PayPal tech support via www.paypal.com/mts and am awaiting their response - if anything useful comes from it I will post it here as well. Here's my best guesses: 1) Something is not setting the SSL on the return to my site from PayPal and Paypal is refusing to send the customer back 2) Something is weird with a cookie but I cleared all cookies before testing again and again; closed, reopened browsers, cleared cookies in every way I could 3) Space aliens are transmitting a low-power (it wouldn't take more than a milliwatt or two) cerebral-functions thwarting ray into my brain BFC
  14. bfcase

    PayPal WPP Direct Payments & Express Checkout Support

    I use it and it seems to work great. I don't know if the second line is passed to PayPal but orders go through and all the info is inserted in my db for EC and DP orders; including the second address line. (Still no address sent to PayPal for DP orders but this has been discussed in other posts). I ship based on shipping address provided at the site via osCommerce, not PayPal - I don't require the billing and shipping address to match. When time permits I'll check a little further into the second address line being passed to PayPal for EC orders. Right now I am busy moving to a new host. BFC
  15. Start here: http://forums.oscommerce.com/index.php?sho...c=174981&st=260 And keep reading onwards; at least the whole page. I use CCGV together with dynamoeffects PayPal WPP just fine. You will find the help I received in the thread above. BFC
  16. bfcase

    Google Analytics module

    David, That was my copy and paste error in my preceding post when i munged my number to be XXXXXX-X - sorry. I went back to edit my original post but that function is not there for some reason. I hope people see this update... BFCase
  17. bfcase

    Google Analytics module

    Clement, Thank you for the contribution. It saved me much time over figuring it out for myself. As for the SSL versus non-SSL function I use the following code on each page I want tracked: <?php if ($request_type == 'SSL') { ?> <script src="https://ssl.google-analytics.com/urchin.js" type="text/javascript"> </script> <script type="text/javascript"> _uacct="UA-UA-XXXXXX-X"; urchinTracker(); </script> <? } else { ?> <script src="http://www.google-analytics.com/urchin.js" type="text/javascript"> </script> <script type="text/javascript"> _uacct="UA-XXXXXX-X"; urchinTracker(); </script> <? } ?> (Obviously - I replaced XXXXXX-X in the above with my own account data). I found the code above in the following forum post (thanks to rrodkey): http://forums.oscommerce.com/index.php?s=&...ndpost&p=740465 Using the code above secure or non-secure server usage is auto-detected and the correct snippet is placed in the generated page - regardless of whether the pages uses https:// or http:// - a one-code-fits-all solution. I do not get any warnings concerning SSL / non-SSL mixed page content nor do I receive any other warnings or have any other problems. Currently I am using a shared SSL certificate provided by my host; I can think of no reason the code wouldn't work with a properly configured dedicated SSL certificate as well. Good results were present today in my Google Analytics - the code above is definately working fine for me. Just thought I would pass the information along... Thanks again. BFCase
  18. bfcase

    PayPal WPP Direct Payments & Express Checkout Support

    Sean et al, Well, it seems I spoke too soon (though I figured it out, I think). CCGV coupons worked fine for WPP Direct Checkout using credit cards but for WPP Express Checkout using PayPal account payments the following error was displayed in the pretty red box: ---------------- An error occured when we tried to process your credit card. Transaction refused because of an invalid argument. See additional error messages for details. The totals of the cart item amounts do not match order amounts. (10413) ---------------- First - it seems odd that the error would say "credit card" for an EC error. Second - it seemed that the module sends EC payment details as an aggregate total as well as item total and if the total of the items does not match the aggregate total some routine at PayPal assumes attempted fraud. At https://ppmts.custhelp.com/cgi-bin/ppdts.cf...php?p_faqid=185 (and in the PayPal WPP Integration Guide) I found that error 10413 is specified as: 10413 The totals of the cart item amounts do not match order amounts The sum of your currency values must equal the value of OrderTotal: * ItemTotal * ShippingTotal * HandlingTotal * TaxTotal The solution listed in the PayPal WPP Integration Guide is: If you include any of the following element values with DoExpressCheckoutPaymentt, the sum of their values must equal the value of OrderTotal. ItemTotal ShippingTotal HandlingTotal TaxTotal If you get this error, research why it might have occurred and modify your implementation of Express Checkout to ensure proper addition of the values So... I edited catalog/includes/modules/payment/paypal_wpp.php as follows: $order_total =& Services_PayPal::getType('BasicAmountType'); $order_total->setval(number_format($order->info['total'], 2)); $order_total->setattr('currencyID', $order->info['currency']); $pdt->setOrderTotal($order_total); /*Start comment out portion to not send ItemTotal,ShippingTotal & TaxTotal to PayPal via EC - CCGV Coupon Redeem $item_total =& Services_PayPal::getType('BasicAmountType'); $item_total->setval(number_format($order->info['subtotal'], 2)); $item_total->setattr('currencyID', $order->info['currency']); $pdt->setItemTotal($item_total); $ship_total =& Services_PayPal::getType('BasicAmountType'); $ship_total->setval(number_format($order->info['shipping_cost'], 2)); $ship_total->setattr('currencyID', $order->info['currency']); $pdt->setShippingTotal($ship_total); $tax_total =& Services_PayPal::getType('BasicAmountType'); $tax_total->setval(number_format($order->info['tax'], 2)); $tax_total->setattr('currencyID', $order->info['currency']); $pdt->setTaxTotal($tax_total); End comment out portion to not send ItemTotal,ShippingTotal & TaxTotal to PayPal via EC - CCGV Coupon Redeem*/ $details =& Services_PayPal::getType('DoExpressCheckoutPaymentRequestDetailsType'); $details->setPaymentAction('Sale'); $details->setToken($paypal_ec_token); $details->setPayerID($paypal_ec_payer_id); $details->setPaymentDetails($pdt); And now PayPal EC works fine - customer presses the button, gos to PayPal to log in and set shipping address, returns to my site, enters the coupon code, confirms the order and the proper coupon amount is charged via PayPal then the customer is greeted with the success page. My question is - Is this a good way to do this? I use flat rate shipping - orders over $25.00 get it free, orders under $25.00 pay $4.95. I don't implement taxes anywhere. BFC
  19. bfcase

    PayPal WPP Direct Payments & Express Checkout Support

    Sean, That worked! The coupon is applied, there is no error and the correct total is passed to PayPal. Excellent. I also managed to get this WPP module, the CCGV modules and Separate Pricing Per Customer (with the hide products from customer groups mod) all working together with a simple edit of the shopping cart class. Somewhere along the line (well before your mod above) though I introduced an error that says "Please select a payment method for your order." Intead of the "You have redeemded your coupon" message. It seems that the Redeem button functions the same as the Continue button - the coupon gets applied but instead of saying it has been redeemed the error that no payment method is selected shows up. Something esle to figure out...
  20. bfcase

    PayPal WPP Direct Payments & Express Checkout Support

    I can get the proper amount to pass to PayPal by inserting the code between //ADD FOR CCGV START and //ADD FOR CCGV END into includes/modules/payment/paypal_wpp.php: function before_process() { global $HTTP_POST_VARS, $order, $paypal_ec_token, $paypal_ec_payer_id, $paypal_ec_payer_info; include(DIR_WS_CLASSES . 'cc_validation.php'); // ADD FOR CCGV START include(DIR_WS_CLASSES . 'order_total.php'); $order_total_modules = new order_total; $order_total_modules->update_credit_account($i);//ICW ADDED FOR CREDIT CLASS SYSTEM $order_total_modules->apply_credit();//ICW ADDED FOR CREDIT CLASS SYSTEM $order_totals = $order_total_modules->process(); //ADD FOR CCGV END $caller = $this->paypal_init(); if (tep_session_is_registered('paypal_ec_token') && tep_session_is_registered('paypal_ec_payer_id') && tep_session_is_registered('paypal_ec_payer_info')) { //Do EC checkout The correct total after the coupon discount is now passed to PayPal and the payment transaction is completed (my debit card is charged and the funds go into my PayPal account) and the coupon is cleared as used but I get the following error on checkout_process.php once the transaction has completed: Fatal error: Cannot redeclare class order_total in /server_path_truncated/includes/classes/order_total.php on line 13 I sort of took the code from a contribution for CCGV and haphazardly applied it as above http://www.oscommerce.com/community/contri...2/download,7257 No matter what my feeble non-coder mind can come up with to try I cannot get past the error. At least the corrected total is passed... I hope this gives someone with more skill than I a place to start.
  21. bfcase

    PayPal WPP Direct Payments & Express Checkout Support

    Does anyone have this module working properly with Credit Class and Gift Voucher (CCGV) (or vice-versa; does anyone have CCGV working properly with this module)? No matter what I have tried to change the total passed to PayPal is the total before the coupon is applied rather than the total after the coupon is applied - for credit card direct payment at least - haven't tried with EC yet but would assume they both use the same method to pass the total to be charged to PayPal. The order data in the order in the Admin shows the discount but the customer is charged by PayPal the full amount, without the discount for redeeming the coupon. A reference in this thread that said to set verified accounts and confirmed address to off has already been done (and were never on anyways). In the CCGV thread the only answer that even comes close applies to the PayPal IPN module and states to "set the Shopping Cart Method to Aggregate and NOT itemised". I installed CCGV after this module so I did not have the problem with PayPal IPN. (I was using the PayPal IPN before this module arrived like manna from heaven but do not currently have it enabled). If anyone has any tips I certainly would appreciate it.
  22. bfcase

    PayPal WPP Direct Payments & Express Checkout Support

    A transaction ID is handy to get for both payment methods - credit/debit card or PayPal account. For one thing it makes looking up the transaction in the PayPal account (or in data downloaded from PayPal for later manipulation / reporting) accurate and easy - especially for repeat customers where using, for example, lastname for search at PayPal offers multiple results that must be scrutinized closely via repeated individual transaction lookups from the results page. When correlating the osCommerce order db entries or exported data to the online or downloaded PayPal data the Transaction ID would provide an ideal common field between the two sets of data for many purposes. Having the shipping address passed to PayPal for Direct Payment credit/debit card transactions is nice when downloading PayPal records for manipulation in my self-made record-keeping MS Access db (and also I am sure would be useful for anyone who uses downloaded PayPal data for Quickbooks or similiar accounting software). Shipping address being passed to PayPal (if even possible?) would be also useful if doing things like, for example and not limited to, reporting geographic trends - being able to query the PayPal info against the osCommerce order data by a common field like state would be excellent in my case as I run two (for now) sites as well as sell on eBay auctions / fixed price and an eBay store - all using the same PayPal account to receive payments. There is no such thing as having too much information to play with. The points above are more for tracking and reporting uses - perhaps outside the original scope of your valuable code - but useful. For the main intended purpose of removing the PayPal seam and proefessionalizing payment processing it is perfect. Passing the Transaction ID for both methods of payment and inserting the shipping address at PayPal for credit / debit card orders would be a valuable bonus. I will calculate the increase in sales over the next weeks or perhaps a month due to your contribution and in the future making a decent donation based on that calculation. Thanks again.
  23. bfcase

    PayPal WPP Direct Payments & Express Checkout Support

    I had the same thing happen - credit card was charged but error message presented, no order recorded in osCommerce db. In /catalog/pear/Services/PayPal/SOAP/Transport/HTTP.php setting var $timeout = 60; (it was $timeout = 4; if I remember correctly) cured that error for me. Now almost everything is working just fine - several orders have been processed and recorded for credit / debit cards as well as PayPal Express. For some reason, and maybe they aren't supposed to be there at all; but in the Admin/Customers/Orders no information other than "Payment Type: PayPal" and "Payment Status: Completed" is in the comments section for credit card orders. There is no Transaction ID, AVS Code or CVV2 Code. The Transaction ID at least would be nice to record in the order. Shouldn't the "Payment Type:" be credit / debit or similair nomenclature rather than "PayPal"? PayPal Express orders do denote "Transaction ID: 1X23456789012345Y", "Payment Type: PayPal" and "Payment Status: Completed" Also - should osCommerce be passing the shipping address to PayPal - when I look up a credit or debit transaction in my PayPal account the shipping address says "No Address Provided". PayPal Express transactions do have the shipping address denoted in the transaction record in my PayPal account. if anyone can educate me about the above anomolies, genuine or imagined as they may be, please do so... All in all I am more than pleased with this contribution and had only to perform minor tweaking on it and other files to install it and get it working; mostly to get it to play well with other modifications I have installed. Excellent work Brian. Thanks!
×