Integrate Paypal inside TDO (4 posts)

  1. henri
    Posted 7 years ago #

    Hi all, I wonder how I can integrate the paypal form inside the TDO mini form plugin.

    I try to insert the form like this in "tdomf-form-post.php" but without any success...

    I start at the line 106 :

    } else {
              <h2>Payer votre annonce</h2>
    		  <form name="paypal_form" id="publish_form" action="https://www.paypal.com/fr/cgi-bin/webscr" method="post" >
                        <input type="hidden" name="cmd" value="_xclick">
                        <input type="hidden" name="business" value="mail@mail.com">
    					<input type="hidden" name="item_name" value="Annonce {$job.id} sur 2803 job board">
    					<input type="hidden" name="currency_code" value="EUR">
    					<input type="hidden" name="amount" value="1">
    					<input type="hidden" name="no_shipping" value="1">
    					<input type="hidden" name="return" value="/">
    					<input type="image" src="http://www.paypal.com/fr_FR/i/btn/x-click-but01.gif" name="submit" alt="Effectuez vos paiements via PayPal : une solution rapide, gratuite et sécurisée">
          // If retVal is a string, something went wrong!
          } else {

    Thanks for your help!

  2. testcricket
    Posted 6 years ago #


    I know this is an oldish post and I'm a bit of a newbie but when I read this I noticed the /form> was on a separate line to the line above it. This means there's a break where there shouldn't be one and this can mess up the paypal code. If you move </form back to be at the end of the line above it this might solve your problem.

    Apparently Paypals code is notorious for this odd behaviour.

    BTW how do you use TDO miniforms to integrate paypal??? If this works I would be thrilled as I found your post because I'm looking for a simple way to insert paypal "Buy Now" links in posts for several products and nothing I've found so far works. Can you point me to somewhere that gives instructions on how to do this?

  3. the_dead_one
    Posted 6 years ago #

    Wow! I'm only seeing this topic now too. What are you guys trying to do? I'm not familiar with the paypal API.

  4. testcricket
    Posted 6 years ago #

    tdo - when you try to insert paypal code with a "buy now" or "donate" button into a page or post, the editor in WordPress doesn't properly render the code. You end up with all sorts of errors from paypal instead of being sent to the payment page and people have reported some odd behaviour from the editor such as formatting placed using the html window disappearing after you save the page/post.

    It's frustrating because Paypal provide a way to easily get the code to put in your website but it wont work in WordPress. I've used it successfully in the widgets section - by posting the code into a text widget - but have not been able to get it to work in the posts themselves, which is what a lot of people need.

    So some of us are looking for an answer (ie is there something we're not doing right?) or an alternative.

    I think you need something that inserts php into posts without using the built in editor - so I'm not sure how TDO miniforms would achieve this. I already use your excellent plugin so I'm kinda familiar with how it works and was more than curious when I found this thread while desperately seeking a solution.

Topic Closed

This topic has been closed to new replies.

About this Topic