Title: Sofort Button
Last modified: May 6, 2021

---

# Sofort Button

 *  Resolved [bouncern](https://wordpress.org/support/users/bouncern/)
 * (@bouncern)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/sofort-button/)
 * ref. ‘Resolved’ topic “Sofort Button – Legitimate? URGENT” (opened April 7th 
   2021)
 * Hello,
 * We too need to remove this SOFORT button from PayPal, but your resolution of “
   Add the following filter to your WP instance… ” is not something we are confident
   of doing.
 * Can you not make this an option on the Woocomerce >> Payments settings?
 * I suspect that there will many others in our position who need an ‘non-hacking’
   solution too!
 * Many thanks,
    Nick

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

 *  [Christine, SkyVerge Support](https://wordpress.org/support/users/christineskyverge/)
 * (@christineskyverge)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/sofort-button/#post-14413862)
 * Hi [@bouncern](https://wordpress.org/support/users/bouncern/)
 * Thanks for getting in touch about our Braintree plugin. I’m happy to help out
   here 🙂
 * Our engineers have investigated this and have concluded that for a short-term
   solution, adding an option to uncheck Sofort in WooCommerce > Payments may not
   be the best way forward.
 * This is because PayPal options are generated based on the customer’s eligibility
   and which PayPal buttons are loaded is controlled by them via things like geolocation.
   So we would have to add an option for each PayPal payment method, which would
   be a huge amount and would not be user-friendly.
 * A longer-term solution would require more investigation as we’d have to query
   them on PayPal with an API call. This is something that our product team needs
   to look into more.
 * In the meantime, the filter is a short-term solution for merchants who would 
   like to disable that.
 * That said, I’ll be happy to provide detailed instructions on how to implement
   the filter.
 * How does that sound?
 * Thanks!
    Christine
 *  Thread Starter [bouncern](https://wordpress.org/support/users/bouncern/)
 * (@bouncern)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/sofort-button/#post-14436093)
 * Thanks for your reply Christine – I still don’t really understand why the sofort
   button is displaying for non-German customers/sites (eg. it displays on our UK
   and USA sites for local custiomers)?
 * however, for the time being, please could you send me some detailed instructions
   on the filter solution (and I’ll find an IT person who has the confidence to 
   implement it!)
 * Many thanks,
 * Nick
 * I
 *  [Christine, SkyVerge Support](https://wordpress.org/support/users/christineskyverge/)
 * (@christineskyverge)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/sofort-button/#post-14440490)
 * [@bouncern](https://wordpress.org/support/users/bouncern/)
 * That’s quite interesting that Sofort is showing for non-German customers! Though
   I recommend reaching out to PayPal for that as they control which payment options
   show up for your customers. If they recommend anything to do with the plugin,
   please let us know and we’ll be happy to review their suggestion 🙂
 * Please find the instructions here at the section **wc_braintree_paypal_disabled_funding_options**:
   [https://docs.woocommerce.com/document/braintree-for-woocommerce-action-and-filter-hooks/#section-15](https://docs.woocommerce.com/document/braintree-for-woocommerce-action-and-filter-hooks/#section-15)
 * Would you please let me know if that helps you out? I’d be happy to provide more
   detail if you’d like!
 * Thanks!
 *  Thread Starter [bouncern](https://wordpress.org/support/users/bouncern/)
 * (@bouncern)
 * [5 years ago](https://wordpress.org/support/topic/sofort-button/#post-14449938)
 * Hi Christine,
 * Sorry, but I’m completely lost here!
 * ————————-
    1. (ref.
 * > “Please find the instructions here at the section wc_braintree_paypal_disabled_funding_options:
   > [https://docs.woocommerce.com/document/braintree-for-woocommerce-action-and-filter-hooks/#section-15](https://docs.woocommerce.com/document/braintree-for-woocommerce-action-and-filter-hooks/#section-15))”
 * Where do we put these filters/hooks (or whatever they are!)?
 * 2. In the other thread, you stated:
 * > “Add the following filter to your WP instance, replacing {funding} with the
   > value copied above. Here I’ve already replaced ‘funding’ with ‘sofort’ for 
   > you:”
 * This is different to the first point above? And what is “…your WP instance”?
   ————————-
 * As I originally mentioned, I’m afraid you’re dealing with very inexperienced 
   people here!
 * Many thanks,
    Nick
 *  [Christine, SkyVerge Support](https://wordpress.org/support/users/christineskyverge/)
 * (@christineskyverge)
 * [5 years ago](https://wordpress.org/support/topic/sofort-button/#post-14460749)
 * [@bouncern](https://wordpress.org/support/users/bouncern/)
 * Hi Nick!
 * I’m sorry for not being clearer! Please try the example snippet and instructions
   below:
    1. Install the Code Snippets plugin to your site: [https://wordpress.org/plugins/code-snippets/](https://wordpress.org/plugins/code-snippets/)
    2. Once the Code Snippets plugin is activated, from your WordPress admin, go to**
       Snippets > Add New**.
    3. For the title, enter: Braintree disable Sofort.
    4. For the code, please copy and paste this:
    5.     ```
           add_filter( 'wc_braintree_paypal_disabled_funding_options', function( $disabled_funding_options ){
       
               $disabled_funding_options[] = 'sofort';
               return $disabled_funding_options;
       
           });
           ```
       
    6. Enable **Run snippet everywhere**. (This should be enabled by default)
    7. Click **Save Changes and Activate.**
 * Could you please try that and let me know how it goes?
 * Thanks!
    Christine
    -  This reply was modified 5 years ago by [Christine, SkyVerge Support](https://wordpress.org/support/users/christineskyverge/).
 *  [Christine, SkyVerge Support](https://wordpress.org/support/users/christineskyverge/)
 * (@christineskyverge)
 * [5 years ago](https://wordpress.org/support/topic/sofort-button/#post-14487924)
 * [@bouncern](https://wordpress.org/support/users/bouncern/)
 * Hi Nick,
 * It has been a long time since we heard from you, so I’m going to mark this topic
   as resolved.
 * If you’re still experiencing issues please [take a look at our documentation](https://docs.woocommerce.com/document/woocommerce-gateway-paypal-powered-by-braintree/)
   for more information and [create a new thread](https://wordpress.org/support/plugin/woocommerce-gateway-paypal-powered-by-braintree/#new-post)
   if you have further questions.
 * Thanks,
    Christine 🙂
 *  Thread Starter [bouncern](https://wordpress.org/support/users/bouncern/)
 * (@bouncern)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/sofort-button/#post-14585233)
 * Christine,
 * Sorry for the late, late reply – we’ve only just got around to installing it,
   and the good news is it all works perfectly!
 * Many thanks for all your help and patience!
 * Rgds,
    Nick

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

The topic ‘Sofort Button’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce-gateway-paypal-powered-by-braintree/assets/icon-
   256x256.png?rev=3234800)
 * [Braintree for WooCommerce Payment Gateway](https://wordpress.org/plugins/woocommerce-gateway-paypal-powered-by-braintree/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-gateway-paypal-powered-by-braintree/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-gateway-paypal-powered-by-braintree/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-gateway-paypal-powered-by-braintree/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-gateway-paypal-powered-by-braintree/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-gateway-paypal-powered-by-braintree/reviews/)

 * 7 replies
 * 2 participants
 * Last reply from: [bouncern](https://wordpress.org/support/users/bouncern/)
 * Last activity: [4 years, 11 months ago](https://wordpress.org/support/topic/sofort-button/#post-14585233)
 * Status: resolved