• Resolved Suki

    (@sukinoz)


    Hello,

    We use the SEPA direct debit payment for a subscription to an NGO.

    We know that SEPA direct debit payment is asynchronous.

    Normally, when you have a monthly subscription to an NGO (or other subscription based on SEPA Direct Debit), you are “subscribed” from the beginning of the month, and once the month is ending, the NGO sends the SEPA Direct Debit payment to the Bank.

    Thus, the order is:
    1. The person applies to become a member (and gives his personal data and bank account number for the SEPA direct debit).
    2. The NGO registers him/her as a member
    3. The person becomes a member and enjoys the benefits of membership.
    4. At the end of the period, the NGO sends the SEPA direct debit payment order to the bank.

    The problem is that the subscription remains “pending” until Stripe receives the response from the bank that the payment is done.

    Is there any way that the subscription associated with the SEPA direct debit payment is active from the beginning, instead of being pending?

    Translated with http://www.DeepL.com/Translator

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Payment Plugins

    (@mrclayton)

    Hi @sukinoz,

    The plugin is coded so that when a SEPA order is processed, it’s status is set to on-hold until the Stripe issues the source.chargeable event.

    The subscription status should not be pending.

    You can hook in to the filters provided by the plugin to change the order’s status to whatever you need it to be. API Docs

    Use filter wc_stripe_pending_charge_status to adjust the order’s status which will affect the subscription’s status.

    Kind Regards,

    Thread Starter Suki

    (@sukinoz)

    Hello, thanks for answering

    Use filter wc_stripe_pending_charge_status to adjust the order’s status which will affect the subscription’s status.

    Yeah! I think you gave the correct answer!
    Once the SEPA direct debit order is issued (even if not yet paid) the subscription status changes to “processing” or “completed” (not sure), instead of “on hold”.

    But we are not programmers, so dont know how to manage this filter is that way…

    We think that using Renewal Synchronisation option, should be an alternative for us
    https://docs.woocommerce.com/document/subscriptions/renewal-synchronisation/

    Plugin Author Payment Plugins

    (@mrclayton)

    @sukinoz here is an example using that filter:

    
    add_filter('wc_stripe_pending_charge_status', function($status, $order){
        if($order->get_payment_method() === 'stripe_sepa'){
            $status = 'processing';
        }
        return $status;
    }, 10, 2);

    `

    Thread Starter Suki

    (@sukinoz)

    thank you very much

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘SEPA direct debit subscription activated’ is closed to new replies.