WordPress.org

Forums

WooCommerce - excelling eCommerce
[resolved] Running code after successful iDeal payment (3 posts)

  1. flight118
    Member
    Posted 2 years ago #

    I'm having some problems running custom code. Here what I want to do:

    I've build a function that writes an XML from the order that is made and saves it to the server. I need it to be executed after an iDeal payment is done and is successful. The XML gets send to the supplier of the goods and can process the order this way.

    The function is on pastebin: http://pastebin.com/VBsRy5Av

    I've tried adding my function to the thankyou page, the problem with that is that when a visitor presses F5 on that page, the code executes again and I can't let that happen. My guess is it has to run after the payment and before the thanks-page.

    I'm using the iDeal plugin by Coen Jacobs: http://www.woothemes.com/extension/ideal-mollie/

    Hope someone can help me because I've been breaking my head on this...
    Thanks!

    http://wordpress.org/extend/plugins/woocommerce/

  2. flight118
    Member
    Posted 2 years ago #

    Was able to solve this, I put my code in the woocommerce-complete-payment section. This section runs when a payment (any payment) succeeded.

  3. flight118
    Member
    Posted 2 years ago #

    Solved.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WooCommerce - excelling eCommerce
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic