This file contains hidden or 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
if(isset($this->gatewayInfos['BoletoUrl'])) { //exist Boleto URL? | |
$returnArray = array('redirect' => URI::build_url(array('comprar', 'retorno'), array('boleto' => $this->gatewayInfos['BoletoUrl']), false, 'secure')) | |
} elseif(isset($this->gatewayInfos['PaypalUrl'])) { //Exist Paypal URL? | |
$returnArray = array('redirect' => URI::build_url(array('comprar', 'retorno'), array('paypal' => $this->gatewayInfos['PaypalUrl']), false, 'secure')) | |
} else { // redirect norm|l | |
$returnArray = array('redirect' => URI::build_url(array('comprar', 'retorno'))) | |
} |
This file contains hidden or 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
at org.mule.execution.ValidateTransactionalStateInterceptor.execute(ValidateTransactionalStateInterceptor.java:40) | |
at org.mule.execution.IsolateCurrentTransactionInterceptor.execute(IsolateCurrentTransactionInterceptor.java:41) | |
at org.mule.execution.ExternalTransactionInterceptor.execute(ExternalTransactionInterceptor.java:48) | |
at org.mule.execution.RethrowExceptionInterceptor.execute(RethrowExceptionInterceptor.java:28) | |
at org.mule.execution.RethrowExceptionInterceptor.execute(RethrowExceptionInterceptor.java:13) | |
at org.mule.execution.TransactionalErrorHandlingExecutionTemplate.execute(TransactionalErrorHandlingExecutionTemplate.java:109) | |
at org.mule.execution.FlowProcessingPhase$1.run(FlowProcessingPhase.java:62) | |
at org.mule.transport.TrackingWorkManager$TrackeableWork.run(TrackingWorkManager.java:267) | |
at org.mule.work.WorkerContext.run(WorkerContext.java:286) | |
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895) |
This file contains hidden or 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
at org.mule.execution.ValidateTransactionalStateInterceptor.execute(ValidateTransactionalStateInterceptor.java:40) | |
at org.mule.execution.IsolateCurrentTransactionInterceptor.execute(IsolateCurrentTransactionInterceptor.java:41) | |
at org.mule.execution.ExternalTransactionInterceptor.execute(ExternalTransactionInterceptor.java:48) | |
at org.mule.execution.RethrowExceptionInterceptor.execute(RethrowExceptionInterceptor.java:28) | |
at org.mule.execution.RethrowExceptionInterceptor.execute(RethrowExceptionInterceptor.java:13) | |
at org.mule.execution.TransactionalErrorHandlingExecutionTemplate.execute(TransactionalErrorHandlingExecutionTemplate.java:109) | |
at org.mule.execution.FlowProcessingPhase$1.run(FlowProcessingPhase.java:62) | |
at org.mule.transport.TrackingWorkManager$TrackeableWork.run(TrackingWorkManager.java:267) | |
at org.mule.work.WorkerContext.run(WorkerContext.java:286) | |
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895) |
This file contains hidden or 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
{ | |
"ref": "123456", | |
"simulation": true, | |
"payments": [ | |
{ | |
"mode": "boleto", | |
"value": 1000, | |
"ref": { | |
"customerName": "Usuario de Teste", | |
"expirationDate": "01/01/2014", |
This file contains hidden or 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
array (size=24) | |
'itxQuantidadeCompra' => string '1' (length=1) | |
'ihdValorPromocional' => string '785.00' (length=6) | |
'ihdOpcaoOferta' => string '1387990' (length=7) | |
'ihdOpcaoOfertaPrincipal' => string '1' (length=1) | |
'ihdTaxa' => string '180' (length=3) | |
'ihdUrlObterCupom' => string 'http://hu.fb-fin-dev/ajax/obter-cupom' (length=37) | |
'ihdUrlValidaCupom' => string 'http://hu.fb-fin-dev/comprar/cupom?oft=64722&op=1387990' (length=55) | |
'ihdDescontoValor' => string '0' (length=1) | |
'ihdDescontoTipo' => string '' (length=0) |
This file contains hidden or 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
server { | |
listen 80; | |
server_name dev.mercosultextil.com.br; | |
access_log /var/log/nginx/loja-dev-mercosultextil-access.log main; | |
error_log /var/log/nginx/loja-dev-mercosultextil-error.log error; | |
client_max_body_size 16M; |
This file contains hidden or 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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# Vagrantfile Hotel Urbano! | |
VAGRANTFILE_API_VERSION = "2" | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
#pacote do hotelurbano (ubuntu LAMP 12.04) | |
config.vm.box = "hotelurbano_centos" |
This file contains hidden or 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
public static function getAnswersByDateAndOperator(\MongoDate $dataStart, \MongoDate $dataEnd, \MongoId $operatorId) { | |
$db = \Fuel\Core\Mongo_Db::instance(); | |
return $db->where(array('ticket_answers.user_id' => $operatorId)) | |
->where_gte('ticket_answers.date', $dataStart) | |
->where_lte('ticket_answers.date', $dataEnd) | |
->get(\Model\Ticket::$_table_name); | |
} |
This file contains hidden or 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
"ticket_answers" : [ | |
{ | |
"user_id" : ObjectId("543bee69b80de4fc068b4567"), | |
"date" : ISODate("2014-10-27T17:08:06.073Z"), | |
"reply" : "Novo Arquivo Adicionado: <a href=\"https://painel-tickets.s3.amazonaws.com/2014/10/27/Selection_020.png\" class=\"btn btn-info btn-sm\"><i class=\"fa fa-cloud fa-fw\"></i> Download </a>", | |
"hours" : "00:00", | |
"type" : "file" | |
}, | |
{ | |
"user_id" : ObjectId("543bee69b80de4fc068b4567"), |
This file contains hidden or 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
public static function getAnswersByDateAndOperator(\MongoDate $dataStart, \MongoDate $dataEnd, \MongoId $operatorId) { | |
$db = \Fuel\Core\Mongo_Db::instance(); | |
return $db->where(array('ticket_answers.user_id' => $operatorId)) | |
->where_between('ticket_answers.date', $dataStart, $dataEnd) | |
->get(\Model\Ticket::$_table_name); | |
} |