Jump to content

bfcase

Members
  • Content count

    39
  • Joined

  • Last visited

1 Follower

Profile Information

  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
×