Advertisement
gofas

Untitled

Jun 29th, 2017
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.19 KB | None | 0 0
  1. <strong>Notificação 2128197d-a313-4ddb-bed4-806bc112556d</strong>
  2. `
  3. RESPOSTA DO SERVIDOR
  4. "<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."
  5.  
  6. CABEÇALHOS DE SAÍDA
  7. {
  8. "date": "Thu, 25 May 2017 15:30:44 GMT",
  9. "content-type": "text/html; charset=utf-8",
  10. "transfer-encoding": "chunked",
  11. "connection": "close",
  12. "set-cookie": [
  13. "__cfduid=d67373ec6f79c0eca1706a0c59fda676c1495726243; expires=Fri, 25-May-18 15:30:43 GMT; path=/; domain=.hostexample.com; HttpOnly",
  14. "WHMCS7wfEYBJYYBkD=cd4e7eeae2c1ce7fe46a78ca0c82a57a; path=/; secure; HttpOnly"
  15. ],
  16. "vary": "X-Forwarded-Proto,X-Forwarded-For",
  17. "expires": "Thu, 19 Nov 1981 08:52:00 GMT",
  18. "cache-control": "no-store, no-cache, must-revalidate, post-check=0, pre-check=0",
  19. "pragma": "no-cache",
  20. "strict-transport-security": "max-age=15552000",
  21. "x-content-type-options": "nosniff",
  22. "server": "cloudflare-nginx",
  23. "cf-ray": "3649899f8cf8241a-IAD"
  24. }`
  25.  
  26.  
  27. <strong>Transações registradas por esta fatura - API WHMCS.</strong>
  28. `Transação existente: 224158
  29.  
  30. Array
  31. (
  32. [transaction] => Array
  33. (
  34. [0] => Array
  35. (
  36. [id] => 38
  37. [userid] => 1
  38. [currency] => 0
  39. [gateway] => gofasgerencianetcartao
  40. [date] => 2017-05-25 12:25:28
  41. [description] => Pagamento aguardando aprovação da operadora do cartão.
  42. [amountin] => 0.00
  43. [fees] => 0.00
  44. [amountout] => 0.00
  45. [rate] => 1.00000
  46. [transid] => 224158
  47. [invoiceid] => 32
  48. [refundid] => 0
  49. )
  50.  
  51. )
  52.  
  53. )`
  54.  
  55.  
  56. <strong>Consulta detalhes da fatura - WHMCS API.</strong>
  57. `Array
  58. (
  59. [result] => success
  60. [invoiceid] => 32
  61. [invoicenum] =>
  62. [userid] => 1
  63. [date] => 2017-05-25
  64. [duedate] => 2017-06-04
  65. [datepaid] => 0000-00-00 00:00:00
  66. [lastcaptureattempt] => 0000-00-00 00:00:00
  67. [subtotal] => 36.80
  68. [credit] => 0.00
  69. [tax] => 0.00
  70. [tax2] => 0.00
  71. [total] => 36.80
  72. [balance] => 36.80
  73. [taxrate] => 0.00
  74. [taxrate2] => 0.00
  75. [status] => Unpaid
  76. [paymentmethod] => gofasgerencianetcartao
  77. [notes] =>
  78. [ccgateway] =>
  79. [items] => Array
  80. (
  81. [item] => Array
  82. (
  83. [0] => Array
  84. (
  85. [id] => 50
  86. [type] => DomainRegister
  87. [relid] => 7
  88. [description] => Registro de domínio - example.com - 1 Ano(s) (25/05/2017 - 24/05/2018)
  89. [amount] => 36.80
  90. [taxed] => 0
  91. )
  92.  
  93. )
  94.  
  95. )
  96.  
  97. [transactions] => Array
  98. (
  99. [transaction] => Array
  100. (
  101. [0] => Array
  102. (
  103. [id] => 38
  104. [userid] => 1
  105. [currency] => 0
  106. [gateway] => gofasgerencianetcartao
  107. [date] => 2017-05-25 12:25:28
  108. [description] => Pagamento aguardando aprovação da operadora do cartão.
  109. [amountin] => 0.00
  110. [fees] => 0.00
  111. [amountout] => 0.00
  112. [rate] => 1.00000
  113. [transid] => 224158
  114. [invoiceid] => 32
  115. [refundid] => 0
  116. )
  117.  
  118. )
  119.  
  120. )
  121.  
  122. )
  123.  
  124. Rel ID: 7
  125. Rels: 1`
  126.  
  127.  
  128. <strong>Informações do cliente enviadas à GN API - WHMCS API</strong>
  129. `Array
  130. (
  131. [name] => João João
  132. [cpf] => 12345678910
  133. [phone_number] => 123456789
  134. [birth] => 1990-11-13
  135. [email] => joao@admin.com
  136. )`
  137.  
  138.  
  139. <strong>transações geradas por essa fatura - API Gerencianet.</strong>
  140. `Essa fatura já gerou uma transação.
  141. Array
  142. (
  143. [code] => 200
  144. [data] => Array
  145. (
  146. [charge_id] => 224158
  147. [total] => 3680
  148. [paid_value] => 3680
  149. [status] => paid
  150. [custom_id] => 32
  151. [created_at] => 2017-05-25 12:25:17
  152. [notification_url] => https://painel.hostexample.com//modules/gateways/gofasgerencianetcartao/callback.php
  153. [items] => Array
  154. (
  155. [0] => Array
  156. (
  157. [name] => Registro de domínio - example.com - 1 Ano(s) (25/05/2017 - 24/05/2018)
  158. [value] => 3680
  159. [amount] => 1
  160. )
  161.  
  162. )
  163.  
  164. [history] => Array
  165. (
  166. [0] => Array
  167. (
  168. [message] => Cobrança criada
  169. [created_at] => 2017-05-25 12:25:17
  170. )
  171.  
  172. [1] => Array
  173. (
  174. [message] => Pagamento via cartão de crédito aguardando confirmação
  175. [created_at] => 2017-05-25 12:25:28
  176. )
  177.  
  178. [2] => Array
  179. (
  180. [message] => Pagamento confirmado (R$ 36,80)
  181. [created_at] => 2017-05-25 12:26:22
  182. )
  183.  
  184. )
  185.  
  186. [customer] => Array
  187. (
  188. [name] => João João
  189. [cpf] => 12345678910
  190. [birth] => 1990-11-13
  191. [email] => joao@admin.com
  192. [phone_number] => 123456789
  193. )
  194.  
  195. [payment] => Array
  196. (
  197. [method] => credit_card
  198. [created_at] => 2017-05-25 12:25:27
  199. [message] =>
  200. [credit_card] => Array
  201. (
  202. [mask] => XXXXXXXXXXXX1234
  203. [installments] => 1
  204. [installment_value] => 3680
  205. [address] => Array
  206. (
  207. [street] => Rua joão,
  208. [number] => 123
  209. [complement] =>
  210. [neighborhood] => Bairro João
  211. [city] => Vitória
  212. [state] => ES
  213. [zipcode] => 29000000
  214. )
  215.  
  216. )
  217.  
  218. )
  219.  
  220. )
  221.  
  222. )
  223.  
  224. status:
  225. `
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement