Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter nacientifico

    (@nacientifico)

    Thread Starter nacientifico

    (@nacientifico)

    Tanks mtruitt and madeincosmos!

    I am not experienced in codes, sorry. But I did as madeincosmos indicated.
    Would it be this? thank you

    This is the line that appears in fatal error on every unsuccessful purchase.
    fatal error:

    2018-03-03T15:31:38+00:00 CRITICAL Call to a member function get_id() on boolean

    https://www.dropbox.com/s/lftssgr3pdiy4pk/fatal%20errors.docx?dl=0

    Below is the code of the last unsuccessful attempt of my pagseguro plugin.

    03-03-2018 @ 15:31:29 - Requesting direct payment for order 14936 with the following data: <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <payment>
      <mode>default</mode>
      <method>boleto</method>
      <currency>BRL</currency>
      <notificationURL><![CDATA[https://www.nacientifico.com.br/wc-api/WC_PagSeguro_Gateway/]]></notificationURL>
      <items>
        <item>
          <id>1</id>
          <description><![CDATA[Técnicas em Biologia Molecular I]]></description>
          <amount>190.00</amount>
          <quantity>1</quantity>
        </item>
      </items>
      <reference><![CDATA[NAC14936]]></reference>
      <sender>
        <email><![CDATA[[email protected]]]></email>
        <documents>
          <document>
            <type>CPF</type>
            <value>41356982808</value>
          </document>
        </documents>
        <name><![CDATA[testeq testea]]></name>
        <phone>
          <areaCode>98</areaCode>
          <number>989898898</number>
        </phone>
        <hash>cf030707d0909f5be9390f82951bf002752c48c4384c5529d120a7f8451e26a9</hash>
      </sender>
      <shipping>
        <type>3</type>
        <address>
          <street><![CDATA[fsdfdsfsdf]]></street>
          <number>2323</number>
          <complement><![CDATA[sssdsd]]></complement>
          <district><![CDATA[kkkjkj]]></district>
          <postalCode>32232323</postalCode>
          <city><![CDATA[kjkjkjk]]></city>
          <state>SP</state>
          <country>BRA</country>
        </address>
        <cost>0</cost>
      </shipping>
    </payment>
    
    03-03-2018 @ 15:31:34 - PagSeguro direct payment created successfully!
    03-03-2018 @ 15:31:34 - PagSeguro payment status for order 14936 is: 1
    03-03-2018 @ 15:31:42 - Checking IPN request...
    03-03-2018 @ 15:31:43 - PagSeguro IPN is valid! The return is: SimpleXMLElement Object
    (
        [date] => 2018-03-03T15:31:30.000-03:00
        [code] => DF962E57-DDA1-4D67-9E6F-555778D43A50
        [reference] => NAC14936
        [type] => 1
        [status] => 1
        [lastEventDate] => 2018-03-03T15:31:34.000-03:00
        [paymentMethod] => SimpleXMLElement Object
            (
                [type] => 2
                [code] => 202
            )
    
        [paymentLink] => https://pagseguro.uol.com.br/checkout/payment/booklet/print.jhtml?c=a99b7c7df70608507a174d066f212d4d38dce73ba224499cccb0f00747118433c91307babe7861e4
        [grossAmount] => 190.00
        [discountAmount] => 0.00
        [feeAmount] => 9.88
        [netAmount] => 180.12
        [extraAmount] => 0.00
        [installmentCount] => 1
        [itemCount] => 1
        [items] => SimpleXMLElement Object
            (
                [item] => SimpleXMLElement Object
                    (
                        [id] => 1
                        [description] => Técnicas em Biologia Molecular I
                        [quantity] => 1
                        [amount] => 190.00
                    )
    
            )
    
        [sender] => SimpleXMLElement Object
            (
                [name] => testeq testea
                [email] => [email protected]
                [phone] => SimpleXMLElement Object
                    (
                        [areaCode] => 98
                        [number] => 989898898
                    )
    
            )
    
        [shipping] => SimpleXMLElement Object
            (
                [address] => SimpleXMLElement Object
                    (
                        [street] => fsdfdsfsdf
                        [number] => 2323
                        [complement] => sssdsd
                        [district] => kkkjkj
                        [city] => kjkjkjk
                        [state] => SP
                        [country] => BRA
                        [postalCode] => 32232323
                    )
    
                [type] => 3
                [cost] => 0.00
            )
    
    )
    
    03-03-2018 @ 15:31:43 - PagSeguro payment status for order 14936 is: 1

    Eu também mesmo problema!!

Viewing 3 replies - 1 through 3 (of 3 total)