Jump to content

Christopher Short

Member
  • Posts

    394
  • Joined

  • Last visited

Posts posted by Christopher Short

  1. 4 minutes ago, bsmither said:

    So, the database table CubeCart_order_summary, for the order of interest, shows a non-zero value in 'shipping'.

    Then, I must question whether a "Free Shipping" coupon was applied to the order.

     

    I have screen shots of everything, the promo code is reflected but doesnt transfer to the invoice. It shows in the admin notes. Cannot get the screenshot loaded as it is too big...

  2. 7 hours ago, bsmither said:

    Using a coupon that has the Free Shipping setting checked should show all shipping charges as zero - everywhere because that is what gets posted to the CubeCart_order_summary table, 'shipping' column.

    For the order of which you are observing this difficulty, please verify the value in CubeCart_order_summary, shipping.

     

    It reflects the charges there but it doesn't when paypal processes it. the DB shows shipping, invoice shows shipping, payment doesn't charge shipping. 

  3. Does anyone have a way to make a promocode for free shipping that actually removes the shipping charge from the invoice? I can get the charges removed from the billed total with paypal but it still reflects on the invoice and makes the invoice unbalanced. 

  4. What needs to be done to fix zip codes? The US is 5 digit or 5+4. USPS will not recognize 9 digits and provide a quote. If a customer enters the 5+4 without a -, it should auto format to xxxxx-xxxx from xxxxxxxxx

  5. 10 minutes ago, bsmither said:

    Al or Havenswift might have a more trustworthy answer, but for being in the USA, I *think* not so much.

    According to:

    https://cookiefirst.com/ccpa-compliance/

    if you do business in the EU, then yes. If you do business in California, then yes.

    I still have the experiments to do.

    I have a bunch of customers from California

  6. 40 minutes ago, bsmither said:

    Ok, I'll do some experiments to try to reproduce the issue.

    In the meantime, do you feel the need to have the Cookie Compliance dialog enabled?

    If not, in admin, Store Settings, Extra tab, uncheck the GDPR Cookie Compliance checkbox. Then clear Cubecart's cache.

     

    Am I legally required to? 

  7. 2 hours ago, bsmither said:

    For my information, what program are you using to view this file that caused the text to turn white after the first newline character?

     

    Notepad ++

    1 hour ago, bsmither said:

    For your document identified as the Privacy document, does this document have any redirect setting?

     

    Not that I can see or know of. 

  8. 2 minutes ago, bsmither said:

    No, that is just a multi-line phrase. There are line ending characters in the string. There is the matching </string> on line 860.

     

    Color of text turned all white at that point, hence why I thought it.

  9. 4 hours ago, bsmither said:

    Let's confirm a few things:

    The following code has not changed:

    /classes/gui.class.php, near lines 956-963:
    
    if (Config::getInstance()->get('config', 'cookie_dialogue') && !isset($_COOKIE['accept_cookies'])) {
      if ($privacy = $GLOBALS['db']->select('CubeCart_documents', 'doc_id', array('doc_privacy' => '1'))) {
        $dialogue = str_replace(array('%s','%PRIVACY_URL%'), array($GLOBALS['config']->get('config', 'store_name'), $GLOBALS['seo']->buildURL('doc', $privacy[0]['doc_id'])), $GLOBALS['language']->notification['cookie_dialogue']);
      } else {
        $dialogue = str_replace('%s', $GLOBALS['config']->get('config', 'store_name'), $GLOBALS['language']->notification['cookie_dialogue']);
        $dialogue = preg_replace('/<\/?a[^>]*>/', '', $dialogue);
      }
      $GLOBALS['smarty']->assign('COOKIE_DIALOGUE_TEXT', $dialogue);
    -------------------------
    
    Using skin template box.eu_cookie.php which uses {$COOKIE_DIALOGUE_TEXT}.
    -------------------------
    
    In /language/definitions.xml, in the group 'notification', the key "cookie_dialogue" is:
    %s uses cookies. For more detailed information about these cookies please see
    our <a href="%PRIVACY_URL%">privacy policy</a>. Please accept to continue or
    block all non-essential cookies.
    -------------------------
    

    The logic error I thought I saw was that if CubeCart has not identified a document as a 'Privacy" document (admin, Documents, Privacy table column), then just the non-link phrase "privacy policy" should appear in the banner message, as there being an attempt to strip the <a> tags.

    But your banner has a link, so there must be a document so identified.

    That means, somehow, the str_replace() isn't replacing %PRIVACY_URL% in the language phrase with the name of the identified privacy document.

    here is the definitions.xml file. 

    definitions.zip

    everything else matched

     

    It looks like a closing </string> is missing part way down, line 855

  10. I have over 600 errors- https://www.csrocketry.com/xxxxxx/%PRIVACY_URL%

    the x is different product categories or item. Ideas? I have a valid privacy policy on the site. 

    image.thumb.png.50db1050e3b2424462f6ae3b31fa1d7d.png

  11. Just had a customer have an issue with the invisible recaptcha- The following errors were detected: the verification code was incorrect. Please try again

     

    Could this also be causing payment related issues?

  12. 1 hour ago, GadgetGeek said:

    I created a shop for a client last year and all has been working well.  Suddenly in November PayPal started playing up.  When clicking on either the PayPal checkout or Pay Later buttons the a window appears momentarily then disappears back to the page with the buttons.  In the orders page it shows that the order is pending but no payment is made.

    I have looked at the Request Log and see the following:

    Request Sent (cURL) - https://api.paypal.com/v1/identity/generate-token

    Response received (200 - OK){"client_token":"eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiYWQyYTRlYjU0MDA4ZDIxYTBjMjdmMDZhNmVkNmZkZjI5ZGNlZTc2OWI1NDkwOWU0ODRkMWI2NjM3ODk5Y2Y3NXxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjItMDEtMDRUMTk6NDU6NTYuMDc0WiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQVBlc1hPVmswWXp3MHBrM2txQ2p5YVNzVlhDT05kMHdpcVMxb0NWMXdva2VKaU84eF9Wbk5WMjVYb0NEcGpLTmxZd3JUQjIxS0pFMzk2NnBVOXkzdWhSVzItMG5RIn19","expires_in":3600}

    Followed by:

    Request Sent (cURL) - https://api.paypal.com/v2/checkout/orders/{"intent":"CAPTURE","purchase_units":[{"reference_id":"61d49f46e37ab","items":[{"name":"test item not for sale","unit_amount":{"value":"0.01","currency_code":"GBP"},"quantity":2,"sku":"TESJ05XR48","category":"PHYSICAL_GOODS"}],"amount":{"currency_code":"GBP","value":"0.02","breakdown":{"item_total":{"value":"0.02","currency_code":"GBP"},"shipping":{"value":"0","currency_code":"GBP"},"tax_total":{"value":"0","currency_code":"GBP"},"discount":{"value":"0","currency_code":"GBP"}}},"shipping":{"name":{"full_name":"XXXXXXXX"},"email_address":false,"phone":false,"address":{"address_line_1":"XXXXXXXXX","admin_area_1":"Hampshire","admin_area_2":"XXXXXXX","postal_code":"XXXXXXX","country_code":"GB"}},"invoice_id":"220104-192730-8370","description":"Payment for order 220104-192730-8370"}],"application_context":{"shipping_preference":"SET_PROVIDED_ADDRESS","brand_name":"ENT","locale":"en-GB","user_action":"PAY_NOW"},"payer":{"name":{"given_name":"XXXXXXX","surname":"XXXXXXXXXX"},"address":{"address_line_1":"XXXXXXXXX ","address_line_2":"","admin_area_1":"Hampshire","admin_area_2":"XXXXXXXXX","postal_code":"XXXXXXXX","country_code":"GB"}}}
    Error:cURL Error (22): The requested URL returned error: 422
    Response received (422 - Unprocessable Entity)
     
     

    I have replaced the name and address with 'X's' above for data protection but everything else is as the error log.

    I have tried removing paypal from the store and reinstalling it but I get the same.

     In another store (using the same pc) there is no problem and the orders show, so I am totally stumped.  I have trawled through the forum but can't seem to find anything that helps.

     

    Any help gratefully received - but please be aware I am NOT a programmer!

    this is what is happening in mine as well, 

       same issues with orders going to pending and payment not being taken. 

  13. turned everything off: firewall, virus protection,  ad blocker ectimage.thumb.png.27282fb2e5001656339f77d90586988f.png

    by the way, on 3 different machines and 3 different networks, the results are the same. 

     

  14. 5 hours ago, Al Brookbanks said:

    So it very much looks like a 3rd party browser plugin is causing the problem. Can you temporarily disable all of them or one at a time?

    I did, disabled everything in the second run. 

  15. 6 minutes ago, bsmither said:

    The latest Foundation (since CC640, I think) is using reCaptcha V2 or OFF. This choice is made in Store Settings, Features tab, Bot Protection section. (You will need to get your own keys).

    The skin template code is testing for choice #2 or choice #3 (or zero for OFF). Both choices are for Google's reCaptcha V2 -- the difference is just in how the reCaptcha appears on the browser page.

     

    Can I send you my skins folder to look at? I appreciate you helping, really need to get this resolved as I cannot keep losing customers at payment as they do not come back. 

    https://drive.google.com/file/d/1k7zL0k5hnXuSNyu0UgAfp3V9R3T94w5u/view?usp=sharing

     

  16. 31 minutes ago, bsmither said:

    The immediate things I notice are the net::ERR_BLOCKED_BY_CLIENT message, and the 4XX response codes.

    Please verify that your browser is not blocking anything from PayPal by using a plugin, whole computer-based "web protection" (Avast, Norton, MalwareBytes, etc), or anything that could interfere with the proper transmission and reception of communications from and to the browser.

    You may have the ability to see what is blocking the request. On the menubar of the developer tools, there could be a mention of a plugin that is doing these kinds of things. For example, AdBlock Plus. Viewing what AdBlock Plus is doing may give a clue as to what could be causing these problems.

    I also find interesting the "Couldn't find the user-provided function: reCaptchaCallback".

    Please remind us of the skin the site is using. Examine the skin files content.recaptcha.head.php and content.recaptcha.php. In both files, there should be the statement:

    var reCaptchaCallback = function() {

     

    Are we on recaptcha v2 or 3? I am using foundation but also have some custom skin built in. 

     

    5[Violation] Added non-passive event listener to a scroll-blocking <some> event. Consider marking event handler as 'passive' to make the page more responsive. See <URL>
    [Violation] Forced reflow while executing JavaScript took 30ms
    message?merchant_id=BECJBFSX3YF2Q&currency=USD&amount=803.72&placement=cart&style={"layout"%3A"text"%2C"logo"%3A{"type"%3A"inline"%2C"position"%3A"left"}%2C"text"%3A{"color"%3A"black"%2C"size"%3A"12"%2C"align"%3A"center"}}&client_id=AfzDtc-4e3mgEKVqWbZ1KiuaJzTwaeDGRM1xYdzfuBGJk0zhEJkc6vYOOF2RnKWTuyUMoV0S4IcngySx&merchant_config=d45c6e1f1ce03b33bc512247a2ccc454e48245e5&sdkMeta=eyJ1cmwiOiJodHRwczovL3d3dy5wYXlwYWwuY29tL3Nkay9qcz9jbGllbnQtaWQ9QWZ6RHRjLTRlM21nRUtWcVdiWjFLaXVhSnpUd2FlREdSTTF4WWR6ZnVCR0prMHpoRUprYzZ2WU9PRjJSbktXVHV5VU1vVjBTNEljbmd5U3gmbWVyY2hhbnQtaWQ9QkVDSkJGU1gzWUYyUSZjdXJyZW5jeT1VU0QmZW5hYmxlLWZ1bmRpbmc9cGF5bGF0ZXImaW50ZW50PWF1dGhvcml6ZSZjb21taXQ9dHJ1ZSZjb21wb25lbnRzPWJ1dHRvbnMsaG9zdGVkLWZpZWxkcyxtZXNzYWdlcyIsImF0dHJzIjp7ImRhdGEtcGFydG5lci1hdHRyaWJ1dGlvbi1pZCI6IkNVQkVDQVJUTElNSVRFRF9DYXJ0X0N1YmVDYXJ0UENQIiwiZGF0YS11aWQiOiJ1aWRfdHNpcHJhb2h6eHZ1dW1vbW1kcmlnaW1xdXJmZnZxIn19&env=production&version=1.27.1&deviceID=feb9ff2a9f_mtq6ndq6ndi&sessionID=uid_4aa2160231_mdm6mdc6mty&scriptUID=uid_tsipraohzxvuumommdrigimqurffvq&message_request_id=uid_20d859d35b_mdm6mdg6nde&features=no-common:105 [Violation] Avoid using document.write(). https://developers.google.com/web/updates/2016/08/removing-document-write
    (anonymous) @ message?merchant_id=BECJBFSX3YF2Q&currency=USD&amount=803.72&placement=cart&style={"layout"%3A"text"%2C"logo"%3A{"type"%3A"inline"%2C"position"%3A"left"}%2C"text"%3A{"color"%3A"black"%2C"size"%3A"12"%2C"align"%3A"center"}}&client_id=AfzDtc-4e3mgEKVqWbZ1KiuaJzTwaeDGRM1xYdzfuBGJk0zhEJkc6vYOOF2RnKWTuyUMoV0S4IcngySx&merchant_config=d45c6e1f1ce03b33bc512247a2ccc454e48245e5&sdkMeta=eyJ1cmwiOiJodHRwczovL3d3dy5wYXlwYWwuY29tL3Nkay9qcz9jbGllbnQtaWQ9QWZ6RHRjLTRlM21nRUtWcVdiWjFLaXVhSnpUd2FlREdSTTF4WWR6ZnVCR0prMHpoRUprYzZ2WU9PRjJSbktXVHV5VU1vVjBTNEljbmd5U3gmbWVyY2hhbnQtaWQ9QkVDSkJGU1gzWUYyUSZjdXJyZW5jeT1VU0QmZW5hYmxlLWZ1bmRpbmc9cGF5bGF0ZXImaW50ZW50PWF1dGhvcml6ZSZjb21taXQ9dHJ1ZSZjb21wb25lbnRzPWJ1dHRvbnMsaG9zdGVkLWZpZWxkcyxtZXNzYWdlcyIsImF0dHJzIjp7ImRhdGEtcGFydG5lci1hdHRyaWJ1dGlvbi1pZCI6IkNVQkVDQVJUTElNSVRFRF9DYXJ0X0N1YmVDYXJ0UENQIiwiZGF0YS11aWQiOiJ1aWRfdHNpcHJhb2h6eHZ1dW1vbW1kcmlnaW1xdXJmZnZxIn19&env=production&version=1.27.1&deviceID=feb9ff2a9f_mtq6ndq6ndi&sessionID=uid_4aa2160231_mdm6mdc6mty&scriptUID=uid_tsipraohzxvuumommdrigimqurffvq&message_request_id=uid_20d859d35b_mdm6mdg6nde&features=no-common:105

    This was from clicking secure checkout

  17. 11 minutes ago, bsmither said:

    The immediate things I notice are the net::ERR_BLOCKED_BY_CLIENT message, and the 4XX response codes.

    Please verify that your browser is not blocking anything from PayPal by using a plugin, whole computer-based "web protection" (Avast, Norton, MalwareBytes, etc), or anything that could interfere with the proper transmission and reception of communications from and to the browser.

    You may have the ability to see what is blocking the request. On the menubar of the developer tools, there could be a mention of a plugin that is doing these kinds of things. For example, AdBlock Plus. Viewing what AdBlock Plus is doing may give a clue as to what could be causing these problems.

    I also find interesting the "Couldn't find the user-provided function: reCaptchaCallback".

    Please remind us of the skin the site is using. Examine the skin files content.recaptcha.head.php and content.recaptcha.php. In both files, there should be the statement:

    var reCaptchaCallback = function() {

     

    Ill get this info for you shortly. The issue isn't just my browser or computer, it is many different users that never had problems amd now do. 

  18. I have tried several now, the logs show nothing. Some go through, some do not. The last one was rejected and gave a 3DS error but the previous customer tried several times, no error and no payment, just looped back to the make payment screen. I tried by logging in as customer and it went through. 

    Capture.JPG

    Capture.JPG

    Today, 19:53
    Request Sent (cURL) - https://api.paypal.com/v1/oauth2/tokengrant_type=client_credentials
    Response received (200 - OK){"scope":"https://uri.paypal.com/services/invoicing https://uri.paypal.com/services/disputes/read-buyer https://uri.paypal.com/services/payments/realtimepayment https://uri.paypal.com/services/disputes/update-seller https://uri.paypal.com/services/payments/payment/authcapture openid https://uri.paypal.com/services/disputes/read-seller https://uri.paypal.com/services/payments/refund https://api.paypal.com/v1/vault/credit-card https://api.paypal.com/v1/payments/.* https://uri.paypal.com/services/payments/initiatepayment https://uri.paypal.com/payments/payouts https://api.paypal.com/v1/vault/credit-card/.* https://uri.paypal.com/services/subscriptions https://uri.paypal.com/services/applications/webhooks","access_token":"A21AAPMBXCInJT5w9aWNY8AzlpMooBTrakO83l-bdzdV3MGDwbxV9wIq3rRhmQTF5y3p9NT7budVtNfeo9is4j8dO8clmDzJQ","token_type":"Bearer","app_id":"APP-9S829106T17238807","expires_in":29200,"nonce":"2022-01-04T00:00:02ZcmUXR5uf35GZQDRkvsW5_FnCXro9RjbQZdMHFv0Ssp0"}
     

    The request in the admin area is repeated several times with the same info everytime, almost looks like a stuck for loop. 

     

×
×
  • Create New...