​​​​​​✅ WooCommerce + PIX - Notificação gratuita direto no celular do cliente

📁 Arquivos disponíveis para download nessa aula​


​👉 ​INSTRUÇÕES BÁSICAS VÍDEO 1:

NOTIFICAÇÃO WOOCOMMERCE PIX

1- DOWNLOAD GIT, NODE, NGROK E WORDPRESS

2- ABRIR O GIT CMD

a. cd Desktop

b. mkdir botzdg_woo

c. cd botzdg_woo

d. criar js, json, html e svgs

e. npm install

f. node botzdg_post.js

g. expor o servico no ngrok

3- INJETAR PHP DENTRO DO PLUGIN

incuca-tech-pix-for-woocommerce/includes/class-wc-pix-gateway.php

==============================

$file = $pix['image'];

$caption = $pix['link'];

$order = wc_get_order($order_id);

$data = $order->get_data();

$telefonewoo = $data['billing']['phone'];

$url = 'https://e2b1-2804-3d34-5024-1a01-00-3.ngrok.io/send-media3';

$data = array('number' => 55 . $telefonewoo, 'caption' => $caption, 'file' => $file);

$options = array(

'http' => array(

'header'  => "Content-type: application/x-www-form-urlencoded\r\n",

'method'  => 'POST',

'content' => http_build_query($data)

)

);

$context  = stream_context_create($options);

$result = file_get_contents($url, false, $context);

if ($result === FALSE) { /* Handle error */ }