Woocommerce open popup in process_payment
-
I am implementing a custom payment plugin that extends Woocommerce. When the user clicks on the checkout button, I need to fetch a QR code and display it in a modal.
public function process_payment() { ... try { $response = json_decode($this->getQr('url')); } catch (Exception $e) { echo $e->getMessage(); die(); } $url = $response->url; $qr = $response->qr_code; }
I am getting the response but have no idea how to make the popup appear since I have limited knowledge of WordPress and Woocommerce
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Woocommerce open popup in process_payment’ is closed to new replies.