Results 1 to 10 of 10
  1. #1
    Join Date
    Apr 2004
    Location
    Houston, Tx
    Posts
    190

    Help With New 2checkout system

    im trying to figure out how the new 2checkout system works, if any body has and docs on in can they please post a replay.

  2. #2
    Join Date
    Mar 2004
    Location
    USA
    Posts
    4,342
    They have a new system??

    I am still using there old one... it seems to be ok?

    what is this new system, and is it better than the old one?

    Peace,

  3. #3
    New system is only available to the most recent members. Us older members will be put on it in a little while I'm assuming... I emailed about it but they wouldn't put me on the new system.

    Did you try reading the forums? I'm not sure how detailed they are there. I know they are pretty skimpy.

  4. #4
    Hey, We are on the new system.

    Its great.

    What problems are you having? If its with the MD5 hash, they have changed the string from

    md5('secretword' . 'sid' . 'sid-' . $_REQUEST["order_number"] . $_REQUEST["total"])

    to

    md5('secretword' . 'sid' . $_REQUEST["order_number"] . $_REQUEST["total"])

    Hope this helps.
    Future Templates
    http://www.futuretemplates.com
    10% cheaper than Template Monster
    Pay With PayPal & 2Checkout

  5. #5
    Join Date
    Apr 2004
    Location
    Houston, Tx
    Posts
    190
    Originally posted by futuretemp
    Hey, We are on the new system.

    Its great.

    What problems are you having? If its with the MD5 hash, they have changed the string from

    md5('secretword' . 'sid' . 'sid-' . $_REQUEST["order_number"] . $_REQUEST["total"])

    to

    md5('secretword' . 'sid' . $_REQUEST["order_number"] . $_REQUEST["total"])

    Hope this helps.
    The problem im having is when ever a order is completed rather then takeing them to my site it gives a http 500 error from there site, it only does this when i have the return values set.

  6. #6
    I had this problem when I first made my callback script.

    This error occurs when you use the $_POST request, from what i can gather.

    If you use the $_REQUEST variable, this should fix the problem.
    Future Templates
    http://www.futuretemplates.com
    10% cheaper than Template Monster
    Pay With PayPal & 2Checkout

  7. #7
    Join Date
    Apr 2004
    Location
    Houston, Tx
    Posts
    190
    do i have to send any thing back to there system? im still getting a 500 error

    also can some one post an example script on here so i can see how they did it with the new system

  8. #8
    No, you do not need to send anything back to them. I will post a sample script in a moment
    Future Templates
    http://www.futuretemplates.com
    10% cheaper than Template Monster
    Pay With PayPal & 2Checkout

  9. #9
    PHP Code:

    <?
    if(strtoupper($_REQUEST["demo"]) != "Y"){
        if(
    $_REQUEST["sid"] == $sellerid){
            
    $amount_check 0;
            
    /*
            RUN A SCRIPT TO CHECK THE ORDER AMOUNT
            
            SET $amount_check TO 1 IF MATCH
            */
            
    if($amount_check == 1){
                
    $md5check 0;
                if(
    strtoupper($_REQUEST["key"]) == strtoupper(md5($secretword $sellerid $_REQUEST["order_number"] . $_REQUEST["total"]))){
                    
    $md5check 1;
                };
                if(
    $md5check == 1){
                    if(
    strtoupper($_REQUEST["credit_card_processed"]) == "Y"){
                        
    /*
                        
                        YOUR COMPLETION SCRIPT HERE
                        
                        */
                    
    };
                };
            };
        };
    };
    ?>
    HTML PAGE HERE
    Future Templates
    http://www.futuretemplates.com
    10% cheaper than Template Monster
    Pay With PayPal & 2Checkout

  10. #10
    Join Date
    Apr 2004
    Location
    Houston, Tx
    Posts
    190
    THNAK YOU!!!

Posting Permissions

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