Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <strong>Notificação 2128197d-a313-4ddb-bed4-806bc112556d</strong>
- `
- RESPOSTA DO SERVIDOR
- "<br/>Notificacao:<br/><pre>Array\n(\n [id] => 3\n [type] => charge\n [custom_id] => 32\n [status] => Array\n (\n [current] => paid\n [previous] => waiting\n )\n\n [identifiers] => Array\n (\n [charge_id] => 224158\n )\n\n [created_at] => 2017-05-25 12:26:22\n [value] => 3680\n)\n<br>$notificationData type: charge<br>$paymentAmount: 3680<br></pre><br/>Dados da Fatura:<br/><pre>Array\n(\n [result] => success\n [invoiceid] => 32\n [invoicenum] => \n [userid] => 1\n [date] => 2017-05-25\n [duedate] => 2017-06-04\n [datepaid] => 0000-00-00 00:00:00\n [lastcaptureattempt] => 0000-00-00 00:00:00\n [subtotal] => 36.80\n [credit] => 0.00\n [tax] => 0.00\n [tax2] => 0.00\n [total] => 36.80\n [balance] => 36.80\n [taxrate] => 0.00\n [taxrate2] => 0.00\n [status] => Unpaid\n [paymentmethod] => gofasgerencianetcartao\n [notes] => \n [ccgateway] => \n [items] => Array\n (\n [item] => Array\n (\n [0] => Array\n (\n [id] => 50\n [type] => DomainRegister\n [relid] => 7\n [description] => Registro de domínio - example.net - 1 Ano(s) (25/05/2017 - 24/05/2018)\n [amount] => 36.80\n [taxed] => 0\n )\n\n )\n\n )\n\n [transactions] => Array\n (\n [transaction] => Array\n (\n [0] => Array\n (\n [id] => 38\n [userid] => 1\n [currency] => 0\n [gateway] => gofasgerencianetcartao\n [date] => 2017-05-25 12:25:28\n [description] => Pagamento aguardando aprovação da operadora do cartão.\n [amountin] => 0.00\n [fees] => 0.00\n [amountout] => 0.00\n [rate] => 1.00000\n [transid] => 224158\n [invoiceid] => 32\n [refundid] => 0\n )\n\n )\n\n )\n\n)\n</pre><br/>Dados do serviço/produto:<br/><pre>Array\n(\n [result] => success\n [clientid] => \n [serviceid] => \n [pid] => \n [domain] => \n [totalresults] => 1\n [startnumber] => 0\n [numreturned] => 1\n [products] => Array\n (\n [product] => Array\n (\n [0] => Array\n (\n [id] => 3\n [clientid] => 1\n [orderid] => 8\n [pid] => 1\n [regdate] => 2017-05-25\n [name] => Wordpress I\n [translated_name] => Wordpress I\n [groupname] => Hospedagem\n [translated_groupname] => Hospedagem\n [domain] => anotherdomain.com\n [dedicatedip] => \n [serverid] => 1\n [servername] => server-host\n [serverip] => 123.456.789.10\n [serverhostname] => server-host.example.com\n [suspensionreason] => \n [firstpaymentamount] => 61.00\n [recurringamount] => 61.00\n [paymentmethod] => gofasgerencianetcartao\n [paymentmethodname] => Cartão de Crédito\n [billingcycle] => Monthly\n [nextduedate] => 2017-06-25\n [status] => Active\n [username] => anotherdom\n [password] => 123456789\n [subscriptionid] => 8330\n [promoid] => 0\n [overideautosuspend] => 0\n [overidesuspenduntil] => 0000-00-00\n [ns1] => \n [ns2] => \n [assignedips] => \n [notes] => \n [diskusage] => 0\n [disklimit] => 0\n [bwusage] => 0\n [bwlimit] => 0\n [lastupdate] => 0000-00-00 00:00:00\n [customfields] => Array\n (\n [customfield] => Array\n (\n )\n\n )\n\n [configoptions] => Array\n (\n [configoption] => Array\n (\n )\n\n )\n\n )\n\n )\n\n )\n\n)\n<br>$SendedInvoiceAmount: 3680</pre>Notificação ignorada."
- CABEÇALHOS DE SAÍDA
- {
- "date": "Thu, 25 May 2017 15:30:44 GMT",
- "content-type": "text/html; charset=utf-8",
- "transfer-encoding": "chunked",
- "connection": "close",
- "set-cookie": [
- "__cfduid=d67373ec6f79c0eca1706a0c59fda676c1495726243; expires=Fri, 25-May-18 15:30:43 GMT; path=/; domain=.hostexample.com; HttpOnly",
- "WHMCS7wfEYBJYYBkD=cd4e7eeae2c1ce7fe46a78ca0c82a57a; path=/; secure; HttpOnly"
- ],
- "vary": "X-Forwarded-Proto,X-Forwarded-For",
- "expires": "Thu, 19 Nov 1981 08:52:00 GMT",
- "cache-control": "no-store, no-cache, must-revalidate, post-check=0, pre-check=0",
- "pragma": "no-cache",
- "strict-transport-security": "max-age=15552000",
- "x-content-type-options": "nosniff",
- "server": "cloudflare-nginx",
- "cf-ray": "3649899f8cf8241a-IAD"
- }`
- <strong>Transações registradas por esta fatura - API WHMCS.</strong>
- `Transação existente: 224158
- Array
- (
- [transaction] => Array
- (
- [0] => Array
- (
- [id] => 38
- [userid] => 1
- [currency] => 0
- [gateway] => gofasgerencianetcartao
- [date] => 2017-05-25 12:25:28
- [description] => Pagamento aguardando aprovação da operadora do cartão.
- [amountin] => 0.00
- [fees] => 0.00
- [amountout] => 0.00
- [rate] => 1.00000
- [transid] => 224158
- [invoiceid] => 32
- [refundid] => 0
- )
- )
- )`
- <strong>Consulta detalhes da fatura - WHMCS API.</strong>
- `Array
- (
- [result] => success
- [invoiceid] => 32
- [invoicenum] =>
- [userid] => 1
- [date] => 2017-05-25
- [duedate] => 2017-06-04
- [datepaid] => 0000-00-00 00:00:00
- [lastcaptureattempt] => 0000-00-00 00:00:00
- [subtotal] => 36.80
- [credit] => 0.00
- [tax] => 0.00
- [tax2] => 0.00
- [total] => 36.80
- [balance] => 36.80
- [taxrate] => 0.00
- [taxrate2] => 0.00
- [status] => Unpaid
- [paymentmethod] => gofasgerencianetcartao
- [notes] =>
- [ccgateway] =>
- [items] => Array
- (
- [item] => Array
- (
- [0] => Array
- (
- [id] => 50
- [type] => DomainRegister
- [relid] => 7
- [description] => Registro de domínio - example.com - 1 Ano(s) (25/05/2017 - 24/05/2018)
- [amount] => 36.80
- [taxed] => 0
- )
- )
- )
- [transactions] => Array
- (
- [transaction] => Array
- (
- [0] => Array
- (
- [id] => 38
- [userid] => 1
- [currency] => 0
- [gateway] => gofasgerencianetcartao
- [date] => 2017-05-25 12:25:28
- [description] => Pagamento aguardando aprovação da operadora do cartão.
- [amountin] => 0.00
- [fees] => 0.00
- [amountout] => 0.00
- [rate] => 1.00000
- [transid] => 224158
- [invoiceid] => 32
- [refundid] => 0
- )
- )
- )
- )
- Rel ID: 7
- Rels: 1`
- <strong>Informações do cliente enviadas à GN API - WHMCS API</strong>
- `Array
- (
- [name] => João João
- [cpf] => 12345678910
- [phone_number] => 123456789
- [birth] => 1990-11-13
- [email] => joao@admin.com
- )`
- <strong>transações geradas por essa fatura - API Gerencianet.</strong>
- `Essa fatura já gerou uma transação.
- Array
- (
- [code] => 200
- [data] => Array
- (
- [charge_id] => 224158
- [total] => 3680
- [paid_value] => 3680
- [status] => paid
- [custom_id] => 32
- [created_at] => 2017-05-25 12:25:17
- [notification_url] => https://painel.hostexample.com//modules/gateways/gofasgerencianetcartao/callback.php
- [items] => Array
- (
- [0] => Array
- (
- [name] => Registro de domínio - example.com - 1 Ano(s) (25/05/2017 - 24/05/2018)
- [value] => 3680
- [amount] => 1
- )
- )
- [history] => Array
- (
- [0] => Array
- (
- [message] => Cobrança criada
- [created_at] => 2017-05-25 12:25:17
- )
- [1] => Array
- (
- [message] => Pagamento via cartão de crédito aguardando confirmação
- [created_at] => 2017-05-25 12:25:28
- )
- [2] => Array
- (
- [message] => Pagamento confirmado (R$ 36,80)
- [created_at] => 2017-05-25 12:26:22
- )
- )
- [customer] => Array
- (
- [name] => João João
- [cpf] => 12345678910
- [birth] => 1990-11-13
- [email] => joao@admin.com
- [phone_number] => 123456789
- )
- [payment] => Array
- (
- [method] => credit_card
- [created_at] => 2017-05-25 12:25:27
- [message] =>
- [credit_card] => Array
- (
- [mask] => XXXXXXXXXXXX1234
- [installments] => 1
- [installment_value] => 3680
- [address] => Array
- (
- [street] => Rua joão,
- [number] => 123
- [complement] =>
- [neighborhood] => Bairro João
- [city] => Vitória
- [state] => ES
- [zipcode] => 29000000
- )
- )
- )
- )
- )
- status:
- `
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement