• Resolved SeFi

    (@sefi)


    Hi,

    I have an Ogone plugin by customweb.ch installed (WooCommerce OgoneCw) I followed your instructions added these lines in my theme function.php :

    function woa_custom_gateways_hook( $gateways ) {
         $gateways[] = 'paypal'; 
         $gateways[] = 'ogonecw_creditcard';
         $gateways[] = 'ogonecw_americanexpress';
    
         return $gateways;
    }
    add_filter( 'woo_cao_gateways', 'woa_custom_gateways_hook', 10, 1 );

    I see your plugin’s options for Paypal but not for the other 2 payment gateway.

    Thanks for your help,
    Tanguy

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author RVOLA

    (@rvola)

    hello @sefi

    It’s strange…
    Try to change the “10” to “999” in the add_filter

    Thread Starter SeFi

    (@sefi)

    @rvola thanks but nop still not working…

    Plugin Author RVOLA

    (@rvola)

    is it possible to send me the plugin? I can not find it on the directory

    Plugin Author RVOLA

    (@rvola)

    Have you any news ?

    Plugin Author RVOLA

    (@rvola)

    After checking the bug comes in the name given to the methods of the Ogone extension.
    This one uses capital letters, that’s why the filter did not work.

    In your example uses this :

    function woa_custom_gateways_hook( $gateways ) {
         $gateways[] = 'paypal'; 
         $gateways[] = 'OgoneCw_CreditCard';
         $gateways[] = 'OgoneCw_AmericanExpress';
    
         return $gateways;
    }
    add_filter( 'woo_cao_gateways', 'woa_custom_gateways_hook', 10, 1 );

    Here is the list with capital letters to respect in the filter for the plugin to work:

    OgoneCw_Acceptgiro
    OgoneCw_AirPlus
    OgoneCw_AmazonCheckout
    OgoneCw_AmericanExpress
    OgoneCw_Aurore
    OgoneCw_BankTransfer
    OgoneCw_Bcmc
    OgoneCw_BelfiusDirectNet
    OgoneCw_CarteBleue
    OgoneCw_CashTicket
    OgoneCw_CashUPrepaid
    OgoneCw_CbcOnline
    OgoneCw_CenteaOnline
    OgoneCw_Cofinoga
    OgoneCw_Dankort
    OgoneCw_Diners
    OgoneCw_DirectDebits
    OgoneCw_DirectEBanking
    OgoneCw_DiscoverCard
    OgoneCw_EDankort
    OgoneCw_Eps
    OgoneCw_FidorPay
    OgoneCw_Giropay
    OgoneCw_IDeal
    OgoneCw_IngHomePay
    OgoneCw_InstalmentInvoice
    OgoneCw_InterSolve
    OgoneCw_Jcb
    OgoneCw_KbcOnline
    OgoneCw_LaserCard
    OgoneCw_Maestro
    OgoneCw_MaestroUK
    OgoneCw_MasterCard
    OgoneCw_MasterPass
    OgoneCw_Mpass
    OgoneCw_OpenInvoice
    OgoneCw_PayPal
    OgoneCw_Paysafecard
    OgoneCw_PingPing
    OgoneCw_PostFinanceCard
    OgoneCw_PostFinanceEFinance
    OgoneCw_SoloCard
    OgoneCw_Threexcb
    OgoneCw_Tunz
    OgoneCw_Twint
    OgoneCw_Uatp
    OgoneCw_UnEuroCom
    OgoneCw_Visa
    OgoneCw_CreditCard

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Custom Gateway not working’ is closed to new replies.