• Resolved dschingis

    (@dschingis)


    Hi,

    on a stage site I ordered a product via SEPA Direct Debit payment method.

    The customer should get an email with debitor and creditor information, SEPA Mandate number etc. But he did not. The vendor did not get any information about the payment status.

    In my Stripe account I see, that the payment was successfully processed. And there I find the SEPA data.

    I added the webhook link to my Stripe backend. The SEPA notification email is activated in the WooCommerce Settings.

    The WooCommerce Stripe Gateway log shows

    01-12-2018 @ 10:39:57 - ====Start Log====
    Processing response: stdClass Object
    (
        [id] => py_####
        [object] => charge
        [amount] => 1190
        [amount_refunded] => 0
        [application] => 
        [application_fee] => 
        [balance_transaction] => 
        [captured] => 1
        [created] => 1515749997
        [currency] => eur
        [customer] => cus_####
        [description] => STAGE SITE NAME - Order 10104
        [destination] => 
        [dispute] => 
        [failure_code] => 
        [failure_message] => 
        [fraud_details] => stdClass Object
            (
            )
    
        [invoice] => 
        [livemode] => 
        [metadata] => stdClass Object
            (
                [customer_name] => Prename Name
                [customer_email] => [email protected]
                [order_id] => 10104
                [payment_type] => recurring
                [site_url] => STAGE SITE URL
            )
    
        [on_behalf_of] => 
        [order] => 
        [outcome] => stdClass Object
            (
                [network_status] => approved_by_network
                [reason] => 
                [risk_level] => not_assessed
                [seller_message] => Payment complete.
                [type] => authorized
            )
    
        [paid] => 
        [receipt_email] => 
        [receipt_number] => 
        [refunded] => 
        [refunds] => stdClass Object
            (
                [object] => list
                [data] => Array
                    (
                    )
    
                [has_more] => 
                [total_count] => 0
                [url] => /v1/charges/py_####/refunds
            )
    
        [review] => 
        [shipping] => 
        [source] => stdClass Object
            (
                [id] => src_####
                [object] => source
                [amount] => 
                [client_secret] => src_client_secret_####
                [created] => 1515749997
                [currency] => eur
                [customer] => cus_####
                [flow] => none
                [livemode] => 
                [metadata] => stdClass Object
                    (
                    )
    
                [owner] => stdClass Object
                    (
                        [address] => stdClass Object
                            (
                                [city] => Fake city
                                [country] => Fake country
                                [line1] => Fake adress
                                [line2] => 
                                [postal_code] => 1111
                                [state] => 
                            )
    
                        [email] => [email protected]
                        [name] => DE####3000
                        [phone] => 
                        [verified_address] => 
                        [verified_email] => 
                        [verified_name] => 
                        [verified_phone] => 
                    )
    
                [statement_descriptor] => 
                [status] => chargeable
                [type] => sepa_debit
                [usage] => reusable
                [sepa_debit] => stdClass Object
                    (
                        [bank_code] => 37####44
                        [country] => DE
                        [fingerprint] => ####
                        [last4] => 3000
                        [mandate_reference] => W1####02
                        [mandate_url] => https://hooks.stripe.com/adapter/sepa_debit/file/src_####/src_client_secret_####
                        [branch_code] => 
                    )
    
            )
    
        [source_transfer] => 
        [statement_descriptor] => 
        [status] => pending
        [transfer_group] => 
    )
    
    ====End Log====
    
    01-12-2018 @ 10:46:18 - ====Start Log====
    customers/cus_####/sources request: Array
    (
        [limit] => 100
    )
    
    ====End Log====
    

    Thank you for any hints

Viewing 9 replies - 16 through 24 (of 24 total)
  • Thread Starter dschingis

    (@dschingis)

    Hi,

    sorry for my late response.

    I installed the github version and it works per se. I’ll watch the recurring emails but I’d like to thank you for now.

    As @jmjr pointed out the email styling and the lack of translation is unacceptable. But this is an Stripe issue, isn’t it?

    Best regards

    I personally would just prefer the Stripe Plugin to add a line to the order email and send out an own email for the renewals. This would make things like customization or translation much easier.
    For now I use this code to add a prenotification line to the order received email

    add_action( 'woocommerce_email_before_order_table', 'add_order_email_instructions', 10, 2 );
    function add_order_email_instructions( $order, $sent_to_admin ) {
      if ( ! $sent_to_admin ) {
        if ( 'stripe_sepa' == $order->payment_method ) {
          echo '<p><strong>Vorabinformation:</strong> Der f?llige Betrag wird in zwei Tagen von deinem Konto abgebucht.</p>';
        } 
      }
    }

    Hi,

    I saw in the changelog that now SEPA mandate emails are sent, but I couldn’t find further information in the documentation. And during testing no email was sent.
    As I’m no developer I have not much knowledge about code, but in the files I couldn’t find an email function anywhere.

    Could you explain the new email functionality?

    D Smith a11n

    (@dsmithweb)

    Automattic Happiness Engineer

    Hi @jmjr!

    The new functionality is that qualifying transactions are identified to Stripe as being SEPA-sourced; the notification emails should be sent from Stripe directly. Is this still not happening for you with the latest version (4.0.7) of the Stripe payment gateway?

    Hi @dsmithweb,

    it’s working, but the email that is send by Stripe does look more like spam, than a trustworthy notification by a professional payment service provider. Therefore I used the filter to switch the Stripe notification off and added the pre-notification info (although incomplete) to the order confirmation email.

    Thread Starter dschingis

    (@dschingis)

    Hi,
    I got in touch with Stripe and there is an alternative way to handle the prenotification emails by using a webhook. See

    @dschingis I think those are exactly the webhooks the plugin is already using.

    D Smith a11n

    (@dsmithweb)

    Automattic Happiness Engineer

    Thanks for those updates, @jmjr and @dschingis, and the advice on alternative methodology. @dschingis, that is indeed the existing webhook that triggers the emails from Stripe.

    Since the initial issue’s resolved, I’m going to close this thread.

    Plugin Support AW a11n

    (@slash1andy)

    Automattic Happiness Engineer

    I’m going to go ahead and close this, as the topic is resolved.

Viewing 9 replies - 16 through 24 (of 24 total)
  • The topic ‘SEPA Mandate Email missing’ is closed to new replies.