Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter dannyandersen

    (@dannyandersen)

    The last error I think appeared due to session having logged off…

    Thread Starter dannyandersen

    (@dannyandersen)

    As I was testing – I also got this error in the chat window:

    Server error: SyntaxError: JSON Parse error: Unrecognized token ‘<‘
    Server error: TypeError: undefined is not an object (evaluating ‘response.result.length’)
    Server error: TypeError: undefined is not an object (evaluating ‘response.result.length’)
    Server error: TypeError: undefined is not an object (evaluating ‘response.result.length’)
    Server error: TypeError: undefined is not an object (evaluating ‘response.result.length’)
    Server error: TypeError: undefined is not an object (evaluating ‘response.result.length’)
    Server error: TypeError: undefined is not an object (evaluating ‘response.result.length’)
    Server error: TypeError: undefined is not an object (evaluating ‘response.result.length’)
    Server error: TypeError: undefined is not an object (evaluating ‘response.result.length’)
    Server error: TypeError: undefined is not an object (evaluating ‘response.result.length’)
    Server error: TypeError: undefined is not an object (evaluating ‘response.result.length’)
    Server error: TypeError: undefined is not an object (evaluating ‘response.result.length’)
    Server error: TypeError: undefined is not an object (evaluating ‘response.result.length’)
    Server error: TypeError: undefined is not an object (evaluating ‘response.result.length’)
    Server error: TypeError: undefined is not an object (evaluating ‘response.result.length’)
    Server error: TypeError: undefined is not an object (evaluating ‘response.result.length’)
    Server error: TypeError: undefined is not an object (evaluating ‘response.result.length’)

    Thread Starter dannyandersen

    (@dannyandersen)

    Solved by Carlos over at Quaderno – check them out at https://quaderno.io – what awesome service!!! Especially for solving EU VAT rules on invoicing. He actually took the time to go through the source code of PMPro and find and solve this issue faster than PMPro could answer. Thank you Carlos and Quaderno.

    And thank you Jason and PMPro for a great Plug-in.

    You have to edit the file /pages/checkout.php

    Search line 400 and replace
    <select name="bcountry" class=" <?php echo pmpro_getClassForField("bcountry");?>">

    for
    <select id="bcountry" name="bcountry" class=" <?php echo pmpro_getClassForField("bcountry");?>">

    / Danny

    Thread Starter dannyandersen

    (@dannyandersen)

    I have now tested in live mode. The first test worked even though the country still did not come through to Stripe. Then I tried selecting Sweden instead and then it registered as Denmark. I think it defaults to the credit card country because it still gets the wrong info through the hook:

    address_country: “undefined”

    Please let me know how this can be solved.

    Thanks,
    Danny

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