Forum

The forum is a free service supported by community members. Please consider opening a support ticket if you need timely help.

PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 18 Dec 2025 03:52 PM by  Steve L
Recurring Order Issue
 3 Replies
Sort:
You are not authorized to post a reply.
Author Messages


New Member


Posts:51
New Member


--
08 Dec 2025 05:31 PM

    We implemented Recurring Orders last year for memberships, and are working though issues as membership renewals are processing.  The Checkout action sets the order status to "Incomplete", then requires responseCode = 1 and transactionType = 2 in order to set the order to "Completed". 

    For received recurring order failed payments, the order status reflects "Incomplete" as it should, however the item within the recurring order reflects "Ordered" and all the run actions (store order email notification, subscription user roles, etc.) that occur with the purchase of this item are implemented.  It appears the item is ordered prior to the checkout process (which ensured payment is made prior to placing the order).  It appears that the "Place order" is out of sequence with the checkout process of paying / receiving confirmation of payment accepted prior.  

    Is this process configurable by the administrator, and where do we begin?  Thank you!

     

     

    <xsl:transform version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
      <xsl:template match="/">
        <!-- Set order status to "incomplete"; then "completed", payment status "paid", if payment is received by verifying sales payment response code is 1-->
        <out>
          <setData>
            <salesOrder>
              <status>7</status>
            </salesOrder>
           <xsl:if test="sum(/in/salesOrder/salesPayments/salesPayment[responseCode = 1 and transactionType = 2]/amount) &gt;= /in/salesOrder/totalAmount">
              <salesOrder>
                <status>4</status>
                <salesPaymentStatus>2</salesPaymentStatus>
              </salesOrder>
            </xsl:if>
          </setData>
        </out>
      </xsl:template>
    </xsl:transform>

    0


    Veteran Member


    Posts:2985
    Veteran Member


    --
    09 Dec 2025 11:57 PM

    Hi Dennis

    Just to be sure we understand, you want to change the "Sales order detail" items to be marked differently if the payment failed, and not just the "sales order". Correct?

    0


    New Member


    Posts:51
    New Member


    --
    16 Dec 2025 05:34 PM
    Currently, if salesOrder/salesPayments/salesPayment[responseCode = 100 (Declined), the parent order is marked as incomplete, and payment is also marked as incomplete.
    The problem is that despite payment being declined and the overall order being incomplete, the place order action associated with products contained in the order continue to process for the respective product, such as membership authorization for the following year, and emails sent to both the customer as if the order was placed, as well as email to the store administrator indicating that the order was placed.
    This only occurs for recurring orders. We want the recurring order to fail if payment is declined, and retry for the number of times we specify.

    0


    Veteran Member


    Posts:2985
    Veteran Member


    --
    18 Dec 2025 03:52 PM

    Hi Dennis

    If you want to avoid running the Place order action, you need to change the Place order action as a "Custom Rule" and test for the payment completion. If you need help with writing the custom rule, you may engage our help for a small fee.

    Thank you

    0
    You are not authorized to post a reply.