Uncaught TypeError: r(…).payment is not a function
-
Hi there,
I’m having one issue with WooCommerce, PayTrace plugin. Here is the issue log:
Uncaught TypeError: r(...).payment is not a function at HTMLDocument.<anonymous> (credit-card-form.min.js?ver=3.8.1:1) at i (jquery.js?ver=1.12.4-wp:2) at Object.fireWith [as resolveWith] (jquery.js?ver=1.12.4-wp:2) at Function.ready (jquery.js?ver=1.12.4-wp:2) at HTMLDocument.J (jquery.js?ver=1.12.4-wp:2)
Can you please let me find out why does this issue persists?
Thanks in advance.
The page I need help with: [log in to see the link]
-
Hi @abrana,
I just attempted an order on your site and I was able to enter credit card details in the Paytrace method without issues. I intentionally entered fictitious card details since I’m not looking to pay for any products/services. Here’s a screenshot of that:
Full Size: https://d.pr/i/F874X3The transaction was expectedly declined since I knew the card could not be processed. You can see the decline message here:
Full Size: https://d.pr/i/4chdrpI did not run into any unexpected errors. Perhaps you’ve already resolved the issue.
@luminus thanks for testing but I’m unable to find the cause for that error
But we’re having major issue is with Klarna, it gets stuck but order does show up in dashboard.
Hi @abrana,
Forgive my confusion. Are you saying that the PayTrace plugin is working fine now and you instead have issues with Klarna?
- Can you tell me what issues you’re facing with the Klarna plugin?
- Can you please provide your sites System Status Report? You can find it by going to “WooCommerce → Status” in your site’s WP-Admin.
Click on “Get system report” and then “Copy for support”. Once you’ve done that, you can paste it here in the chat.
Hi @luminus
Sorry for not being that clear. So to be clear both are working when one of them are active. Klarna is not working only when PayTrace is active. And PayTrace error persists even when PayTrace is only active.
Here is the report and really thank you so much for your time:
### WordPress Environment ### WordPress address (URL): https://staging.archeryschooloftherockies.com Site address (URL): https://staging.archeryschooloftherockies.com WC Version: 3.8.1 REST API Version: ? 1.0.2 Log Directory Writable: ? WP Version: ? 5.2.2 - There is a newer version of WordPress available (5.3) WP Multisite: – WP Memory Limit: 256 MB WP Debug Mode: – WP Cron: ? Language: en_US External object cache: – ### Server Environment ### Server Info: Apache PHP Version: 7.1.14 - We recommend using PHP version 7.2 or above for greater performance and security. How to update your PHP version PHP Post Max Size: 260 MB PHP Time Limit: 30 PHP Max Input Vars: 1000 cURL Version: 7.19.7 NSS/3.27.1 SUHOSIN Installed: – MySQL Version: 5.6.41-84.1 Max Upload Size: 256 MB Default Timezone is UTC: ? fsockopen/cURL: ? SoapClient: ? DOMDocument: ? GZip: ? Multibyte String: ? Remote Post: ? Remote Get: ? ### Database ### WC Database Version: 3.8.1 WC Database Prefix: itsn_ MaxMind GeoIP Database: ? Total Database Size: 24.25MB Database Data Size: 15.90MB Database Index Size: 8.35MB itsn_woocommerce_sessions: Data: 0.09MB + Index: 0.02MB + Engine InnoDB itsn_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB itsn_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB itsn_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB itsn_woocommerce_order_items: Data: 0.05MB + Index: 0.02MB + Engine InnoDB itsn_woocommerce_order_itemmeta: Data: 0.17MB + Index: 0.19MB + Engine InnoDB itsn_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB itsn_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB itsn_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB itsn_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB itsn_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB itsn_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB itsn_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB itsn_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB itsn_cfs_sessions: Data: 0.00MB + Index: 0.00MB + Engine MyISAM itsn_cfs_values: Data: 0.01MB + Index: 0.01MB + Engine MyISAM itsn_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB itsn_comments: Data: 0.11MB + Index: 0.09MB + Engine InnoDB itsn_failed_jobs: Data: 0.00MB + Index: 0.00MB + Engine MyISAM itsn_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB itsn_mailchimp_carts: Data: 0.00MB + Index: 0.00MB + Engine MyISAM itsn_mailchimp_jobs: Data: 0.00MB + Index: 0.00MB + Engine MyISAM itsn_options: Data: 2.52MB + Index: 0.13MB + Engine InnoDB itsn_postmeta: Data: 5.52MB + Index: 6.03MB + Engine InnoDB itsn_posts: Data: 2.52MB + Index: 0.52MB + Engine InnoDB itsn_pp_login_builder: Data: 0.01MB + Index: 0.00MB + Engine MyISAM itsn_pp_password_reset_builder: Data: 0.01MB + Index: 0.00MB + Engine MyISAM itsn_pp_registration_builder: Data: 0.01MB + Index: 0.00MB + Engine MyISAM itsn_queue: Data: 0.00MB + Index: 0.00MB + Engine MyISAM itsn_termmeta: Data: 0.05MB + Index: 0.03MB + Engine InnoDB itsn_terms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB itsn_term_relationships: Data: 0.08MB + Index: 0.06MB + Engine InnoDB itsn_term_taxonomy: Data: 0.02MB + Index: 0.03MB + Engine InnoDB itsn_usermeta: Data: 0.08MB + Index: 0.06MB + Engine InnoDB itsn_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB itsn_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB itsn_wc_product_meta_lookup: Data: 0.05MB + Index: 0.09MB + Engine MyISAM itsn_wc_tax_rate_classes: Data: 0.00MB + Index: 0.01MB + Engine MyISAM itsn_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB itsn_wfblockediplog: Data: 0.00MB + Index: 0.00MB + Engine MyISAM itsn_wfblocks7: Data: 0.00MB + Index: 0.00MB + Engine MyISAM itsn_wfconfig: Data: 1.48MB + Index: 0.02MB + Engine MyISAM itsn_wfcrawlers: Data: 0.00MB + Index: 0.00MB + Engine MyISAM itsn_wffilechanges: Data: 0.00MB + Index: 0.00MB + Engine MyISAM itsn_wffilemods: Data: 1.69MB + Index: 0.34MB + Engine MyISAM itsn_wfhits: Data: 0.02MB + Index: 0.01MB + Engine MyISAM itsn_wfhoover: Data: 0.00MB + Index: 0.00MB + Engine MyISAM itsn_wfissues: Data: 0.01MB + Index: 0.01MB + Engine MyISAM itsn_wfknownfilelist: Data: 0.89MB + Index: 0.11MB + Engine MyISAM itsn_wflivetraffichuman: Data: 0.00MB + Index: 0.00MB + Engine MyISAM itsn_wflocs: Data: 0.00MB + Index: 0.00MB + Engine MyISAM itsn_wflogins: Data: 0.03MB + Index: 0.01MB + Engine MyISAM itsn_wfls_2fa_secrets: Data: 0.02MB + Index: 0.02MB + Engine InnoDB itsn_wfls_settings: Data: 0.02MB + Index: 0.00MB + Engine InnoDB itsn_wfnotifications: Data: 0.00MB + Index: 0.00MB + Engine MyISAM itsn_wfpendingissues: Data: 0.00MB + Index: 0.00MB + Engine MyISAM itsn_wfreversecache: Data: 0.00MB + Index: 0.00MB + Engine MyISAM itsn_wfsnipcache: Data: 0.00MB + Index: 0.00MB + Engine MyISAM itsn_wfstatus: Data: 0.09MB + Index: 0.04MB + Engine MyISAM itsn_wftrafficrates: Data: 0.00MB + Index: 0.00MB + Engine MyISAM itsn_woocommerce_square_customers: Data: 0.00MB + Index: 0.00MB + Engine MyISAM itsn_yoast_seo_links: Data: 0.00MB + Index: 0.00MB + Engine MyISAM itsn_yoast_seo_meta: Data: 0.01MB + Index: 0.02MB + Engine MyISAM ### Security ### Secure connection (HTTPS): ? Hide errors from visitors: ? ### Active Plugins (17) ### Category pagination fix: by rahnas – 3.2.2 Classic Editor: by WordPress Contributors – 1.5 Contact Form 7: by Takayuki Miyoshi – 5.1.6 Custom Field Suite: by Matt Gibbs – 2.5.16 Jetpack by WordPress.com: by Automattic – 8.0 Klarna Order Management for WooCommerce: by klarna krokedil – 1.4.0 – Not tested with the active version of WooCommerce Klarna Payments for WooCommerce: by krokedil klarna automattic – 2.0.4 – Not tested with the active version of WooCommerce Really Simple SSL: by Rogier Lankhorst Mark Wolters – 3.2.6 UpdraftPlus - Backup/Restore: by UpdraftPlus.Com DavidAnderson – 1.16.21 Accessibility by UserWay: by UserWay.org – 1.2 WooCommerce PayPal Checkout Gateway: by WooCommerce – 1.6.18 WooCommerce PayTrace Payment Gateway: by VanboDevelops – 2.3.4 – Not tested with the active version of WooCommerce WooCommerce Product Add-ons: by WooCommerce – 3.0.10 – Not tested with the active version of WooCommerce WooCommerce Services: by Automattic – 1.22.1 – 1.22.2 is available WooCommerce: by Automattic – 3.8.1 Wordfence Security: by Wordfence – 7.4.2 Yoast SEO: by Team Yoast – 12.6.2 ### Inactive Plugins (6) ### Akismet Anti-Spam: by Automattic – 4.1.3 Facebook for WooCommerce: by Facebook – 1.9.15 – Not tested with the active version of WooCommerce Hello Dolly: by Matt Mullenweg – 1.7.2 Mailchimp for WooCommerce: by Mailchimp – 2.3 – Not tested with the active version of WooCommerce MC4WP: Mailchimp for WordPress: by ibericode – 4.7.3 WooCommerce Square: by WooCommerce – 2.0.7 – 2.0.8 is available ### Settings ### API Enabled: – Force SSL: – Currency: USD ($) Currency Position: left Thousand Separator: , Decimal Separator: . Number of Decimals: 2 Taxonomies: Product Types: external (external) grouped (grouped) simple (simple) variable (variable) Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog) exclude-from-search (exclude-from-search) featured (featured) outofstock (outofstock) rated-1 (rated-1) rated-2 (rated-2) rated-3 (rated-3) rated-4 (rated-4) rated-5 (rated-5) Connected to WooCommerce.com: – ### WC Pages ### Shop base: ? Page ID is set but the page does not exist Cart: #124 - /view-cart/ Checkout: #126 - /checkout/ My account: #470 - /my-account/ Terms and conditions: ? Page not set ### Theme ### Name: Archer Version: – 0 is available Author URL: https://tidythemes.com/ Child Theme: ? – If you are modifying WooCommerce on a parent theme that you did not build personally we recommend using a child theme. See: How to create a child theme WooCommerce Support: ? ### Templates ### Overrides: itsn/woocommerce/archive-product.php itsn/woocommerce/cart/cart.php itsn/woocommerce/content-product.php itsn/woocommerce/content-single-product.php itsn/woocommerce/global/quantity-input.php itsn/woocommerce/loop/add-to-cart.php itsn/woocommerce/loop/loop-end.php itsn/woocommerce/loop/loop-start.php itsn/woocommerce/loop/pagination.php itsn/woocommerce/loop/price.php itsn/woocommerce/single-product/product-image.php itsn/woocommerce/single-product/related.php itsn/woocommerce/single-product/short-description.php itsn/woocommerce/single-product/tabs/tabs.php itsn/woocommerce/single-product/title.php itsn/woocommerce/taxonomy-product_cat.php ### Action Scheduler ### Complete: 4 Oldest: 2019-11-18 12:10:59 -0700 Newest: 2019-12-10 12:27:07 -0700 Pending: 0 Oldest: – Newest: – Canceled: 0 Oldest: – Newest: – In-progress: 0 Oldest: – Newest: – Failed: 0 Oldest: – Newest: –
Hi @abrana,
This kind of problem is usually caused by either a conflict with your theme or with another plugin.
?
The best way to determine this is to:
?- Temporarily switch your theme to Storefront
- Disable all plugins except for WooCommerce, Klarna, and PayTrace
- Repeat the action that is causing the problem
If you’re not seeing the same problem after completing the conflict test, then you know the problem was with the plugins and/or theme you deactivated.
To figure out which plugin is causing the problem, reactivate your other plugins one by one, testing after each one until you find the one causing conflict.
You can find a more detailed explanation on how to do a conflict test here.
If you’re still running into issues after these tests, I’d recommend heading to WooCommerce.com > My Account > Tickets to open a ticket.
Be sure to select either PayTrace or Klarna Payments as the extension you need help with so that the ticket will be correctly routed to the developers responsible for them.
You might want to include a link to this forum thread so that we can keep track of what’s already been done.
Cheers.
Thanks @luminus I’ll try that.
You’re welcome @abrana.
I’ll go ahead and mark this thread as resolved now since your next move would be to open a ticket in the appropriate quarters if conflict testing doesn’t help you sort things out.
Cheers.
Ok no problem
- The topic ‘Uncaught TypeError: r(…).payment is not a function’ is closed to new replies.