• Resolved ulpher

    (@ulpher)


    I was getting the below 422 error, since the billing address was more than 50 characters.

    {“error”:{“message”:”Billing line1 format is invalid.\nShipping line1 format is invalid.”},”threeDSecureInfo”:{“liabilityShifted”:false,”liabilityShiftPossible”:false}}

    Is there a way to get access to these kind of error logs from the server, so that I would know if anything similar happens? After contacting Braintree, they said that these errors are immediately available at my site.

    Thank you

Viewing 5 replies - 1 through 5 (of 5 total)
  • Steve

    (@skyvergesteve)

    Hey @ulpher,

    Thanks for contacting us about our Braintree for WooCommerce plugin! I’m happy to help out ??

    You can get the error logs from the site by enabling logging for the gateway. This can be enabled by going to WooCommerce > Settings > Payments > Braintree and changing the Debug Mode setting to save to log.

    Once this is enabled, you can find the log files in WooCommerce > Status > Logs. The log file will be in a base64 encoded string, so you will need to decode it with a tool such as https://www.base64decode.org/.

    Can you please let me know if this helps to get the logging set up for you?

    Cheers,

    Steve
    SkyVerge

    Thread Starter ulpher

    (@ulpher)

    Hi @skyvergesteve

    Thanks for your reply. I was aware of that config and the logs location, but unfortunately the error mentioned was not being logged. For the day that the error was known to be happening, there are only INFO logs like ‘INFO Processing payment for order ??’.

    That error got triggered since ‘streetAddress’ had more than 50 characters. I believe this is a response to the 3DS ‘verifyCard’ method. I only found out the specifics after contacting Braintree support as the error displayed to the client was much more generic: “The data passed to the 3D Secure provider was in an invalid format. Please check your entries for invalid values”.

    Plugin version I am running is 3.1.8. Maybe there were improvements since? But I didn’t see anything related in the release notes.

    Thanks

    Steve

    (@skyvergesteve)

    Hey @ulpher

    Thanks for clarifying that. You mentioned that you are running 3.1.8, are you using the Braintree plugin from here:

    https://www.ads-software.com/plugins/woo-payment-gateway

    Or this one:

    https://www.ads-software.com/plugins/woocommerce-gateway-paypal-powered-by-braintree/

    Just want to make sure we are referring to the same plugin ??

    Cheers,

    Steve
    SkyVerge

    Thread Starter ulpher

    (@ulpher)

    Hey Steve,

    I’m referring to woo-payment-gateway, my mistake. Sorry to have wasted your time!

    Regards

    Steve

    (@skyvergesteve)

    Hey @ulpher

    No worries! You may want to reach out to their support forum on this and see if they can offer any assistance for you ??

    Cheers,

    Steve
    SkyVerge

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘gateway error logs’ is closed to new replies.