Menu

post to paypal

Help
blackhawkb
2006-01-25
2013-06-03
  • blackhawkb

    blackhawkb - 2006-01-25

    Love the program and have been playing with it to try and post the form information to paypal.
    I am using the php API for paypal and am trying to modify the process.php to post the required entries to paypal after a file is uploaded to the database.

    PayPal has several post requirements and I was trying to configure them in the global file then call on them to post at the end of the process.

    When I submit the form the info post to the database and sends the email but then just hangs on the process page, it is not sending the info to pay paypal. Here is the the post command I am using at the end of the process.php file. The $paypal[url] is defined in the global config file for testing purposes. Is the problem my call to post using HTML? any ideas how else I would post it?

    Thanks in advance for your help

    <body onLoad="document.paypal_form.submit();">
    <form method="post" name="paypal_form" action="<?=$paypal[url]?>">

    <?php
    //show paypal hidden variables

    showVariables();

    ?> 

     
    • TNTEverett

      TNTEverett - 2006-01-25

      What you are talking about is a custom application for your form. 
      Custom applications require custom help.  Since this deals with PayPal, I don't think that I am the right person to help you out but here are my suggestions.
      1-Find out if PayPal has any examples of php code that performs the actions you require.
      2-Find out if PayPal has a test mechanism for your program debug efforts. 
      3-While testing your function, provide as many print statements both before and after each step in the process (this will help you verify all the data is correct for each step).
      If you really want my help you will have to provide me with all your form files and as much detail on PayPal as you can. 
      Since you have only posted small sections of your code there is no way I can comment on the validity of your current methods. 

       
      • pcboy123

        pcboy123 - 2006-01-25

        go here!! you might have to login to your pal pay account before you can see the page..

        https://www.paypal.com/us/cgi-bin/webscr?cmd=xpt/developer/DevCentralLanding

        https://developer.paypal.com/

        Quote FROM PAYPAL SITE"

        " Sign up now for free access to:
        Sandbox test environment - Use test accounts to test your applications
        Website Payments testing - Fine tune your Website Payment buttons using test buyer and seller accounts
        Instant Payment Notification (IPN) and Payment Data Transfer (PDT) - Set up test accounts to verify your IPN and PDT integrations
        API testing - Test PayPal Web Services before using them on the live PayPal.com site""

         
        • TNTEverett

          TNTEverett - 2006-01-25

          OK, but if you want me to help I will still need to see a copy of your process.php file and a link to your form. 
          Send via email (or even comment out certain stuff) if there is any private data in the process.php file.

           

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.