Advertisement
thiagolopes

Desconto fatura WHMCS

Jun 12th, 2018
606
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 21.84 KB | None | 0 0
  1. Você está vendo essas informações na tela por quê a opção "debug" do módulo Gofas Gerencianet Boleto está ativa.
  2. Operações bem sucedidas possuem títulos verdes e erros são destacados em vermelho
  3.  
  4. Saiba mais sobre como diagnosticar erros e coletar informações para suporte neste link
  5.  
  6. Veja várias soluções para dificuldades comuns no fórum de suporte do módulo.
  7.  
  8. Todas as configurações do módulo
  9.  
  10. Array
  11. (
  12. [companyname] => WebSiteShop.com.br
  13. [systemurl] => https://support.websiteshop.com.br/areacliente/
  14. [langpaynow] => Pagar agora
  15. [admin] => thiago.lopes
  16. [cancelbillet] =>
  17. [clientid] => Client_Id_173f281865456ce19b81cbf40936ebc3bc87684e
  18. [clientidsandbox] => Client_Id_e227f6109314e5d0819141b889aaa6d1376ef061
  19. [clientsecret] => Client_Secret_4d2ebeec9cf48e9a57621a3371b9f060ce8cbbea
  20. [clientsecretsandbox] => Client_Secret_a25ce7489e10eafca896423f5cd8c5e1990b915e
  21. [convertto] =>
  22. [customfieldcnpj] =>
  23. [customfieldcpf] => 0
  24. [customfielddescontotipo] => 2
  25. [customfielddescontovalor] => 1
  26. [debugmode] => on
  27. [descontooutaxa] => 2
  28. [diasantesvencadddesconto] =>
  29. [diasparavencimento] =>
  30. [emailonerror] =>
  31. [exibedescontooutaxa] => on
  32. [fee] => 2.45
  33. [footer] =>
  34. [instruction1] => Após vencimento aceitar pagamento somente no banco emissor.
  35. [instruction2] => Não cobrar juros após o vencimento.
  36. [instruction3] => Não cobrar multa após o vencimento.
  37. [instruction4] => Aceitar apenas pagamento em dinheiro.
  38. [juros] =>
  39. [message] =>
  40. [minimunamount] =>
  41. [multa] =>
  42. [name] => Boleto
  43. [paybutton] =>
  44. [redirecttobillet] =>
  45. [requirecnpjandcpf] =>
  46. [separator_1] =>
  47. [separator_2] =>
  48. [separator_3] =>
  49. [separator_4] =>
  50. [separator_5] =>
  51. [separator_6] =>
  52. [showbarcode] =>
  53. [showduedate] =>
  54. [testmode] => on
  55. [tipodescontooutaxa] => 2
  56. [type] => Invoices
  57. [valordescontooutaxa] => 1,00
  58. [visible] => on
  59. [paymentmethod] => gofasgerencianetboleto
  60. [whmcsVersion] => 7.2.3-release.1
  61. [invoiceid] => 165
  62. [invoicenum] => 165
  63. [amount] => 9.99
  64. [description] => WebSiteShop.com.br - Fatura #165
  65. [returnurl] => https://support.websiteshop.com.br/areacliente//viewinvoice.php?id=165
  66. [dueDate] => 2018-06-04
  67. [clientdetails] => Array
  68. (
  69. [userid] => 18
  70. [id] => 18
  71. [uuid] => 1dde19b7-ff1c-460c-b8d3-e8d595c1ae98
  72. [firstname] => Carlos Eduardo
  73. [lastname] => Barbosa
  74. [fullname] => Carlos Eduardo Barbosa
  75. [companyname] => Ministério Apostólico Restaurando Cidades
  76. [email] => marcsuavida@gmail.com
  77. [address1] => Rua Jabuticaba (Antiga 19), 10
  78. [address2] => Araújo de Cosmos
  79. [city] => Rio de Janeiro
  80. [fullstate] => RJ
  81. [state] => RJ
  82. [postcode] => 23061-200
  83. [countrycode] => BR
  84. [country] => BR
  85. [phonenumber] => (21) 98686.1203
  86. [password] => $2y$10$2xvXl18/PWKT.BtwW7j4oeB4QpECMGNO5R0Azg85Vm0dywKIKnTiG
  87. [model] => WHMCS\User\Client Object
  88. (
  89. [table:protected] => tblclients
  90. [columnMap:protected] => Array
  91. (
  92. [passwordHash] => password
  93. [twoFactorAuthModule] => authmodule
  94. [twoFactorAuthData] => authdata
  95. [currencyId] => currency
  96. [defaultPaymentGateway] => defaultgateway
  97. [overrideLateFee] => latefeeoveride
  98. [overrideOverdueNotices] => overideduenotices
  99. [disableAutomaticCreditCardProcessing] => disableautocc
  100. [billingContactId] => billingcid
  101. [securityQuestionId] => securityqid
  102. [securityQuestionAnswer] => securityqans
  103. [creditCardType] => cardtype
  104. [creditCardLastFourDigits] => cardlastfour
  105. [creditCardExpiryDate] => expdate
  106. [storedBankNameCrypt] => bankname
  107. [storedBankTypeCrypt] => banktype
  108. [storedBankCodeCrypt] => bankcode
  109. [storedBankAccountCrypt] => bankacct
  110. [paymentGatewayToken] => gatewayid
  111. [lastLoginDate] => lastlogin
  112. [lastLoginIp] => ip
  113. [lastLoginHostname] => host
  114. [passwordResetKey] => pwresetkey
  115. [passwordResetKeyRequestDate] => pwresetexpiry
  116. )
  117.  
  118. [timestamps] => 1
  119. [dates:protected] => Array
  120. (
  121. [0] => lastLoginDate
  122. [1] => passwordResetKeyRequestDate
  123. )
  124.  
  125. [booleans:protected] => Array
  126. (
  127. [0] => taxExempt
  128. [1] => overrideLateFee
  129. [2] => overrideOverdueNotices
  130. [3] => separateInvoices
  131. [4] => disableAutomaticCreditCardProcessing
  132. [5] => emailOptOut
  133. [6] => overrideAutoClose
  134. [7] => emailVerified
  135. )
  136.  
  137. [unique] => Array
  138. (
  139. [0] => email
  140. )
  141.  
  142. [appends:protected] => Array
  143. (
  144. [0] => fullName
  145. [1] => countryName
  146. )
  147.  
  148. [fillable:protected] => Array
  149. (
  150. [0] => lastlogin
  151. [1] => ip
  152. [2] => host
  153. [3] => pwresetkey
  154. [4] => pwresetexpiry
  155. )
  156.  
  157. [guardedForUpdate] => Array
  158. (
  159. )
  160.  
  161. [strings:protected] => Array
  162. (
  163. )
  164.  
  165. [ints:protected] => Array
  166. (
  167. )
  168.  
  169. [semanticVersions:protected] => Array
  170. (
  171. )
  172.  
  173. [commaSeparated:protected] => Array
  174. (
  175. )
  176.  
  177. [characterSeparated:protected] => Array
  178. (
  179. )
  180.  
  181. [connection:protected] =>
  182. [primaryKey:protected] => id
  183. [perPage:protected] => 15
  184. [incrementing] => 1
  185. [attributes:protected] => Array
  186. (
  187. [id] => 18
  188. [uuid] => 1dde19b7-ff1c-460c-b8d3-e8d595c1ae98
  189. [firstname] => Carlos Eduardo
  190. [lastname] => Barbosa
  191. [companyname] => Ministério Apostólico Restaurando Cidades
  192. [email] => marcsuavida@gmail.com
  193. [address1] => Rua Jabuticaba (Antiga 19), 10
  194. [address2] => Araújo de Cosmos
  195. [city] => Rio de Janeiro
  196. [state] => RJ
  197. [postcode] => 23061-200
  198. [country] => BR
  199. [phonenumber] => (21) 98686.1203
  200. [password] => $2y$10$2xvXl18/PWKT.BtwW7j4oeB4QpECMGNO5R0Azg85Vm0dywKIKnTiG
  201. [authmodule] =>
  202. [authdata] =>
  203. [currency] => 1
  204. [defaultgateway] =>
  205. [credit] => 0.00
  206. [taxexempt] => 0
  207. [latefeeoveride] => 0
  208. [overideduenotices] => 0
  209. [separateinvoices] => 0
  210. [disableautocc] => 0
  211. [datecreated] => 2017-09-04
  212. [notes] =>
  213. [billingcid] => 0
  214. [securityqid] => 0
  215. [securityqans] => AdmeiJBDMB8ImYlAuRNNeIRn5t0=
  216. [groupid] => 0
  217. [cardtype] =>
  218. [cardlastfour] =>
  219. [cardnum] =>
  220. [startdate] =>
  221. [expdate] =>
  222. [issuenumber] =>
  223. [bankname] =>
  224. [banktype] =>
  225. [bankcode] =>
  226. [bankacct] =>
  227. [gatewayid] =>
  228. [lastlogin] => 2018-06-11 17:57:54
  229. [ip] => 186.229.28.58
  230. [host] => 186-229-28-58.ded.intelignet.com.br
  231. [status] => Active
  232. [language] =>
  233. [pwresetkey] =>
  234. [emailoptout] => 0
  235. [overrideautoclose] => 0
  236. [allow_sso] => 1
  237. [email_verified] => 0
  238. [created_at] => 0000-00-00 00:00:00
  239. [updated_at] => 2018-06-11 17:57:54
  240. [pwresetexpiry] => 0000-00-00 00:00:00
  241. )
  242.  
  243. [original:protected] => Array
  244. (
  245. [id] => 18
  246. [uuid] => 1dde19b7-ff1c-460c-b8d3-e8d595c1ae98
  247. [firstname] => Carlos Eduardo
  248. [lastname] => Barbosa
  249. [companyname] => Ministério Apostólico Restaurando Cidades
  250. [email] => marcsuavida@gmail.com
  251. [address1] => Rua Jabuticaba (Antiga 19), 10
  252. [address2] => Araújo de Cosmos
  253. [city] => Rio de Janeiro
  254. [state] => RJ
  255. [postcode] => 23061-200
  256. [country] => BR
  257. [phonenumber] => (21) 98686.1203
  258. [password] => $2y$10$2xvXl18/PWKT.BtwW7j4oeB4QpECMGNO5R0Azg85Vm0dywKIKnTiG
  259. [authmodule] =>
  260. [authdata] =>
  261. [currency] => 1
  262. [defaultgateway] =>
  263. [credit] => 0.00
  264. [taxexempt] => 0
  265. [latefeeoveride] => 0
  266. [overideduenotices] => 0
  267. [separateinvoices] => 0
  268. [disableautocc] => 0
  269. [datecreated] => 2017-09-04
  270. [notes] =>
  271. [billingcid] => 0
  272. [securityqid] => 0
  273. [securityqans] => AdmeiJBDMB8ImYlAuRNNeIRn5t0=
  274. [groupid] => 0
  275. [cardtype] =>
  276. [cardlastfour] =>
  277. [cardnum] =>
  278. [startdate] =>
  279. [expdate] =>
  280. [issuenumber] =>
  281. [bankname] =>
  282. [banktype] =>
  283. [bankcode] =>
  284. [bankacct] =>
  285. [gatewayid] =>
  286. [lastlogin] => 2018-06-11 17:57:54
  287. [ip] => 186.229.28.58
  288. [host] => 186-229-28-58.ded.intelignet.com.br
  289. [status] => Active
  290. [language] =>
  291. [pwresetkey] =>
  292. [emailoptout] => 0
  293. [overrideautoclose] => 0
  294. [allow_sso] => 1
  295. [email_verified] => 0
  296. [created_at] => 0000-00-00 00:00:00
  297. [updated_at] => 2018-06-11 17:57:54
  298. [pwresetexpiry] => 0000-00-00 00:00:00
  299. )
  300.  
  301. [relations:protected] => Array
  302. (
  303. )
  304.  
  305. [hidden:protected] => Array
  306. (
  307. )
  308.  
  309. [visible:protected] => Array
  310. (
  311. )
  312.  
  313. [guarded:protected] => Array
  314. (
  315. [0] => *
  316. )
  317.  
  318. [dateFormat:protected] =>
  319. [casts:protected] => Array
  320. (
  321. )
  322.  
  323. [touches:protected] => Array
  324. (
  325. )
  326.  
  327. [observables:protected] => Array
  328. (
  329. )
  330.  
  331. [with:protected] => Array
  332. (
  333. )
  334.  
  335. [morphClass:protected] =>
  336. [exists] => 1
  337. [wasRecentlyCreated] =>
  338. )
  339.  
  340. [statecode] => RJ
  341. [countryname] => Brazil
  342. [phonecc] => 55
  343. [phonenumberformatted] => +55.21986861203
  344. [billingcid] => 0
  345. [notes] =>
  346. [twofaenabled] =>
  347. [currency] => 1
  348. [defaultgateway] =>
  349. [cctype] =>
  350. [cclastfour] =>
  351. [gatewayid] =>
  352. [securityqid] => 0
  353. [securityqans] =>
  354. [groupid] => 0
  355. [status] => Active
  356. [credit] => 0.00
  357. [taxexempt] =>
  358. [latefeeoveride] =>
  359. [overideduenotices] =>
  360. [separateinvoices] =>
  361. [disableautocc] =>
  362. [emailoptout] =>
  363. [overrideautoclose] =>
  364. [allowSingleSignOn] => 1
  365. [language] =>
  366. [lastlogin] => Date: 11/06/2018 17:57<br>IP Address: 186.229.28.58<br>Host: 186-229-28-58.ded.intelignet.com.br
  367. [customfields1] => 05593467781
  368. [customfields] => Array
  369. (
  370. [0] => Array
  371. (
  372. [id] => 1
  373. [value] => 05593467781
  374. )
  375.  
  376. [1] => Array
  377. (
  378. [id] => 28
  379. [value] =>
  380. )
  381.  
  382. [2] => Array
  383. (
  384. [id] => 29
  385. [value] =>
  386. )
  387.  
  388. [3] => Array
  389. (
  390. [id] => 30
  391. [value] =>
  392. )
  393.  
  394. )
  395.  
  396. [customfields2] =>
  397. [customfields3] =>
  398. [customfields4] =>
  399. )
  400.  
  401. [currency] => BRL
  402. [currencyId] => 1
  403. )
  404.  
  405. Resultado da consulta por informações da fatura (API interna - WHMCS).
  406.  
  407. Array
  408. (
  409. [result] => success
  410. [invoiceid] => 165
  411. [invoicenum] =>
  412. [userid] => 18
  413. [date] => 2018-05-28
  414. [duedate] => 2018-06-04
  415. [datepaid] => 0000-00-00 00:00:00
  416. [lastcaptureattempt] => 0000-00-00 00:00:00
  417. [subtotal] => 39.90
  418. [credit] => 29.91
  419. [tax] => 0.00
  420. [tax2] => 0.00
  421. [total] => 9.99
  422. [balance] => 9.99
  423. [taxrate] => 0.00
  424. [taxrate2] => 0.00
  425. [status] => Unpaid
  426. [paymentmethod] => gofasgerencianetboleto
  427. [notes] =>
  428. [ccgateway] =>
  429. [items] => Array
  430. (
  431. [item] => Array
  432. (
  433. [0] => Array
  434. (
  435. [id] => 210
  436. [type] =>
  437. [relid] => 0
  438. [description] => Hospedagem Ultra - restaurandocidades.com.br (04/06/2018 - 03/07/2018)
  439. Escolha o modelo de site: template006
  440. [amount] => 39.90
  441. [taxed] => 0
  442. )
  443.  
  444. )
  445.  
  446. )
  447.  
  448. [transactions] => Array
  449. (
  450. [transaction] => Array
  451. (
  452. [0] => Array
  453. (
  454. [id] => 153
  455. [userid] => 18
  456. [currency] => 0
  457. [gateway] => gofasgerencianetboleto
  458. [date] => 2018-06-11 23:16:01
  459. [description] => Boleto gerado aguardando pagamento.
  460. [amountin] => 0.00
  461. [fees] => 0.00
  462. [amountout] => 0.00
  463. [rate] => 1.00000
  464. [transid] => ggnb_live_waiting-35195552
  465. [invoiceid] => 165
  466. [refundid] => 0
  467. )
  468.  
  469. )
  470.  
  471. )
  472.  
  473. )
  474.  
  475. Transações registradas por esta fatura - API WHMCS.
  476.  
  477.  
  478. Nenhuma transação registrada.
  479. Produtos/serviços da fatura - API WHMCS.
  480.  
  481. Itens com valor negativo:
  482.  
  483. Array
  484. (
  485. )
  486. Itens da Fatura:
  487.  
  488.  
  489. Soma dos itens com valor negativo:
  490.  
  491. $discount_item:
  492. $whmcs_discount: 2991
  493. Desconto válido até:
  494.  
  495. 2018-06-04 | 0 dias antes do vencimento
  496. Cálculos.
  497.  
  498. Hoje:
  499. Vencimento:
  500. Diferença entre datas: dia(s)
  501. Multa:
  502. Juros:
  503. Valor original * 100: 0
  504. Total:
  505. Dados do cliente - API WHMCS.
  506.  
  507. stdClass Object
  508. (
  509. [id] => 18
  510. [uuid] => 1dde19b7-ff1c-460c-b8d3-e8d595c1ae98
  511. [firstname] => Carlos Eduardo
  512. [lastname] => Barbosa
  513. [companyname] => Ministério Apostólico Restaurando Cidades
  514. [email] => marcsuavida@gmail.com
  515. [address1] => Rua Jabuticaba (Antiga 19), 10
  516. [address2] => Araújo de Cosmos
  517. [city] => Rio de Janeiro
  518. [state] => RJ
  519. [postcode] => 23061-200
  520. [country] => BR
  521. [phonenumber] => (21) 98686.1203
  522. [password] => $2y$10$2xvXl18/PWKT.BtwW7j4oeB4QpECMGNO5R0Azg85Vm0dywKIKnTiG
  523. [authmodule] =>
  524. [authdata] =>
  525. [currency] => 1
  526. [defaultgateway] =>
  527. [credit] => 0.00
  528. [taxexempt] => 0
  529. [latefeeoveride] => 0
  530. [overideduenotices] => 0
  531. [separateinvoices] => 0
  532. [disableautocc] => 0
  533. [datecreated] => 2017-09-04
  534. [notes] =>
  535. [billingcid] => 0
  536. [securityqid] => 0
  537. [securityqans] => AdmeiJBDMB8ImYlAuRNNeIRn5t0=
  538. [groupid] => 0
  539. [cardtype] =>
  540. [cardlastfour] =>
  541. [cardnum] =>
  542. [startdate] =>
  543. [expdate] =>
  544. [issuenumber] =>
  545. [bankname] =>
  546. [banktype] =>
  547. [bankcode] =>
  548. [bankacct] =>
  549. [gatewayid] =>
  550. [lastlogin] => 2018-06-11 17:57:54
  551. [ip] => 186.229.28.58
  552. [host] => 186-229-28-58.ded.intelignet.com.br
  553. [status] => Active
  554. [language] =>
  555. [pwresetkey] =>
  556. [emailoptout] => 0
  557. [overrideautoclose] => 0
  558. [allow_sso] => 1
  559. [email_verified] => 0
  560. [created_at] => 0000-00-00 00:00:00
  561. [updated_at] => 2018-06-11 17:57:54
  562. [pwresetexpiry] => 0000-00-00 00:00:00
  563. )
  564.  
  565. Dados do cliente enviados à GN API
  566.  
  567. cpf: 05593467781
  568. cnpj:
  569. $customer: Array
  570. (
  571. [name] => Carlos Eduardo Barbosa
  572. [cpf] => 05593467781
  573. [phone_number] => 21986861203
  574. )
  575.  
  576. $juridical_data:
  577.  
  578. Nova transação gerada com sucesso - API Gerencianet.
  579.  
  580. Array
  581. (
  582. [code] => 200
  583. [data] => Array
  584. (
  585. [charge_id] => 428347
  586. [status] => new
  587. [total] => 1099
  588. [custom_id] => 165
  589. [created_at] => 2018-06-12 11:29:52
  590. )
  591.  
  592. )
  593. charge id: 428347
  594.  
  595. Falha ao gerar o boleto - 1ª tentativa, - API Gerencianet.
  596.  
  597. A propriedade [discount] informada é inválida.: discount
  598. $params2 & $BODY2:
  599. Array
  600. (
  601. [id] => 428347
  602. )
  603.  
  604. Array
  605. (
  606. [payment] => Array
  607. (
  608. [banking_billet] => Array
  609. (
  610. [expire_at] => 2018-06-13
  611. [customer] => Array
  612. (
  613. [name] => Carlos Eduardo Barbosa
  614. [cpf] => 05593467781
  615. [phone_number] => 21986861203
  616. )
  617.  
  618. [discount] => Array
  619. (
  620. [type] => currency
  621. [value] => 2991
  622. )
  623.  
  624. [message] =>
  625. [instructions] => Array
  626. (
  627. [0] => Após vencimento aceitar pagamento somente no banco emissor.
  628. [1] => Não cobrar juros após o vencimento.
  629. [2] => Não cobrar multa após o vencimento.
  630. [3] => Aceitar apenas pagamento em dinheiro.
  631. )
  632.  
  633. )
  634.  
  635. )
  636.  
  637. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement