WordPress.org

Ready to get started?Download WordPress

Forums

PayPal? (2 posts)

  1. tecamero
    Member
    Posted 6 years ago #

    Can I use PayPal's basic "website payment standard" program within WordPress? It works so you put a Pay Now button on your site and then the cust is directed to paypal to complete the payments and then directed back to your site.

  2. dimisdas
    Member
    Posted 6 years ago #

    You may add this code in your sidebar(from admin/presentation/ Theme Editor) at the end before:

    <!-- sidebar.php end -->

    A code example:

    <div>
    
    ///////////////////////////////////////////////////
    /The code that paypal gives you////////////////////
    ///////////////////////////////////////////////////
    ///////////////////////////////////////////////////
    
    </div>

    For example this how my donate button is (do not add this code into your site, it is just an example):

    <div>
    <form action="https://www.paypal.com/cgi-bin/webscr" method="post">
    <input type="hidden" name="cmd" value="_s-xclick">
    <input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-butcc-donate.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
    <img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">
    <input type="hidden" name="encrypted" value="-----BEGIN PKCS7-----MIIHPwYJKoZIhvcNAQcEoIIHMDCCBywCAQExggEwMIIBLAIBADCBlDCBjjELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwgYDVQQKEwtQYXlQYWwgSW5jLjETMBEGA1UCxQKbGl2ZV9jZXJ0czERMA8GA1UEAxQIbGl2ZV9hcGkxHDAaBgkqhkiG9w0BCQEWDXJlQHBheXBhbC5jb20CAQAwDQYJKoZIhvcNAQEBBQAEgYB+G03PzWTCrluD2JA9IkyoLTviiHyxrpdXCKyXBhwEZrDqElq3A2gqLEc6GT3GnY0cTgmPqpy26TwIOiEVexEXSL6HAl5cHaHr6Tk9zNenirdHe14/zHSShDs6EdoaMWze7uFUcgl7bnlbyHXlLWyICbqWfEVpyxV3PpBq4fV0DELMAkGBSsOAwIaBQAwgbwGCSqGSIb3DQEHATAUBggqhkiG9w0DBwQI9rNqBP32g52AgZiT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UGF5UGFsIEluYy4xEzARBgNVBAsUCmxdmVfY2VydHMxETAPBgNVBAMUCGxpdmVfYXBpMRwwGgYJKoZIhvcNAQkBFg1yZUBwYXlwYWwuY29tggEAMAwGA1UdEwQFMAMBAf8wDQYJKoZIhvcNAQEFBQADgYEAgV86VpqAWuXvX6Oro4qJ1tYVT5DgWpE692Ag422H7yRIr/9j/iKG4Thia/Oflx4TdL+IFJBAyPK9v6zZNZtBgPBynXb048hsP16l2vi0k5Q2JKiPDsfBhGI+HnxLXEaUWAcVfCsQFvd2A1sxRr67ip5y2wwelUecP3AjJ+YcxggGaMIIBlgIBATCBlDCBjjELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtQYXlQYWwgSW5jLjETMBEGA1UECxQKbGl2ZV9jZXJ0czERMA8GA1UEAxQIbGl2ZV9hGkxHDAaBgkqhkiG9w0BCQEWDXJlQHBheXBhbC5jb20CAQAwCQYFK4DAhoFAKBdMBgGCSqGSIb3QEJAzELBgkqhkiG9w0BBwEwHAYJKoZIhvcNAQkFMQ8XDTA3MTEyNTE3MDMxNlowIwYJKoZIhvcNAQkEMRYEFCda15XMZvUdPNumVbRE5XFm64WXMA0GCSqGSIb3DQEBAQUABIGAv5/+l5Th3S0vIBSz5QsjqvM1zCogYMQMvTmH5ehVNubu/sYnfiZqvezY6ALBhp3FI0V8dy3knoE9JuYw+mZQjiyvDQW5HtkBxr0Xz46TTCDtDrnkNh0zJRv7B7O+mV/BY6+T5Qt2vMt4lUA77x6iQU9qSbmvLN1zHf67qlxQs=-----END PKCS7-----
    ">
    </form>
    </div>

    It is a little big because i use SSL but this is it. You may add your code into footer too if you want. Or even after every post:

    To add your code do the folowings:
    GO admin/Presentation/Theme editor/Main index Template

    Find (with control+f) this piece of code:
    <div class="post_category">Posted in <?php the_category(', ') ?></div>

    Before this code add your paypal buttom code we made before:

    <div>
    
    ///////////////////////////////////////////////////
    /The code that paypal gives you////////////////////
    ///////////////////////////////////////////////////
    ///////////////////////////////////////////////////
    
    </div>

    Thats all. sry for bad english. If you still need help please contact me: dimitrisdas@thegreekz.org or msn me: dimisdask@hotmail.com . You are welcome to ask.

    If you want to redirect back to your site after payment contact me to give you the code. But you should know that it just posts to paypalobjects the email which should accept the payment and anyone may see what's happening from the Source.

    SORRY FOR BAD ENGLISH

Topic Closed

This topic has been closed to new replies.

About this Topic