access process_payment_request function
-
Hi,
I have my own direct debit process for subscriptions and I running into a problem where the function
process_payment_requestof the class Wc_gateway_eway is `protected’.This mean that when I create a new instance of this class, I get all the settings (api pw etc) however I can’t call this function on the instance of this class.
The public function process_payment is not useful for me since I believe this one is used after a Form submit.
I am just programatically adding a product and using the eway_customer_id_token to do a payment.
I was able to use the protected function by creating my own class that extends that class and then I could create a proxy function which would call the protected function.
This is an entire hack and I also had to reload all the config settings in my surrogate class.Any change you can add a public proxy function that calls the protect process_payment_request() or make the protected function public?
Cheers,
Mattijs
The topic ‘access process_payment_request function’ is closed to new replies.