Title: derderderder's Replies | WordPress.org

---

# derderderder

  [  ](https://wordpress.org/support/users/derderderder/)

 *   [Profile](https://wordpress.org/support/users/derderderder/)
 *   [Topics Started](https://wordpress.org/support/users/derderderder/topics/)
 *   [Replies Created](https://wordpress.org/support/users/derderderder/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/derderderder/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/derderderder/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/derderderder/engagements/)
 *   [Favorites](https://wordpress.org/support/users/derderderder/favorites/)

 Search replies:

## Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce Stripe Payment Gateway] SEPA auto ok](https://wordpress.org/support/topic/sepa-auto-ok/)
 *  Thread Starter [derderderder](https://wordpress.org/support/users/derderderder/)
 * (@derderderder)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/sepa-auto-ok/#post-10482844)
 * Is there a way to send with this solution the “payment ok” mail like the native
   paypal implementation? My problem is that SOFORT and GIROPAY is async here. So
   the user gets only a order confirmation with the link to the payment and after
   the payment is complete, no additional mail is send. As I send tickets in the
   order confirmation, the user don’t get the tickets because in the moment of the
   confirmation mail, the order is not payed and the tickets are not issued.
 * The native paypal integration sends after the IPN an additional mail which I 
   assume is called “payment ok”. I don’t know how to trigger this email in the 
   hook. Can anyone help?
 * A direkt implementation of this feature in the plugin would be really great…
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce Stripe Payment Gateway] SEPA auto ok](https://wordpress.org/support/topic/sepa-auto-ok/)
 *  Thread Starter [derderderder](https://wordpress.org/support/users/derderderder/)
 * (@derderderder)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/sepa-auto-ok/#post-10303029)
 * Here my solution which I adapted from another thread:
 * add_action( ‘wc_gateway_stripe_process_response’, ‘action_wc_gateway_stripe_regard_sepa_pending_as_complete’,
   0, 2);
    /** * Action function that sets the order to “payment completed” even
   if the SEPA direct debit is pending at Stripe. * [@author](https://wordpress.org/support/users/author/)
   Kai Mindermann */ function action_wc_gateway_stripe_regard_sepa_pending_as_complete(
   $response, $order) {
 *  // check if payment (stripe response) is in pending state
    // check if payment(
   stripe response) is of ‘sepa_debit’ type // check if order contains a subscription
   if( $response->status === ‘pending’ && $response->source->type === ‘sepa_debit’){
   $order->payment_complete($response->id);
 *  /* translators: response id */
    $order->add_order_note( sprintf( __( ‘Pending
   status automatically set as payment complete by custom hook (Charge ID: %s)’,‘
   woocommerce-gateway-stripe’ ), $response->id ) ); if ( is_callable( array( $order,‘
   save’ ) ) ) { $order->save(); } } // TODO update post_meta? // TODO update fees}
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce Stripe Payment Gateway] No confirmation after SEPA success](https://wordpress.org/support/topic/no-confirmation-after-sepa-success/)
 *  Thread Starter [derderderder](https://wordpress.org/support/users/derderderder/)
 * (@derderderder)
 * [7 years, 12 months ago](https://wordpress.org/support/topic/no-confirmation-after-sepa-success/#post-10297870)
 * yes, exactly. This is really frustrating. How can I solve this problem?

Viewing 3 replies - 1 through 3 (of 3 total)