This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"status":"sucesso", | |
"info":{ | |
"pedidos_processando_concluido":[ | |
{ | |
"ID pedido":2518, | |
"Nome Cliente":"Diogenes Junior", | |
"E-mail Cliente":"diogenesjunior.ti@gmail.com", | |
"Valor do pedido":"90.00", | |
"Valor do pedido elegível para comissão":55, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_action( 'woocommerce_payment_complete', 'custom_woocommerce_auto_complete_order' ); | |
function custom_woocommerce_auto_complete_order( $order_id ) { | |
if ( ! $order_id ) { | |
return; | |
} | |
$order = wc_get_order( $order_id ); | |
// Verifique se o pedido é para produtos digitais |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<section class="configuracoes__carteira__depositar__card configuracoes__carteira__depositar__card--NOME-DO-SEU-COLLAPSE"> | |
<header class="configuracoes__carteira__depositar__card__header"> | |
<aside> | |
<i class="fas fa-check"></i> | |
<h4>NUMERO</h4> | |
<div> | |
<h2>TITULO DA ABA</h2> | |
</div> | |
</aside> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* ------------------------------------------------------------------------------------------------ | |
* | |
* | |
* CARRINHO / RESUMO FLUTUANTE DAS APOSTAS | |
* | |
* | |
* ------------------------------------------------------------------------------------------------ | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php if(get_field("tempo_de_preparo")!=""): ?> | |
<p> | |
<b>Tempo de preparo:</b> <?php echo get_field("tempo_de_preparo") ?> | |
</p> | |
<?php endif; ?> | |
<?php if(get_field("quantidade_de_porcoes")!=""): ?> | |
<p> | |
<b>Quantidade de porções:</b> <?php echo get_field("quantidade_de_porcoes") ?> | |
</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* WordPress Query Comprehensive Reference | |
* Compiled by luetkemj - luetkemj.com | |
* | |
* CODEX: http://codex.wordpress.org/Class_Reference/WP_Query | |
* Source: http://core.trac.wordpress.org/browser/tags/3.3.1/wp-includes/query.php | |
*/ | |
$args = array( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl --location --request POST 'https://servidorseguro.cloud/istpay/cobranca/atualizar/2' \ | |
--header 'Content-Type: application/x-www-form-urlencoded' \ | |
--data-urlencode 'status=PAID' \ | |
--data-urlencode 'data_transaction={field:value,field2:value2}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var https = require('follow-redirects').https; | |
var fs = require('fs'); | |
var qs = require('querystring'); | |
var options = { | |
'method': 'POST', | |
'hostname': 'servidorseguro.cloud', | |
'path': '/istpay/cobranca/atualizar/2', | |
'headers': { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$curl = curl_init(); | |
curl_setopt_array($curl, array( | |
CURLOPT_URL => 'https://servidorseguro.cloud/istpay/cobranca/atualizar/2', | |
CURLOPT_RETURNTRANSFER => true, | |
CURLOPT_ENCODING => '', | |
CURLOPT_MAXREDIRS => 10, | |
CURLOPT_TIMEOUT => 0, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
ini_set("display_errors", FALSE ); | |
ini_set("log_errors", TRUE ); | |
ini_set("error_log","log_erros_php.log"); |
NewerOlder