Latest News: (loading..)

dstu

Members
  • Content count

    20
  • Joined

  • Last visited

1 Follower

About dstu

Profile Information

  • Real Name
    David
  • Gender
    Male
  1. Hello all, First, I would like to apologize if this question has been asked (and answered) before. I couldn't find the exact setup I need. So, as in other payment modules, I would like to support also PayPal in the following manner: 1. The client selects PayPal as one of the payment options (and not with the PayPal checkout button). 2. Upon confirmation of the order, I would like the buyer to be routed to the PayPal site, with the total order amount and our company's name, where he would need to login to his PayPal account and confirm the payment amount and details. The payment would be sent to our PayPal account. 3. Once he confirms the payment, he would be redirected to our site and the order would be confirmed as finalized. Which (if any) of the PayPal options/modules should we use for this scenario? Thank you for your attention and assistance. Regards, David
  2. Hello, When I try to debug the sts_output_display.php code, I get the following errors: Can anyone advise why all these variables/indexes are considered as not defined? Thanks, David
  3. Hello, I'm trying to integrate php-layers-menu in mySTS based osc site. the menu requires some code (javascript, html and php requires) in the head section and some in the body. Using STS, I'm forced to put every above the </head> inside the $template['headcontent'] (otherwise if I put these tags in the $masthead, they are stripped out). The problem is that I have some PHP code that I need to run. Doing this doesn't work: $template['headcontent'] .= '<script language="JavaScript" type="text/javascript">' . "\n"; $template['headcontent'] .= '<?php' . "\n"; $template['headcontent'] .= 'require_once \'/libjs/layersmenu-browser_detection.js\';' . "\n"; $template['headcontent'] .= ' ?>' . "\n"; $template['headcontent'] .= '</script>' . "\n"; Can anyone tell me what I should do? Thanks, David
  4. Hello, I use v1.3 of this wonderful (Information Pages Unlimited) contribution that includes the parent/child feature for the information pages. Unfortunately, the way it's currently constructed is that the breadcrumb doesn't add a child's parent ID's title (if one exists), so we jump from the child directly to the catalog if we want to go back. I tried to add something like before the "regular" breadcrumb insert in the information.php page and update the SQL query to include the parent_id, but I'm not a strong php coder, so it doesn't work (I don't know how to check what happens if the $parent is NULL and how to extract the $parent_title information if one exists). Would anyone care to help me on this? Thanks, David PS. I opened a new topic by mistake. I apologize in advance for the double-post. I wish there was an option to remove a post that you created.
  5. Hello, I use v1.3 of this wonderful (Information Pages Unlimited) contribution that includes the parent/child feature for the information pages. Unfortunately, the way it's currently constructed is that the breadcrumb doesn't add a child's parent ID's title (if one exists), so we jump from the child directly to the catalog if we want to go back. I tried to add something like before the "regular" breadcrumb insert in the information.php page and update the SQL query to include the parent_id, but I'm not a strong php coder, so it doesn't work (I don't know how to check what happens if the $parent is NULL and how to extract the $parent_title information if one exists). Would anyone care to help me on this? Thanks, David
  6. Hello, I work with my bank's credit card company. The process is the following: 1. The customer chooses to make a payment through credit card. 2. He is redirected to the bank's payment page by the module that I customized. 3. The bank returns to a ccback.php page that I created with a POST of relevant data. The most important fields are: $ResponseCode - 1 means that the autorization was succesful $AuthCode - the 6 digits code that proves that the transaction was authorized by the client's bank $PaddedCardNo - the credit card number in the format xxxx-xxxx-xxxx-ABCD $ReferenceNo - A reference number that I need to use to make the actual debit on the card, once I'm ready to ship the products(). 4. I want to send an email to the client telling him that the credit card was authorized and that his card will be debited when the product will be shipped. 5. I need to update the order information to include the fields above (no need for the $ResponseCode). I took some code from the cc.php payment module and tried to customize it to do what I need, but it's not complete and I'm not sure that it will work: In order not to start making changes in the database, I planned on using the existing cc related fields to store the data that I need, but I'm not sure that what I did will work. Also, as you can see in the code, I don't know how to include the customer's details, such as his full name and email address in the email and if the database will be updated with the relevant information. In case I'll need to move this code (in case it shouldn't be here) to the before_process or after_process functions of the payment module, how can I pass on the fields that I get from the cc company? What is the difference between the 2 functions before_process and after_process in the payment module? What is considered the "process" before or after which these functions are used? Thank you in advance for your help. David
  7. OK, I reinstalled the whole osCommerce all over again. I have 4 payment methods activated: C.O.D., Check/MO, Wire Transfer (EUBank Transfer contribution) and my Credit Card processing module. All the other 3 are now working fine. The problem with my module remains, and it's clear that the fact that the order is accepted is not passed on to the next page and all the database queries are not performed. Any idea? Thanks, David
  8. OK, I solved question 1 above, by chaging the link to As for the 2nd problem, I think that I have a more general problem, because even with another payment method, the order was not processed fully, i.e. the items are seen in my order history, but no order is really registered. David PS. I hope that all these exchanges contribute to other people :-)
  9. Hello, First, I added the line after That (with your comments) showed me that the echos were indeed the cause of the redirect problem. Now, the following issues remain: 1. If the transaction is rejected, how can I tell it to the client before rerouting him to the payment page again, if I can't echo the error? 2. Even if the payment is approved and I'm routed to the success page, the order is not really processed (the cart remains full and nothing happens in the back). Some info seems to get lost on the way :( . I tried using the old redirect command instead of but it didn't help, either. Regards, David
  10. In order to try to isolate the problem, I separated the tep_href_link from tep_redirect, by entering the following: instead of: I did the same thing for a failed payment, but changed the destination to FILENAME_CHECKOUT_PAYMENT. 1. The redirect didn't work, but the good "full" link was properly displayed. 2. When I went (manually, since the redirect didn't work) to the checkout_success page, the cart was not emptied and the order was not really processed, although it gave me the "standard" success text. I still think that some includes or variables/globals are needed, in order to solve this problem. Regards, David
  11. Hi Brian, Thanks for your help. I put it just above the include line, and nothing is displayed on the screen (except for the echos that I put, according to the response codes). Any other idea? David
  12. Unfortunately, nothing. It's just stuck in the same place and doesn't redirect. I suspect that there must be some globals or variables or includes/requires that are missing from this page. In my opinion, it doesn't recognize the tep_redirect & tep_href_link commands. I checked (by echo) to see if it knows the file names, and it does. Any other trick under your sleeve? :-" Thanks, David
  13. Hi, Does anyone have an idea why the tep_redirects doesn't work after I check the response? I'm sure there has to be something minor that I neglected, but I have no idea what it is. I really need help and this is the last point before I can start service. Thanks, David
  14. Hello, My online payment processor sends me a HTTPS POST response to the POST that I'm sending him to a URL that I ask him. In that URL, I prepared the following file, but the redirection to the checkout_success (in case the response code is not 1) or checkout_payment do not work: I know that the variables get the right values (I tested with echos). Does anyone have an idea why? Thanks, David
  15. Hi Chris. Thank you for your response. I managed to adjust the WorldPay contribution to generate the exact POST that I need to send to my CC processor. All I need now is to make the page that accepts the response. If you have a way of leaving only one inbound field and the rest of the "frame" that works with osC and post it (empty of all reference to them), I'd highly appreciate it. I'm continuing to work on it, but the inbound page seems more complicated to me (I'm not a php programer). Thanks.