Skip to content

Instantly share code, notes, and snippets.

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')))
}
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)
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)
{
"ref": "123456",
"simulation": true,
"payments": [
{
"mode": "boleto",
"value": 1000,
"ref": {
"customerName": "Usuario de Teste",
"expirationDate": "01/01/2014",
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)
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;
# -*- 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"
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);
}
"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"),
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);
}