after last update, the afterpay button is only visible by selecting black on mint in the settings. The white on black choice shows as a white rectangle. Please fix and send update. Thx
]]>Happens on the checkout page. Is this error a conflict with another plugin? Seems to happen only when I have the Afterpay plugin activated.
Uncaught (in promise) TypeError: Cannot read properties of null (reading ‘style’)
at n.je (chunk-placement.js:1:21113)
at n. (chunk-placement.js:1:33950)
at h (square-marketplace.js:2:205191)
at Generator. (square-marketplace.js:2:206537)
at Generator.next (square-marketplace.js:2:205620)
at r (square-marketplace.js:2:304119)
at c (square-marketplace.js:2:304322)
Below is what I see in chunk-placement.js, (bolded is the part where the red underline is shown)
this.showPayMonthly)
this.shadowRoot.querySelector(“.placement-payment-schedule-container”).style.setProperty(“display”, “none”),
this.shadowRoot.querySelector(“.afterpay-paragraph”).style.setProperty(“display”, “block”);
else
this.shadowRoot.querySelector(“.placement-payment-schedule-container”).style.removeProperty(“display”),
this.shadowRoot.querySelector(“.afterpay-paragraph”).style.setProperty(“display”, “none”);
break;
For context, the website uses CheckoutWC and I cannot see an element with the class of ‘afterpay-paragraph’. However, I have also tried deactivating CheckoutWC and confirmed that this element doesn’t exist on the default WooCommerce checkout template as well.
]]>Hey Team,
I’m encountering an error while using the Afterpay Gateway for WooCommerce plugin. The error message I receive is: null is not an object (evaluating ‘this.shadowRoot.querySelector(“.afterpay-paragraph”).style’)
It seems to be related to an issue with the shadow DOM when trying to access the .afterpay-paragraph
element. I have also generated a Flare error report for further details, which you can review here: https://flareapp.io/share/LPl0gNaP
Afterpay is working for my customers except one specific customer.
They try to place an order and click complete order. Then it reloads and says page cannot be found. error. But have had other customers place orders and complete the order with no troubles.
Here is the afterpay log: The orders they are trying to place is missing logs and unsure how to fix.
2024-10-22T00:06:34+00:00Notice Processing payment for WooCommerce Order #11113… Additional context2024-10-22T00:06:34+00:00Notice Afterpay order token: 001.2un0ddasrrbnpc53cpv6e812mhjol0acinhl4qmn8hv4ji7s Additional context2024-10-22T00:11:04+00:00Notice Firing cron by schedule… Additional context2024-10-22T00:26:18+00:00Notice Firing cron by schedule… Additional context2024-10-22T00:41:20+00:00Notice Firing cron by schedule… Additional context2024-10-22T00:56:24+00:00Notice Firing cron by schedule… Additional context2024-10-22T01:11:09+00:00Notice Firing cron by schedule… Additional context2024-10-22T01:26:04+00:00Notice Firing cron by schedule… Additional context2024-10-22T01:33:05+00:00Notice Processing payment for WooCommerce Order #11113… Additional context2024-10-22T01:33:05+00:00Notice Afterpay order token: 001.7aplo8k9ikh197cn82gh0hqak6t89e37116d6uk6851ojcbc Additional context2024-10-22T01:41:47+00:00Notice Firing cron by schedule… Additional context2024-10-22T01:56:19+00:00Notice Firing cron by schedule… Additional context2024-10-22T02:11:08+00:00Notice Firing cron by schedule… Additional context2024-10-22T02:26:25+00:00Notice Firing cron by schedule… Additional context2024-10-22T02:41:05+00:00Notice Firing cron by schedule… Additional context2024-10-22T02:56:05+00:00Notice Firing cron by schedule… Additional context2024-10-22T03:11:13+00:00Notice Firing cron by schedule… Additional context2024-10-22T03:26:03+00:00Notice Firing cron by schedule… Additional context2024-10-22T03:41:03+00:00Notice Firing cron by schedule… Additional context2024-10-22T03:56:05+00:00Notice Firing cron by schedule… Additional context2024-10-22T04:11:08+00:00Notice Firing cron by schedule… Additional context2024-10-22T04:26:15+00:00Notice Firing cron by schedule… Additional context2024-10-22T04:41:15+00:00Notice Firing cron by schedule… Additional context2024-10-22T04:41:16+00:00Notice Processing payment for WooCommerce Order #11114… Additional context2024-10-22T04:41:17+00:00Notice Afterpay order token: 001.dg642h74llq1h5e7ajncu532h42uqpf66uctlvoiuoen29h1 Additional context2024-10-22T04:56:07+00:00Notice Firing cron by schedule… Additional context2024-10-22T05:11:14+00:00Notice Firing cron by schedule… Additional context2024-10-22T05:26:08+00:00Notice Firing cron by schedule… Additional context2024-10-22T05:28:46+00:00Notice Processing payment for WooCommerce Order #11116… Additional context2024-10-22T05:28:46+00:00Notice Afterpay order token: 001.rkhbetkl48jvjlpaiq82449frunrrbiccmjar8vd0c1rh77e Additional context2024-10-22T05:41:13+00:00Notice Firing cron by schedule… Additional context2024-10-22T05:56:06+00:00Notice Firing cron by schedule… Additional context2024-10-22T06:11:24+00:00Notice Firing cron by schedule… Additional context
I think they are missing these logs when placing an order: How do we get this working for my customer as I do not want to lose this customer.
2024-10-21T11:53:31+00:00Notice [EC] Afterpay order token: 001.ad2ebjdat0co4dq3v1uv3mkrgg9v5ilm52r1a6j7ne3bt654 Additional context2024-10-21T11:54:20+00:00Notice [EC] Creating WC order for token: 001.ad2ebjdat0co4dq3v1uv3mkrgg9v5ilm52r1a6j7ne3bt654 Additional context2024-10-21T11:54:20+00:00Notice [EC] WC order #11110 created. Additional context2024-10-21T11:54:20+00:00Notice [EC] Processing payment for WooCommerce Order #11110… Additional context2024-10-21T11:54:21+00:00Notice [EC] Payment APPROVED for WooCommerce Order #11110 (Afterpay Order #567711877).
*** this customer has tried the following:
They have tried via the app and via the internet on chrome.
They also tried on the phone as well as a computer.
They have deleted the order and replaced it to still come up as failed.
They have logged out and back into the app and still failed.
They deleted the app and redownloaded to have the latest version.
They have over the amount needed in their bank account for afterpay to create the order.
Apparently they have used afterpay card and had success but they are trying to use it online on our site and having errors.
They click to place the order and my website comes up as the page doesn’t exist.
Dear Afterpay Development Team,
I am reaching out to inquire about accessing the Afterpay transaction fees associated with each order outside of the Afterpay Business Hub. Currently, when utilising the WooCommerce Orders API, I am unable to locate the transaction fees incurred through Afterpay’s gateway. If this information is not presently available, I was wondering if adding the transaction fee details to each order is part of your development roadmap.
The reason for my inquiry is that other payment gateways we have worked with include the transaction fee as part of the order’s metadata. This inclusion greatly benefits multiple reconciliation plugins—including one that I have developed—that rely on this information being readily available within the WooCommerce store. It would be immensely helpful if these fees were accessible within the store’s scope without the need for special permissions or additional API calls.
Thank you for your time and consideration. I look forward to your response.
]]>Afterpay is automatically selected as preferred payment method on the checkout page, although it is the third in row of available methods, after credit card and paypal. Is there a way to make the first in row (credit card) be automatically selected as the preferred payment method?
It must have something to do with this plugin, because when I disable it, it automatically check the first in row as selected (as it should).
]]>We have orders that comes in via woocommerce. They have afterpay order token in the order notes.
Example:
Afterpay order token: 001.m6p88dr7corsiskd3vkm18e09tsq2ir9i4jtpeqantfgd38k
Afterpay log:
09-17-2024 @ 10:02:27 – Processing payment for WooCommerce Order #388301…
09-17-2024 @ 10:02:27 – Afterpay order token: 001.m6p88dr7corsiskd3vkm18e09tsq2ir9i4jtpeqantfgd38k
09-17-2024 @ 10:08:06 – Firing cron by schedule…
09-17-2024 @ 10:23:31 – Processing payment for WooCommerce Order #388312…
09-17-2024 @ 10:23:31 – Afterpay order token: 001.h7pq63upsh26u214a2vhbghl9dfb7simghjir7vbfin0q5vq
09-17-2024 @ 10:23:38 – Firing cron by schedule…
09-17-2024 @ 10:23:56 – Payment APPROVED for WooCommerce Order #388312 (Afterpay Order #551253528).
09-17-2024 @ 10:27:32 – Processing payment for WooCommerce Order #388315…
09-17-2024 @ 10:27:32 – Afterpay order token: 001.hmg6elsbh32g5sc4bdt9j07i0namgqtrtrpjqvjp3q5agknq
09-17-2024 @ 10:28:06 – Payment APPROVED for WooCommerce Order #388315 (Afterpay Order #551256845).
Random order does not receive a Payment approved from afterpay side and stays at pending and we loses the sale.
Is there something that we are missing in the connection with Afterpay?
]]>Hi,
Is it normal that using a Private window in Firefox would result in Afterpay not loading correctly? On cart page the button displays with no background, and on checkout no payment breakdown loads after selecting Afterpay. I have tested with Google incognito and it works fine. Safari private browsing is also ok. Just seems to be Firefox private window for some reason.
Thanks.
]]>We have issues on our clients webshop when adding product to the cart en go to the checkout page.
See error:
[Thu Aug 15 08:04:40.065185 2024] [php:error] [pid 127431] [client 86.89.255.207:55418] PHP Fatal error: Declaration of GuzzleHttp6\Psr7\Uri::getScheme() must be compatible with Psr\Http\Message\UriInterface::getScheme(): string in …./wp-content/plugins/afterpay-payment-gateway-for-woocommerce/vendor-static/guzzlehttp/psr7/src/Uri.php on line 423,
]]>Hi, when updating the lastest version I had a critial error.
WordPress caught an error with one of your plugins, Afterpay Gateway for WooCommerce.
Error Details ============= An error of type E_ERROR was caused in line 60 of the file /home/public_html/wp-content/plugins/afterpay-gateway-for-woocommerce/afterpay-gateway-for-woocommerce.php. Error message: Uncaught Error: Failed opening required ‘/home/public_html/wp-content/plugins/afterpay-gateway-for-woocommerce/class/Cron/Afterpay_Plugin_Cron.php’ (include_path=’.:/opt/alt/php81/usr/share/pear:/opt/alt/php81/usr/share/php:/usr/share/pear:/usr/share/php’) in /home/public_html/wp-content/plugins/afterpay-gateway-for-woocommerce/afterpay-gateway-for-woocommerce.php:60 Stack trace: #0 /home/public_html/wp-content/plugins/afterpay-gateway-for-woocommerce/afterpay-gateway-for-woocommerce.php(341): Afterpay_Plugin::load_classes() #1 /home/public_html/wp-content/plugins/afterpay-gateway-for-woocommerce/afterpay-gateway-for-woocommerce.php(450): Afterpay_Plugin::init() #2 /home/public_html/wp-includes/class-wp-hook.php(324): Afterpay_Plugin::upgrade_complete(Object(Plugin_Upgrader), Array) #3 /home/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #4 /home/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #5 /home/public_html/wp-admin/includes/class-plugin-upgrader.php(421): do_action(‘upgrader_proces…’, Object(Plugin_Upgrader), Array) #6 /home/public_html/wp-admin/update.php(51): Plugin_Upgrader->bulk_upgrade(Array) #7 {main} thrown
Do I need to rollback to the previous version? Any help would be appreciated. Thank you.
]]>I recently update afterpay plugin to version 3.8.6 and it show the error and send email as well that your site is experiencing technical issue.
Error Details
=============
An error of type E_COMPILE_ERROR was caused in line 60 of the file /home/customer/www/therapylights.com.au/public_html/wp-content/plugins/afterpay-gateway-for-woocommerce/afterpay-gateway-for-woocommerce.php. Error message: require_once(): Failed opening required ‘/home/customer/www/therapylights.com.au/public_html/wp-content/plugins/afterpay-gateway-for-woocommerce/class/Cron/Afterpay_Plugin_Cron.php‘ (include_path=’.:/usr/local/php74/pear’)
please fix this issue in your plugin ASAP so I can update it again.
Thanks
]]>Dear Support Team,
I am encountering an issue on the checkout page of our website where an empty box appears for the payment methods “Afterpay”. This issue is affecting the user experience as it causes confusion during the checkout process.
This empty box is creating a gap in the payment method options, which may confuse customers and potentially lead to abandoned carts.
I would appreciate it if you could look into this issue and provide a solution to remove the empty box. Maybe you can give me an advice how can I add info like this :
If any additional information is required, please let me know.
Thank you for your assistance.
]]>We are using the Storewide discount plugin in conjunction with the Afterpay plugin. They have worked together fine, however the last month has seen Aterpay not including the discount and charging full price.
After plenty of investigation it seems that when completing the order from the Checkout page it includes the discount and charges correctly. But if the customer clicks the “Express checkout” button on the cart page it doesn’t apply the discount.
For the moment we have disabled the Express checkout button to prevent the issue, but we would like to enable it again in the future.
WP: 6.5.5
Woocommerce: 9.0.2
Afterpay plugin: 3.8.5
Storewide Sale plugin: 1.0.6
Hi, is there a way I can move the Afterpay checkout button on my cart page to be below the Proceed to Checkout button? Please see my website cart page for reference. Thank you.
]]>Hi, I’m experiencing this issue: “Sorry, there was a problem preparing your payment. (Error #403: Transaction not allowed).” I have tried re-saving all the API credentials and configuration, and I’m using the latest plugin version, but still the issue persists.
The afterpay log shows an API Error #403: “merchant_channel_setup_error,” which I think is related to afterpay api, but I’ll still add this topic here in case I’m wrong.?
]]>When a customer uses AfterPay and closes before completing a transaction it doesn’t redirect back to checkout – instead to a different version of checkout.
When you do the same with PayPal it redirects back to the checkout screen – can’t AfterPay do the same?
]]>Hi there, I’m finding sometimes it’s there, sometimes it’s not. I’ll click around the site a bit and come back and maybe it returns. Maybe after I fill out some shipping address info, but not always. Latest version, latest WP, latest Woo.
]]>After last WordPress update, the plugin suddenly stopped working completely and it no longer appears elegible on checkout page as a payment method.
]]>Updated to the recent version and the Afterpay image changed from the logo on a mint background to some ugly image. A green background with the word Afterpay and a dollar symbol in the front of it. Why? Also, how do we change it back?
]]>Afterpay auto updated from 3.7.3 to 3.8.4, need to re-save, when I do I get a 403 forbidden error, on two sites.
Is this a known issue?
Thanks in advance.
]]>So when you go to cart page and select afterpay the little breakdown of price split is missing. It was there prior to upgrade.
Here is how it looks: https://ibb.co/SsV4cXV
]]>I am adding product to cart and from checkout I am selecting afterpay as payment gateway and after adding card details and all when I am paying – payment done successful but then it shows error like below and it is not creating an order in Woocommerce -> Order; but the money is transacted from customer’s account; this happens only with afterpay payment option only. and yes CURL is enabled in this server which I confirmed.
Fatal error: Uncaught Error: Class ‘czoyMDoiV0NfUHJvZHVjdF9WYXJpYXRpb24iOw==’ not found in /public_html/wp-content/plugins/afterpay-gateway-for-woocommerce/class/WC_Gateway_Afterpay.php:2422 Stack trace: #0 /public_html/wp-content/plugins/afterpay-gateway-for-woocommerce/class/WC_Gateway_Afterpay.php(3037): WC_Gateway_Afterpay->create_wc_order_from_afterpay_quote(18829) #1 /public_html/wp-content/plugins/afterpay-gateway-for-woocommerce/class/WC_Gateway_Afterpay.php(3255): WC_Gateway_Afterpay->confirm_afterpay_quote(18829, ‘001.li6dhskivvn…’) #2 /public_html/wp-includes/class-wp-hook.php(285): WC_Gateway_Afterpay->override_single_post_template_for_afterpay_quotes() #3 /public_html/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(false, Array) #4 /public_html/wp-includes/plugin.php(478): WP_Hook->do_action(Array) #5 /public_html/wp-includes/template-loader.php(13): do_action(‘template_redire…’) #6 /home2/a in?/public_html/wp-content/plugins/afterpay-gateway-for-woocommerce/class/WC_Gateway_Afterpay.php?on line?2422
There has been a critical error on your website.
]]>Afterpay Plugin causing conflict with credit card & PayPal payment options.
Wasn’t allowing some people to type their credit card numbers and you couldn’t choose PayPal. It would just revert back to the credit card option.
Turned off Afterpay and the issue resolved.
These issues appeared
Checkout page > Inspect
Square.Marketplace.UnexpectedError: Loading chunk 420 failed. (missing: https://portal.afterpay.com/square-marketplace-js/chunk-placement.js)
Uncaught TypeError: Square.Marketplace.SquarePlacement is not a constructor
Square.Marketplace.UnexpectedError: Loading chunk 420 failed.
(missing: https://portal.afterpay.com/square-marketplace-js/chunk-placement.js)
Getting the below error in the latest update
DevTools failed to load source map: Could not load content for https://portal.afterpay.com/apps/payment-schedule/1.27.0/immer.esm.js.map: HTTP error: status code 403, net::ERR_HTTP_RESPONSE_CODE_FAILURE
]]>From the WooCommerce logs for this plugin we’re recieving the following error:
2024-01-31T16:02:01+00:00 CRITICAL Cannot redeclare afterpay_display_payment_schedule() (previously declared in /home/customer/www/--removed--.com/public_html/wp-content/plugins/afterpay-gateway-for-woocommerce/class/WC_Gateway_Afterpay/instalments.html.php:7) in /home/customer/www/
--removed--
.com/public_html/wp-content/plugins/afterpay-gateway-for-woocommerce/class/WC_Gateway_Afterpay/instalments.html.php on line 7
This was causing issues during checkout and have disable the plugin for now.
]]>Hi
I get an error when trying to connect to the Afterpay Production account in the plugin settings in Woocommerce. I type in the Merchant ID (not copy so I don’t have the extra space. I manually type in the Secret ID for Product also.
The client gave me the secret ID from an email he received. Didn’t work Copy or error below.
I went googling, and it says the Secret ID is the password for your account? Didn’t think that was the case, but tried it anyway and didn’t work either.
Both times keep getting this error when trying to connect Production mode.
Afterpay API Error #401: Your Afterpay API credentials are incorrect. (Error ID: 0f8754665d9a9a9d)
Client site is ready to go live, but cannot get this connected successfully.
I thought the Secret ID could be found in the Afterpay account from a previous client, but I am not sure. I have connected an Afterpay account via Woocommerce for over a year , so need to double check HOW to get this client connected urgently for the site to go live.
Can you please help?
]]>Hi guys,
Can you explain why new versions of this plugin include square-marketplace.js ?
It’s adding to page load times and impacting our core web vitals.
Is it necessary?
Jason
Hi!
After upgrading to the last version of the plugin we’ve experienced fatal errors when accessing the backend, with the following backtrace:
Uncaught Error: Call to a member function get_cart() on null in /var/www/wp-content/plugins/afterpay-gateway-for-woocommerce/class/WC_Gateway_Afterpay.php:826
Stack trace:
#0 /var/www/wp-content/plugins/afterpay-gateway-for-woocommerce/class/WC_Gateway_Afterpay.php(2515): WC_Gateway_Afterpay->cart_products_are_supported()
#1 /var/www/wp-content/plugins/afterpay-gateway-for-woocommerce/class/WC_Gateway_Afterpay_Blocks_Support.php(70): WC_Gateway_Afterpay->get_cart_placement_attributes()
#2 /var/www/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/Payments/PaymentMethodRegistry.php(62): WC_Gateway_Afterpay_Blocks_Support->get_payment_method_data()
#3 /var/www/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/Payments/Api.php(92): Automattic\WooCommerce\Blocks\Payments\PaymentMethodRegistry->get_all_registered_script_data()
#4 /var/www/wp-includes/class-wp-hook.php(324): Automattic\WooCommerce\Blocks\Payments\Api->add_payment_method_script_data('')
#5 /var/www/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters('', Array)
#6 /var/www/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#7 /var/www/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypes/MiniCart.php(201): do_action('woocommerce_blo...')
#8 /var/www/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypes/AbstractBlock.php(100): Automattic\WooCommerce\Blocks\BlockTypes\MiniCart->enqueue_data()
#9 /var/www/wp-includes/class-wp-hook.php(324): Automattic\WooCommerce\Blocks\BlockTypes\AbstractBlock->enqueue_editor_assets('')
#10 /var/www/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)
#11 /var/www/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#12 /var/www/wp-admin/edit-form-blocks.php(272): do_action('enqueue_block_e...')
#13 /var/www/wp-admin/post.php(187): require('/var/www/...')
#14 {main}
thrown in /var/www/wp-content/plugins/afterpay-gateway-for-woocommerce/class/WC_Gateway_Afterpay.php on line 826
I’ve fixed this problem by replacing, in WC_Afterpay_Gateway.php, the line 825 from:
if (did_action('wp_loaded')) {
To:
if (did_action('wp_loaded') && WC()->cart)) {
Please consider releasing a new version with this patch.
]]>Hi team,
I’m having trouble getting the Express Checkout to work and some users are experiencing an error notice on the afterpay portal website saying “Delivery option not provided”, please refer this screenshot url: https://tinyurl.com/ytp7rehq .
I use the Advanced Flat Rate Shipping For WooCommerce plugin. I have 2 shipping zones for Australia, NZ.
After troubleshooting this for a while I can see that on the Cart page, only the country and region are selected, i have tried with adding full address with postal code. but same issue facing.
Anyone else experiencing this? Looking forward to your reply.
Why are you loading square_marketplace_js in your latest update? After reviewing the plugin code I can see multiple calls and enqueue scripts from square_marketplace_js loading chunk-analytics.js chunky-placement.js and chunk-analytics-vendors.js
I am currently not using Square for WooCommerce so I’m unsure why the extra JS is being added to my product pages?
If this is used to gather analytics for Afterpay you should have the option to disable this
]]>