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
| {"amount":1910,"currency":"BRL","description":"Pedido # 100000047 na loja Default Store View","token":"668c871537e84b698d1d9a6c5d02b077","capture":1,"statement_descriptor":"Default Store View","installment_plan":{"number_installments":12},"io_seller_id":"07b53180-6e59-47a1-b1c4-97374fbb6de0","payment_type":"credit","reference_id":"100000047","products":[{"name":"Teste","code":"teste","quantity":1,"amount":1910}],"antifraud_sessid":"rh39fogam2k5b2gfa9ojrfmm62","shipping":{"taxpayer_id":"07903612999","firstname":"junior","lastname":"maia","address_1":"S\u00e3o jose","address_2":"451","address_3":"----------","postal_code":"80050350","city":"Curitiba","state":"PR","client_type":"pf","phone_number":"41988062315"}} |
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
| { | |
| "message":"success", | |
| "hasError":false, | |
| "events":[ | |
| { | |
| "success":false, | |
| "endpoint":"https://mcprod.accu-chek.com.br/paymee/callback/index/", | |
| "status":"HTTP_STATUS_NOT_EQUALS_200", | |
| "type":"PAYMENT_CONFIRMATION", | |
| "request":{ |
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
| $xml = simplexml_load_string($response); | |
| $arrayData = xmlToArray($xml); | |
| $envelope = $arrayData['envelope']; | |
| $body = $envelope['soap-env:body']; | |
| $pesquisarresponse = $body['pesquisarresponse']; | |
| $return = $pesquisarresponse['return']; | |
| $dados = $return['dados']; | |
| $tpreco = $dados['tpreco']; | |
| Mage::log($tpreco); |
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
| $parameters = new stdClass(); | |
| $parameters->TIPTRA = 1; | |
| $parameters->CNPJCPF = '96319876000174'; | |
| $parameters->MUNORI = 'SAO PAULO'; | |
| $parameters->ESTORI = 'SP'; | |
| $parameters->SEGPROD = '000004'; | |
| $parameters->QTDVOL = 1; | |
| $parameters->VALMER = number_format(100,2,'.',''); | |
| $parameters->PESO = number_format(100,2,'.',''); | |
| $parameters->METRO3 = number_format(100,2,'.',''); |
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
| { | |
| "applied_rule_ids": "12", | |
| "base_currency_code": "BRL", | |
| "base_discount_amount": 0, | |
| "base_grand_total": 99.9, | |
| "base_discount_tax_compensation_amount": 0, | |
| "base_shipping_amount": 0, | |
| "base_shipping_discount_amount": 0, | |
| "base_shipping_discount_tax_compensation_amnt": 0, | |
| "base_shipping_incl_tax": 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
| { | |
| "applied_rule_ids": "12", | |
| "base_currency_code": "BRL", | |
| "base_discount_amount": 0, | |
| "base_grand_total": 289.9, | |
| "base_discount_tax_compensation_amount": 0, | |
| "base_shipping_amount": 0, | |
| "base_shipping_discount_amount": 0, | |
| "base_shipping_discount_tax_compensation_amnt": 0, | |
| "base_shipping_incl_tax": 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
| public function createExOriginal($data) { | |
| $customer_id = $data['customer_id']; | |
| $customer = Mage::getModel('customer/customer')->load($customer_id);/*$customerId is the id of the customer who is placing the order, it can be passed as an argument to the function place()*/ | |
| $transaction = Mage::getModel('core/resource_transaction'); | |
| $storeId = $customer->getStoreId(); | |
| $reservedOrderId = Mage::getSingleton('eav/config')->getEntityType('order')->fetchNewIncrementId($storeId); | |
| $this->registerOrderAnymarket($data['anymarket_id'], $reservedOrderId, $data['oi']); |
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
| <script src="https://code.jquery.com/jquery-1.9.1.min.js"></script> | |
| <script type="text/javascript"> | |
| $( document ).ready(function() { | |
| obj = | |
| [ | |
| { | |
| "codigo": 8, | |
| "descricao": "Etiquetas Pendentes", | |
| "total": 1, |
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 function process($observer) | |
| { | |
| $rule = $observer->getEvent()->getRule(); | |
| $item = $observer->getEvent()->getItem(); | |
| if (!$item->getId()) { | |
| return false; | |
| } | |
| Mage::helper('amrules')->addPassedItem($item->getId()); |
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
| dataLayer | |
| [ | |
| { | |
| "customerLoggedIn": 1, | |
| "customerId": "9589", | |
| "customerEmail": "comoquepode@gmail.com", | |
| "customerFirstName": "Junior", | |
| "customerLastName": "Maia", | |
| "customerGroupId": "1", | |
| "customerGroupCode": "GENERAL", |