Braintree payment not showing in settings
-
I’m building a plugin that sends orders to a 3rd party service.
In order to integrate it with Braintree, I’m adding certain settings, based on which I execute the calls.
For that, I need to list all the payment gateways. First I tried using
WC()->payment_gateways()
but for some odd reason, that broke the Payment settings screen. When I went toadmin.php?page=wc-settings&tab=checkout§ion=braintree_credit_card
that page was empty.So instead, I used
new WC_Payment_Gateways();
and then get the gateways usingget_available_payment_gateways()
method. This only returns the 4 default payment gateways.I don’t see
WC_Gateway_Braintree_Credit_Card
orWC_Gateway_Braintree_PayPal
.Is the plugin not registering them correctly? Or am I missing how to fetch the available payment gateways from WooCommerce?
When I use this with Corvus PG plugin I can see it in the list just fine.
- The topic ‘Braintree payment not showing in settings’ is closed to new replies.