We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 36786 ☆ A M B ☆
    • 209 Posts
    Has anyone managed to incorporate PayPal integration into the MiniShop extra? Is this not the best extra to use if you want PayPal integration? I love the simplicity of minishop so it would be great if I could stick with that. I was thinking of trying to avoid the paypal PHP api since I know almost no PHP.

    This is my idea for a method to go about it, and it certainly is a bit roundabout. Please let me know if this would work or if PHP integration is easier than I think.

    1) Checkout button would not be the minishop "Submit Order" button, but a dynamicly generated paypal button. This is what I mean:
    <form action="https://www.paypal.com/cgi-bin/webscr" method="post">
    <input type="hidden" name="cmd" value="_cart">
    <input type="hidden" name="upload" value="1">
    <input type="hidden" name="business" value="[email protected]">
    <input type="hidden" name="item_name_1" value="Item #1">
    <input type="hidden" name="amount_1" value="1.00">
    <input type="hidden" name="item_name_2" value="Item #2">
    <input type="hidden" name="amount_2" value="2.00">
    <input type="submit" value="PayPal">
    </form>
    


    2) After the payment is completed, Paypal would redirect the user to a payment completed page on our website.

    3) A script on the payment completed page would submit the previously loaded cart to the minishop system, thus logging it within ModX.

    Am I making things more complex than they need to be? Thanks for any guidance you can give me!
      Ben Morrison
      Hacking templates to pieces since 2003
      • 33991
      • 65 Posts
      You can integrate any payments systems into MODX.

      1. You need to create payment method. Customer can select this method when orders goods, or you can add it id to his $_SESSION.
      2. In this method you can set your custom snippet (of course, you need to made it) - see attachment
      3. This snippet will run after creation of you order and can made everything with your order and you, including redirect to PayPal with order data.
      4. After various payment actions PayPal redirects you back to your custom address, where you call snippet to change order status from New to Paid. I dont know how exactly PayPal works, but it is not problem - you can enable miniShop service and work with it from any snippet.
      5. On changing status site will sent email notices to you and customer (it is enabled in manager by default)

      Also you can try translate and read my article about custom payment in russian. Unfortunatelly i dont have enought time to translate it. [ed. note: bezumkin2 last edited this post 14 years, 3 months ago.]
        • 25429
        • 32 Posts
        Ben, have you had any success implementing?
          • 3866 ☆ A M B ☆
          • 350 Posts
          Hi there, I'd be interested in PayPal integration. Any feedback always welcome.
            Helen Warner
            Number one pixel!
            Proud to be linked with MODX at Crimson Pixel
            • 25429
            • 32 Posts
            Quote from: bezumkin2 at Jun 26, 2012, 08:02 AM
            You can integrate any payments systems into MODX.

            If you did the paypal integration, minishop could make modx seriously ecommerce capable. Right now, it's the most inconvenient issue about the cms.
              • 36786 ☆ A M B ☆
              • 209 Posts
              Sorry for the delay getting back. No luck here. I can't program PHP so my options are limited... and I agree with rolandtom, as it stands I can't recommend modx as a CMS for ecommerce, the options are just too limited and the payment gateways near nonexistant.
                Ben Morrison
                Hacking templates to pieces since 2003
                • 28042 ☆ A M B ☆
                • 24,524 Posts
                Some discussion of the topic at the MODXpo in Ultricht last month http://modxpo.eu/schedule/sessions/innovating-with-modx
                  Studying MODX in the desert - http://sottwell.com
                  Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                  Join the Slack Community - http://modx.org
                  • 36786 ☆ A M B ☆
                  • 209 Posts
                  I'm sorry guys but this is above my head. Sorry for not closing this out, but again, if anyone knows solidly how to do this, it would be a life saver!
                    Ben Morrison
                    Hacking templates to pieces since 2003
                    • 36613
                    • 328 Posts
                    if someone was able to implement a method of payment can make a video or a tutorial?
                    I tried to associate the pagemento the method of spdizione but when I click on the button to confirm the order subject to the order does not send me to the snippets. Help me :'(
                      • 39333
                      • 151 Posts
                      Any more progress on this? I could really use minishop with PayPal for a build. Otherwise I'm recommending Shopify.
                        MODX...the Zen of CMS
                        "Bight off more than you can chew and keep right on chewing."