Plugin Moip Assinaturas para CakePHP - Conheça e aprenda a usar
Esse plugin nos permite utilizar todos os recursos do Moip Assinaturas em suas aplicações web desenvolvidas em CakePHP.
[ Hits: 17.196 ]
Por: Fábio Marcelo de Lima em 13/02/2015 | Blog: http://www.bendit.com.br
public function createSubscription() { $this->autoRender = false; $data = '{ "code": "assinatura05", "amount": "9990", "plan" : { "code" : "PlanoGuitarpediaAnual" }, "customer" : { "code" : "cliente05" } }'; $new_client = false; $result = $this->Subscriptions->create($new_client, $data); pr($result); } public function createSubscriptionNewUser() { $this->autoRender = false; $data = '{ "code": "assinatura06", "amount": "9990", "plan": { "code": "PlanoGuitarpediaAnual" }, "customer": { "code": "cliente04", "email": "nome@exemplo.com.br", "fullname": "Nome Sobrenome", "cpf": "22222222222", "phone_number": "934343434", "phone_area_code": "11", "birthdate_day": "26", "birthdate_month": "04", "birthdate_year": "1986", "address": { "street": "Rua nome da Rua", "number": "170", "complement": "Casa", "district": "Bairro", "city": "São Paulo", "state": "SP", "country": "BRA", "zipcode": "00000000" }, "billing_info": { "credit_card": { "holder_name": "Nome Completo", "number": "4111111111111111", "expiration_month": "04", "expiration_year": "15" } } } }'; $new_client = true; $result = $this->Subscriptions->create($new_client, $data); pr($result); } public function updateSubscription($code) { $this->autoRender = false; $data = '{ "plan": { "code": "mensal" }, "amount": "9990", "next_invoice_date": { "day": "06", "month": "02", "year": "2015" } }'; $result = $this->Subscriptions->update($code, $data); pr($result); } public function listSubscriptions() { $this->autoRender = false; $result = $this->Subscriptions->listAll(); pr($result); } public function detailsSubscriptions($code = 0) { $this->autoRender = false; $result = $this->Subscriptions->details($code); pr($result); } public function suspendSubscriptions($code = 0) { $this->autoRender = false; $result = $this->Subscriptions->suspend($code); pr($result); } public function activateSubscriptions($code = 0) { $this->autoRender = false; $result = $this->Subscriptions->activate($code); pr($result); } public function cancelSubscriptions($code = 0) { $this->autoRender = false; $result = $this->Subscriptions->cancel($code); pr($result); }
Endian Firewall - Solução completa para um servidor de internet
Instalando o Gerenciador Clínico Odontológico
Instalando e configurando Magento E-commerce com Apache2 no openSUSE 11.3 64 bits do zero
Resolver problemas de Internet
Como compartilhar a tela do Ubuntu com uma Smart TV (LG, Samsung, etc.)
Descritores de Arquivos e Swappiness
Solução rápida para o problema do Network Manager conectar mas não navegar
Como instalar no Linux Jogos da Steam só para Windows
Instalando o Team Viewer no Debian Trixie - problema no Policykit
Ajuda Pra Melhoria do NFTABLES. (2)
Menu configurações e mudar plano de fundo não funcionam (6)