Changeset 2631192
- Timestamp:
- 11/17/2021 05:17:42 AM (4 years ago)
- Location:
- orendapay
- Files:
-
- 6 edited
-
README.md (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
-
trunk/README.md (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/woo-orendapay.php (modified) (3 diffs)
-
woo-orendapay.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
orendapay/README.md
r2621778 r2631192 19 19 20 20 - Geração de boletos bancários 21 - Checkout com Pagamento por Pix 21 - Checkout com Pagamento por Pix com confirmação de pagamento instantânea 22 22 - Checkout transparente por Cartão de Crédito 23 23 - Checkout transparente por Cartão de Débito -
orendapay/readme.txt
r2621778 r2631192 19 19 20 20 * Geração de boletos bancários 21 * Checkout com Pagamento por Pix 21 * Checkout com Pagamento por Pix com confirmação de pagamento instantânea 22 22 * Checkout transparente por Cartão de Crédito 23 23 * Checkout transparente por Cartão de Débito … … 110 110 Implementação do pagamento por PIX. 111 111 112 = 4.3 = 113 Mensagem de aprovação na hora no Checkout se pagamento via Pix. 114 112 115 == Licença == 113 116 -
orendapay/trunk/README.md
r2621778 r2631192 19 19 20 20 - Geração de boletos bancários 21 - Checkout com Pagamento por Pix 21 - Checkout com Pagamento por Pix com confirmação de pagamento instantânea 22 22 - Checkout transparente por Cartão de Crédito 23 23 - Checkout transparente por Cartão de Débito -
orendapay/trunk/readme.txt
r2621778 r2631192 19 19 20 20 * Geração de boletos bancários 21 * Checkout com Pagamento por Pix 21 * Checkout com Pagamento por Pix com confirmação de pagamento instantânea 22 22 * Checkout transparente por Cartão de Crédito 23 23 * Checkout transparente por Cartão de Débito … … 110 110 Implementação do pagamento por PIX. 111 111 112 = 4.3 = 113 Mensagem de aprovação na hora no Checkout se pagamento via Pix. 114 112 115 == Licença == 113 116 -
orendapay/trunk/woo-orendapay.php
r2621778 r2631192 823 823 { 824 824 // Save billet data in order meta. 825 add_post_meta( $order->id, 'orendapay_cod_cobranca', $dataPedido->codigo ); 825 826 add_post_meta( $order->id, 'orendapay_cod_transacao', $dataPedido->boleto_codigo ); 826 827 add_post_meta( $order->id, 'orendapay_url_boleto', $dataPedido->url ); … … 852 853 add_post_meta( $order->id, 'orendapay_situacao', $dataPedido->situacao ); 853 854 add_post_meta( $order->id, 'orendapay_cod_transacao', $dataPedido->boleto_codigo ); 855 add_post_meta( $order->id, 'orendapay_cod_cobranca', $dataPedido->codigo ); 856 854 857 } 855 858 … … 1143 1146 if (strlen($orendapay_pix_qrcode)>5) 1144 1147 { 1145 $html .= "<img src='$orendapay_pix_qrcode'><br>Chave Pix: $orendapay_pix_chave<br>"; 1148 $orendapay_cod_cobranca = get_post_meta( $order_id, 'orendapay_cod_cobranca', true ); 1149 1150 $tokenverify = md5($orendapay_cod_cobranca); 1151 1152 $html .= "<div id='alvoPAGO'><img src='$orendapay_pix_qrcode'><br>Chave Pix: $orendapay_pix_chave</div><br> 1153 1154 <script> 1155 iniciaVerificacaoPix($orendapay_cod_cobranca); 1156 var start_secs; 1157 function iniciaVerificacaoPix(cod_cobranca) 1158 { 1159 start_secs = setInterval(function() { pixVer(cod_cobranca); },6000); 1160 } 1161 function pixVer(cod_cobranca) 1162 { 1163 $.post( 1164 \"https://www.orendapay.com.br/action/frmCheckPixVer.php\", 1165 {\"cod_cobranca\":cod_cobranca,\"tokenverify\":'$tokenverify',\"url\":\"{$_SERVER['REQUEST_URI']}\"}, 1166 function (response) 1167 { 1168 var res = response.split('|'); 1169 if(res[0]=='CONCLUIDA') 1170 { 1171 chamaNotificacao(res[1]); 1172 } 1173 } 1174 ); 1175 } 1176 function chamaNotificacao(link) 1177 { 1178 clearInterval(start_secs); 1179 $('.woocommerce-message').html('<center><span style=\"font-size:20px;color:green;\">Identificamos que seu pagamento por Pix foi realizado. Obrigado.</font></center>'); 1180 } 1181 </script>"; 1146 1182 } 1147 1183 -
orendapay/woo-orendapay.php
r2621778 r2631192 12 12 * Plugin URI: https://www.orendapay.com.br 13 13 * Description: Plugin de Pagamento OrendaPay para Woocommerce 14 * Version: 4. 2.014 * Version: 4.3.0 15 15 * Author: OrendaPay Soluções Financeiras 16 16 * Author URI: https://www.orendapay.com.br … … 823 823 { 824 824 // Save billet data in order meta. 825 add_post_meta( $order->id, 'orendapay_cod_cobranca', $dataPedido->codigo ); 825 826 add_post_meta( $order->id, 'orendapay_cod_transacao', $dataPedido->boleto_codigo ); 826 827 add_post_meta( $order->id, 'orendapay_url_boleto', $dataPedido->url ); … … 852 853 add_post_meta( $order->id, 'orendapay_situacao', $dataPedido->situacao ); 853 854 add_post_meta( $order->id, 'orendapay_cod_transacao', $dataPedido->boleto_codigo ); 855 add_post_meta( $order->id, 'orendapay_cod_cobranca', $dataPedido->codigo ); 856 854 857 } 855 858 … … 1143 1146 if (strlen($orendapay_pix_qrcode)>5) 1144 1147 { 1145 $html .= "<img src='$orendapay_pix_qrcode'><br>Chave Pix: $orendapay_pix_chave<br>"; 1148 $orendapay_cod_cobranca = get_post_meta( $order_id, 'orendapay_cod_cobranca', true ); 1149 1150 $tokenverify = md5($orendapay_cod_cobranca); 1151 1152 $html .= "<div id='alvoPAGO'><img src='$orendapay_pix_qrcode'><br>Chave Pix: $orendapay_pix_chave</div><br> 1153 1154 <script> 1155 iniciaVerificacaoPix($orendapay_cod_cobranca); 1156 var start_secs; 1157 function iniciaVerificacaoPix(cod_cobranca) 1158 { 1159 start_secs = setInterval(function() { pixVer(cod_cobranca); },6000); 1160 } 1161 function pixVer(cod_cobranca) 1162 { 1163 $.post( 1164 \"https://www.orendapay.com.br/action/frmCheckPixVer.php\", 1165 {\"cod_cobranca\":cod_cobranca,\"tokenverify\":'$tokenverify',\"url\":\"{$_SERVER['REQUEST_URI']}\"}, 1166 function (response) 1167 { 1168 var res = response.split('|'); 1169 if(res[0]=='CONCLUIDA') 1170 { 1171 chamaNotificacao(res[1]); 1172 } 1173 } 1174 ); 1175 } 1176 function chamaNotificacao(link) 1177 { 1178 clearInterval(start_secs); 1179 $('.woocommerce-message').html('<center><span style=\"font-size:20px;color:green;\">Identificamos que seu pagamento por Pix foi realizado. Obrigado.</font></center>'); 1180 } 1181 </script>"; 1146 1182 } 1147 1183
Note: See TracChangeset
for help on using the changeset viewer.