• Resolved Divyesh_kakrecha

    (@divyeshk71)


    Hi,

    I have setup your plugin and added all details up to date. but on my checkout page plugin show Cannot read property 'host' of undefined error.

    Anyone know about this? please help me how can i fix it.

    Thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
  • @braintree
    more detail here.

    Possible Unhandled Promise Rejection: TypeError: Cannot read property ‘host’ of undefined
    at https://js.braintreegateway.com/web/3.55.0/js/client.min.js?ver=3.0.9:1

    At that line, code is merchantAppId:c.location.host

    • This reply was modified 5 years, 4 months ago by Maulik Vora.
    Plugin Author Payment Plugins

    (@mrclayton)

    Hello,

    Please reference the following github issue:

    https://github.com/braintree/braintree-web/issues/401

    Check that you aren’t using any plugins that are overriding global JS properties like location. I have seen this come up in the past and it was a theme conflict.

    Kind Regards,

    Hi @divyeshk71

    Having the same problem in a client, how did you manage to solve it?

    Possible Unhandled Promise Rejection: TypeError: Cannot read property ‘host’ of undefined
    at client.min.js?ver=3.1.2:1
    at l (client.min.js?ver=3.1.2:1)
    at new o (client.min.js?ver=3.1.2:1)
    at client.min.js?ver=3.1.2:1
    at client.min.js?ver=3.1.2:1
    at Function.O.initialize (client.min.js?ver=3.1.2:1)
    at Object.<anonymous> (client.min.js?ver=3.1.2:1)
    at Object.create (client.min.js?ver=3.1.2:1)
    at Object.create_client (client-manager.min.js?ver=3.1.2:1)
    at Object.init (client-manager.min.js?ver=3.1.2:1)

    Thanks in advance, best regards,
    JPFigueira

    We had conflict with our theme, when we tried with default wordpress theme, it was working.

    So then we contacted theme author and they did fix it for us.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Cannot read property ‘host’ of undefined’ is closed to new replies.