Hi,
I’ve been looking at Nexi Checkout combined with WooCommerce Subscriptions.
I will have some storage units what I want to rent out on a montly basis.
When using Nexi Checkout combined with WooCommerce Subscriptions – is it then possible to have automatic payment monthly for the users (so that money get drawn automatically from their card), or do the customers have to log on to my website and make the payment?
If so, is there any documentation?
Thanks in advance!
Joakim
Hello Krokedil Support,
i have a problem with the plugin on the mentioned page. Error on payment page: Amount does not match sum of orderitems.
I don’t know where this comes from, probably a rounding error.
First i found out that the error occures with german orders, when i toggle “Round tax at subtotal level, instead of rounding per line” under woocommerce – tax, it happens to e.g. danish orders.
Maybe its a rounding problem because shipping costs are entered in net amounts and rounding issues occure. I have not found out the root cause of the issue. I have to switch to the old payment provider in the meantime.
Best regards, Max
]]>Description
We are experiencing an issue with the payment gateway provider logo/icon for Nets/DIBS on a site. Instead of displaying the default logo icon alongside the name of the payment gateway, we are seeing a broken image icon. Upon inspection, it appears that the image is returning a 404 response.
I’ve open an issue with Nets, but it might be a good idea to share the problem here as well.
Expected behaviour
The default logo icon of Nets/DIBS should be displayed together with the name of the payment gateway.
Current behaviour
The logo icon is broken and returns a 404 response. The path to the image that is currently broken is:
https://cdn.dibspayment.com/logo/checkout/combo/horiz/DIBS_checkout_kombo_horizontal_04.png
This asset is included in the classes for payment-methods in the plugin. Path:
/dibs-easy-for-woocommerce/classes/class-nets-easy-gateway.php:80
Steps to Reproduce
This plugin not worked with “WooCommerce Subscriptions” plugin.
Please let me know how to work your plugin with “WooCommerce Subscriptions” plugin ? I need subscription payment checkout.
How can i transfer amount from Nets portal to bank account ?
Send me screenshot please.
Also you document link shown 404 page. Please guide us for payout amount from Nets portal to Bank account.
Hello, I want to put a fix amount to the Pay button in the card payment. How can I do that? Is there hook filter how to change the total amount to pay? I had tried using the customization hooks in the documentation but got no luck.
Thank you in advance for your help.
]]>Hi!
We see a lot of this: “PHP Deprecated:$dibs_settings Creation of dynamic property Nets_Easy_Subscriptions::$dibs_settings is deprecated in /path/wp-content/plugins/dibs-easy-for-woocommerce/classes/class-nets-easy-subscriptions.php on line 47”
Is it something you are aware of?
Hi, I was looking for potential debug errors with PHP, and one of them I got, was this.
Notice: Funktionen Automattic\WooCommerce\Blocks\Integrations\IntegrationRegistry::register blev kaldt forkert. “nets_easy” er allerede registreret. Se venligst Fejlfinding i WordPress for mere information. (denne meddelelse blev tilf?jet i version 4.6.0). in /var/www/[REDACTED]/www/wp-includes/functions.php on line 6031
When I disable the plug-in, it’s gone. I’ve updated my WooCommerce+this plugin to the latest. PHP Version: 7.4.
Thank you for your help.
]]>Hej Krokedil!
Wanted to bring a shop up to date (and speed) by enabling the latest features of WooCommerce. They have now set their HPOS (faster Order Storage solution) as default for new shops.
I could not activate this, because of one incompatible plugin: Nets Easy for WooCommerce.
Please prioritise adding support for this. It is the WC default already.
Thanks!
Regards, Andreas
More details here: https://woocommerce.com/document/high-performance-order-storage/
And here: https://developer.woocommerce.com/2022/09/14/high-performance-order-storage-progress-report/?_gl=1wlscpf_gcl_awR0NMLjE2OTUyOTg2MDAuQ2owS0NRancwNi1vQmhDNkFSSXNBR3V6ZHcxTzE2aEI2c0RKUjZtWXp3NHlZamN0bU1vS3RwQ0dUZVZaTVk2RGpxTVZjb1Zwem5hNnZrMGFBcG55RUFMd193Y0I._gcl_auMTc5MzI4MjQ5OC4xNjkzMzkyODUz_gaMTM5Nzk4MzIyMy4xNjkyNjA5MDY2_ga_98K30SHWB2*MTY5NTMwMTU5OS41LjAuMTY5NTMwMTU5OS4wLjAuMA..&_ga=2.161804860.1096672852.1695298570-1397983223.1692609066&_gac=1.229430766.1695298601.Cj0KCQjw06-oBhC6ARIsAGuzdw1O16hB6sDJR6mYzw4yYjctmMoKtpCGTeVZMY6DjqMVcoVpzna6vk0aApnyEALw_wcB
]]>Hello
PHP 8.2:
wp-content/plugins/dibs-easy-for-woocommerce/classes/class-nets-easy-confirmation.php:57
“Constant FILTER_SANITIZE_STRING is deprecated”
The user (B2B) is logged in and on the checkout page. When I select B2C (Private) the address is filled automatically but when I switch to B2B (Business) I have to manually enter the email, postal code etc … Did I forget to select something in backend ? I would like the fields to be filled automatically when I select Business. How can I achieve this ?
Thank you for any help
]]>Hi there,
we’re using WordPress 6.1.1, WooCommerce 7.4.1 and Kadence WooCommerce Email Designer 1.5.7. It seems, when paying an order through Nets Easy 2.2.2, “Order Completed” emails lack the design configured through the Kadence WooCommerce Email Designer. I removed the call to add_action(…) in line 22 in classes/class-nets-easy-email.php, but that didn’t help.
Assuming, I do not need the payments details added by classes/class-nets-easy-email.php, is there a way to get the email-design back? (a config, a setting, a tweak to the plugin code)
Thanks!
Maria
Hi there,
When trying to refund an order, an error / alert pop-ups “API Error 405, message: Method Not Allowed”. Plugin version: 2.1.0. Any idea why this error shows up preventing an order refund?
There is an issue with the embedded form when users use autofill on mobile browsers. The details are filled in, but the “Pay” button cannot be clicked. It appears that the data is not being parsed through the form, which may be the reason for this issue.
]]>Hi
Lets say I charge 290.50 without VAT, which then would be the same as 363.125
including VAT which is the amount to charge.
In WC I am working with 2 decimals, so it shows me: 363.13
Because it rounds up.
When the amount is being charged on the pending credit card however, the amount being send is 363.12 (2 decimals I guess, without rounding up).
This will lead to the following error message, and loss of money unless we manually charge it.
Nets error message: Cannot overcharge payment. Reserved amount: 36312. Previously charged amount: 0. Tried to charge: 36313.
From where does this error originate ?
]]>Hi there,
My website is https://www.staypure.no
We’re using Easy Nets as a payment method. They’ve come out with payment after 14 days through invoice option. We don’t want that. How to remove it?
Please go to https://www.staypure.no and add any product to the cart and see the checkout page. I want to remove afterpay riverty. How to do that?
]]>I try to make a order to the US and I enter my country, state, and zip. Then in the iframe for dibs I give my address information. For the test order it gives me the error that shipping state is required.
]]>Hi, sorry to keep posting a lot here.
the website I am working on, worked fine till yesterday, and no changes been made ever since, and suddenly today when I wanted to test a payment it just wont go through, it errors out with different reference number each time.
Here is the log from woocommerce status:
11-01-2022 @ 10:19:57 - {"id":"029000006360e4bde37612f41d353ec7","type":"POST","title":"Create order","request_url":"https://test.api.dibspayment.eu/v1/payments","request":{"headers":{"Content-type":"application/json","Accept":"application/json","Authorization":"test-secret-key-7fc9378721a74b9191ccf5f8b728cdbd","commercePlatformTag":"WooEasyKrokedil"},"user-agent":"WordPress/6.0.3; www.badminton-norge.no - Plugin/2.1.0 - PHP/8.1.11 - Krokedil","method":"POST","timeout":10,"body":{"order":{"items":[{"reference":"406","name":"Badminton Lodd - 2022","quantity":1,"unit":"pcs","unitPrice":5000,"taxRate":0,"taxAmount":0,"grossTotalAmount":5000,"netTotalAmount":5000}],"amount":5000,"currency":"NOK","reference":"1072"},"checkout":{"termsUrl":"https://www.badminton-norge.no/personvernerklaering/","returnUrl":"https://www.badminton-norge.no/kassen/order-received/1072/?key=wc_order_Us0dHSFNCKWji&easy_confirm=yes","integrationType":"HostedPaymentPage","merchantHandlesConsumerData":true,"shipping":{"countries":[],"merchantHandlesShippingCost":false},"consumer":{"email":"[email protected]","shippingAddress":{"country":null},"phoneNumber":{"prefix":"+47","number":"46919157"},"privatePerson":{"firstName":"Ola","lastName":"Norman"}},"consumerType":{"supportedTypes":["B2C","B2B"],"default":"B2C"}},"notifications":{"webHooks":[{"eventName":"payment.checkout.completed","url":"https://www.badminton-norge.no/wc-api/DIBS_Api_Callbacks/?dibs-payment-created-callback=1","authorization":"e3fef98a3d"}]},"merchantNumber":"100048700"}},"response":{"body":"{\"paymentId\":\"029000006360e4bde37612f41d353ec7\",\"hostedPaymentPageUrl\":\"https://test.checkout.dibspayment.eu/hostedpaymentpage/?checkoutKey=32a9e47ae4bf4b19bbd6626b1c7e3880&pid=029000006360e4bde37612f41d353ec7\"}","code":201},"timestamp":"2022-11-01 09:19:57","stack":["get_stack","format_log","log_response","process_response","request","create_nets_easy_order","process_payment","process_order_payment","process_checkout","checkout","apply_filtersWC_AJAX::checkout : 10","do_actionWC_AJAX::checkout : 10","do_action","do_wc_ajax","apply_filters0000000000003f060000000000000000init_render_mode : 0","do_action0000000000003f060000000000000000init_render_mode : 0","do_action","require_once","require"],"plugin_version":"2.1.0"}
11-01-2022 @ 10:23:08 - {"id":"017d00006360e57b302f9749229e3a7d","type":"POST","title":"Create order","request_url":"https://test.api.dibspayment.eu/v1/payments","request":{"headers":{"Content-type":"application/json","Accept":"application/json","Authorization":"test-secret-key-7fc9378721a74b9191ccf5f8b728cdbd","commercePlatformTag":"WooEasyKrokedil"},"user-agent":"WordPress/6.0.3; www.badminton-norge.no - Plugin/2.1.0 - PHP/8.1.11 - Krokedil","method":"POST","timeout":10,"body":{"order":{"items":[{"reference":"406","name":"Badminton Lodd - 2022","quantity":1,"unit":"pcs","unitPrice":5000,"taxRate":0,"taxAmount":0,"grossTotalAmount":5000,"netTotalAmount":5000}],"amount":5000,"currency":"NOK","reference":"1072"},"checkout":{"termsUrl":"https://www.badminton-norge.no/personvernerklaering/","returnUrl":"https://www.badminton-norge.no/kassen/order-received/1072/?key=wc_order_Us0dHSFNCKWji&easy_confirm=yes","integrationType":"HostedPaymentPage","merchantHandlesConsumerData":true,"shipping":{"countries":[],"merchantHandlesShippingCost":false},"consumer":{"email":"[email protected]","shippingAddress":{"country":null},"phoneNumber":{"prefix":"+47","number":"46919157"},"privatePerson":{"firstName":"Ola","lastName":"Norman"}},"consumerType":{"supportedTypes":["B2C","B2B"],"default":"B2C"}},"notifications":{"webHooks":[{"eventName":"payment.checkout.completed","url":"https://www.badminton-norge.no/wc-api/DIBS_Api_Callbacks/?dibs-payment-created-callback=1","authorization":"e3fef98a3d"}]},"merchantNumber":"100048700"}},"response":{"body":"{\"paymentId\":\"017d00006360e57b302f9749229e3a7d\",\"hostedPaymentPageUrl\":\"https://test.checkout.dibspayment.eu/hostedpaymentpage/?checkoutKey=32a9e47ae4bf4b19bbd6626b1c7e3880&pid=017d00006360e57b302f9749229e3a7d\"}","code":201},"timestamp":"2022-11-01 09:23:08","stack":["get_stack","format_log","log_response","process_response","request","create_nets_easy_order","process_payment","process_order_payment","process_checkout","checkout","apply_filtersWC_AJAX::checkout : 10","do_actionWC_AJAX::checkout : 10","do_action","do_wc_ajax","apply_filters0000000000003f060000000000000000init_render_mode : 0","do_action0000000000003f060000000000000000init_render_mode : 0","do_action","require_once","require"],"plugin_version":"2.1.0"}
11-01-2022 @ 10:29:00 - {"id":"021b00006360e6dce37612f41d353ed0","type":"POST","title":"Create order","request_url":"https://test.api.dibspayment.eu/v1/payments","request":{"headers":{"Content-type":"application/json","Accept":"application/json","Authorization":"test-secret-key-7fc9378721a74b9191ccf5f8b728cdbd","commercePlatformTag":"WooEasyKrokedil"},"user-agent":"WordPress/6.0.3; www.badminton-norge.no - Plugin/2.1.0 - PHP/8.1.11 - Krokedil","method":"POST","timeout":10,"body":{"order":{"items":[{"reference":"406","name":"Badminton Lodd - 2022","quantity":1,"unit":"pcs","unitPrice":5000,"taxRate":0,"taxAmount":0,"grossTotalAmount":5000,"netTotalAmount":5000}],"amount":5000,"currency":"NOK","reference":"1072"},"checkout":{"termsUrl":"https://www.badminton-norge.no/personvernerklaering/","returnUrl":"https://www.badminton-norge.no/kassen/order-received/1072/?key=wc_order_Us0dHSFNCKWji&easy_confirm=yes","integrationType":"HostedPaymentPage","merchantHandlesConsumerData":true,"shipping":{"countries":[],"merchantHandlesShippingCost":false},"consumer":{"email":"[email protected]","shippingAddress":{"country":null},"phoneNumber":{"prefix":"+47","number":"46919157"},"privatePerson":{"firstName":"Ola","lastName":"Norman"}},"consumerType":{"supportedTypes":["B2C","B2B"],"default":"B2C"}},"notifications":{"webHooks":[{"eventName":"payment.checkout.completed","url":"https://www.badminton-norge.no/wc-api/DIBS_Api_Callbacks/?dibs-payment-created-callback=1","authorization":"e3fef98a3d"}]},"merchantNumber":"100048700"}},"response":{"body":"{\"paymentId\":\"021b00006360e6dce37612f41d353ed0\",\"hostedPaymentPageUrl\":\"https://test.checkout.dibspayment.eu/hostedpaymentpage/?checkoutKey=32a9e47ae4bf4b19bbd6626b1c7e3880&pid=021b00006360e6dce37612f41d353ed0\"}","code":201},"timestamp":"2022-11-01 09:29:00","stack":["get_stack","format_log","log_response","process_response","request","create_nets_easy_order","process_payment","process_order_payment","process_checkout","checkout","apply_filtersWC_AJAX::checkout : 10","do_actionWC_AJAX::checkout : 10","do_action","do_wc_ajax","apply_filters0000000000003f060000000000000000init_render_mode : 0","do_action0000000000003f060000000000000000init_render_mode : 0","do_action","require_once","require"],"plugin_version":"2.1.0"}
11-01-2022 @ 10:34:34 - {"id":"021900006360e82ab30d1cb9e6b5d19a","type":"POST","title":"Create order","request_url":"https://test.api.dibspayment.eu/v1/payments","request":{"headers":{"Content-type":"application/json","Accept":"application/json","Authorization":"test-secret-key-7fc9378721a74b9191ccf5f8b728cdbd","commercePlatformTag":"WooEasyKrokedil"},"user-agent":"WordPress/6.0.3; www.badminton-norge.no - Plugin/2.0.7 - PHP/8.1.11 - Krokedil","method":"POST","timeout":10,"body":{"order":{"items":[{"reference":"406","name":"Badminton Lodd - 2022","quantity":1,"unit":"pcs","unitPrice":5000,"taxRate":0,"taxAmount":0,"grossTotalAmount":5000,"netTotalAmount":5000}],"amount":5000,"currency":"NOK","reference":"1072"},"checkout":{"termsUrl":"https://www.badminton-norge.no/personvernerklaering/","returnUrl":"https://www.badminton-norge.no/kassen/order-received/1072/?key=wc_order_Us0dHSFNCKWji&easy_confirm=yes","integrationType":"HostedPaymentPage","merchantHandlesConsumerData":true,"shipping":{"countries":[],"merchantHandlesShippingCost":false},"consumer":{"email":"[email protected]","shippingAddress":{"country":null},"phoneNumber":{"prefix":"+47","number":"46919157"},"privatePerson":{"firstName":"Ola","lastName":"Norman"}},"consumerType":{"supportedTypes":["B2C","B2B"],"default":"B2C"}},"notifications":{"webHooks":[{"eventName":"payment.checkout.completed","url":"https://www.badminton-norge.no/wc-api/DIBS_Api_Callbacks/?dibs-payment-created-callback=1","authorization":"e3fef98a3d"}]},"merchantNumber":"100048700"}},"response":{"body":"{\"paymentId\":\"021900006360e82ab30d1cb9e6b5d19a\",\"hostedPaymentPageUrl\":\"https://test.checkout.dibspayment.eu/hostedpaymentpage/?checkoutKey=32a9e47ae4bf4b19bbd6626b1c7e3880&pid=021900006360e82ab30d1cb9e6b5d19a\"}","code":201},"timestamp":"2022-11-01 09:34:34","stack":["get_stack","format_log","log_response","process_response","request","create_nets_easy_order","process_payment","process_order_payment","process_checkout","checkout","apply_filtersWC_AJAX::checkout : 10","do_actionWC_AJAX::checkout : 10","do_action","do_wc_ajax","apply_filters0000000000003f050000000000000000init_render_mode : 0","do_action0000000000003f050000000000000000init_render_mode : 0","do_action","require_once","require"],"plugin_version":"2.0.7"}
11-01-2022 @ 10:38:13 - {"id":"025100006360e904b30d1cb9e6b5d1a0","type":"POST","title":"Create order","request_url":"https://test.api.dibspayment.eu/v1/payments","request":{"headers":{"Content-type":"application/json","Accept":"application/json","Authorization":"test-secret-key-7fc9378721a74b9191ccf5f8b728cdbd","commercePlatformTag":"WooEasyKrokedil"},"user-agent":"WordPress/6.0.3; www.badminton-norge.no - Plugin/2.0.7 - PHP/8.1.11 - Krokedil","method":"POST","timeout":10,"body":{"order":{"items":[{"reference":"406","name":"Badminton Lodd - 2022","quantity":1,"unit":"pcs","unitPrice":5000,"taxRate":0,"taxAmount":0,"grossTotalAmount":5000,"netTotalAmount":5000}],"amount":5000,"currency":"NOK","shipping":{"costSpecified":true},"reference":"1"},"checkout":{"termsUrl":"https://www.badminton-norge.no/personvernerklaering/","url":"https://www.badminton-norge.no/kassen/","shipping":{"countries":[{"countryCode":"NOR"}],"merchantHandlesShippingCost":false},"consumerType":{"supportedTypes":["B2C","B2B"],"default":"B2C"}},"notifications":{"webHooks":[{"eventName":"payment.checkout.completed","url":"https://www.badminton-norge.no/wc-api/DIBS_Api_Callbacks/?dibs-payment-created-callback=1","authorization":"e3fef98a3d"}]},"merchantNumber":"100048700"}},"response":{"body":"{\"paymentId\":\"025100006360e904b30d1cb9e6b5d1a0\"}","code":201},"timestamp":"2022-11-01 09:38:13","stack":["get_stack","format_log","log_response","process_response","request","create_nets_easy_order","dibs_easy_maybe_create_order","dibs_load_js","apply_filters000000000000385f0000000000000000enqueue_scripts : 10","do_action000000000000385f0000000000000000enqueue_scripts : 10","do_action","wp_enqueue_scripts","apply_filters_wp_render_title_tag : 1","do_action_wp_render_title_tag : 1","do_action","wp_head","require_once","load_template","locate_template","get_header","include","require_once","require"],"plugin_version":"2.0.7"}
11-01-2022 @ 10:38:46 - "Frontend JS: Address changed is triggered."
11-01-2022 @ 10:39:10 - "Frontend JS: Address changed is triggered."
11-01-2022 @ 10:39:30 - "Frontend JS: Pay initialized is triggered with payment id: 025100006360e904b30d1cb9e6b5d1a0"
11-01-2022 @ 10:39:30 - {"id":"025100006360e904b30d1cb9e6b5d1a0","type":"GET","title":"Get order ( admin )","request_url":"https://test.api.dibspayment.eu/v1/payments/025100006360e904b30d1cb9e6b5d1a0","request":{"headers":{"Content-type":"application/json","Accept":"application/json","Authorization":"test-secret-key-7fc9378721a74b9191ccf5f8b728cdbd","commercePlatformTag":"WooEasyKrokedil"},"user-agent":"WordPress/6.0.3; www.badminton-norge.no - Plugin/2.0.7 - PHP/8.1.12 - Krokedil","method":"GET"},"response":{"body":"{\"payment\":{\"paymentId\":\"025100006360e904b30d1cb9e6b5d1a0\",\"summary\":{},\"consumer\":{\"shippingAddress\":{\"addressLine1\":\"Test Adresse\",\"addressLine2\":\"\",\"receiverLine\":\"Test Navn\",\"postalCode\":\"4956\",\"city\":\"RIS?R\",\"country\":\"NOR\"},\"company\":{\"contactDetails\":{\"phoneNumber\":{}}},\"privatePerson\":{\"firstName\":\"Test\",\"lastName\":\"Navn\",\"email\":\"[email protected]\",\"phoneNumber\":{\"prefix\":\"+47\",\"number\":\"46919157\"}},\"billingAddress\":{\"addressLine1\":\"Test Adresse\",\"addressLine2\":\"\",\"receiverLine\":\"Test Navn\",\"postalCode\":\"4956\",\"city\":\"RIS?R\",\"country\":\"NOR\"}},\"paymentDetails\":{\"invoiceDetails\":{},\"cardDetails\":{}},\"orderDetails\":{\"amount\":5000,\"currency\":\"NOK\",\"reference\":\"1\"},\"checkout\":{\"url\":\"https://www.badminton-norge.no/kassen/\"},\"created\":\"2022-11-01T09:38:12.9410+00:00\"}}","code":200},"timestamp":"2022-11-01 09:39:30","stack":["get_stack","format_log","log_response","process_response","request","get_nets_easy_order","get_order_data","apply_filtersNets_Easy_Ajax::get_order_data : 10","do_actionNets_Easy_Ajax::get_order_data : 10","do_action","do_wc_ajax","apply_filters0000000000003f0b0000000000000000init_render_mode : 0","do_action0000000000003f0b0000000000000000init_render_mode : 0","do_action","require_once","require"],"plugin_version":"2.0.7"}
11-01-2022 @ 10:39:30 - "processWooCheckout triggered and checkout form about to be submitted for Nets payment ID 025100006360e904b30d1cb9e6b5d1a0"
11-01-2022 @ 10:39:31 - "Frontend JS: Received \"customer data\" from Nets Easy"
11-01-2022 @ 10:39:31 - "Frontend JS: Checkout error | Betaling Telefon er et obligatorisk felt. Your phone field has an invalid input"
11-01-2022 @ 10:39:51 - "Frontend JS: Address changed is triggered."
11-01-2022 @ 10:39:51 - "Frontend JS: Pay initialized is triggered with payment id: 025100006360e904b30d1cb9e6b5d1a0"
11-01-2022 @ 10:39:51 - {"id":"025100006360e904b30d1cb9e6b5d1a0","type":"GET","title":"Get order ( admin )","request_url":"https://test.api.dibspayment.eu/v1/payments/025100006360e904b30d1cb9e6b5d1a0","request":{"headers":{"Content-type":"application/json","Accept":"application/json","Authorization":"test-secret-key-7fc9378721a74b9191ccf5f8b728cdbd","commercePlatformTag":"WooEasyKrokedil"},"user-agent":"WordPress/6.0.3; www.badminton-norge.no - Plugin/2.0.7 - PHP/8.1.12 - Krokedil","method":"GET"},"response":{"body":"{\"payment\":{\"paymentId\":\"025100006360e904b30d1cb9e6b5d1a0\",\"summary\":{},\"consumer\":{\"shippingAddress\":{\"addressLine1\":\"Test Adresse\",\"addressLine2\":\"\",\"receiverLine\":\"Test Navn\",\"postalCode\":\"4956\",\"city\":\"RIS?R\",\"country\":\"NOR\"},\"company\":{\"contactDetails\":{\"phoneNumber\":{}}},\"privatePerson\":{\"firstName\":\"Test\",\"lastName\":\"Navn\",\"email\":\"[email protected]\",\"phoneNumber\":{\"prefix\":\"+47\",\"number\":\"46919157\"}},\"billingAddress\":{\"addressLine1\":\"Test Adresse\",\"addressLine2\":\"\",\"receiverLine\":\"Test Navn\",\"postalCode\":\"4956\",\"city\":\"RIS?R\",\"country\":\"NOR\"}},\"paymentDetails\":{\"invoiceDetails\":{},\"cardDetails\":{}},\"orderDetails\":{\"amount\":5000,\"currency\":\"NOK\",\"reference\":\"1\"},\"checkout\":{\"url\":\"https://www.badminton-norge.no/kassen/\"},\"created\":\"2022-11-01T09:38:12.9410+00:00\"}}","code":200},"timestamp":"2022-11-01 09:39:51","stack":["get_stack","format_log","log_response","process_response","request","get_nets_easy_order","get_order_data","apply_filtersNets_Easy_Ajax::get_order_data : 10","do_actionNets_Easy_Ajax::get_order_data : 10","do_action","do_wc_ajax","apply_filters0000000000003f0b0000000000000000init_render_mode : 0","do_action0000000000003f0b0000000000000000init_render_mode : 0","do_action","require_once","require"],"plugin_version":"2.0.7"}
11-01-2022 @ 10:39:51 - "processWooCheckout triggered and checkout form about to be submitted for Nets payment ID 025100006360e904b30d1cb9e6b5d1a0"
11-01-2022 @ 10:39:52 - "Frontend JS: Checkout error | Betaling Telefon er et obligatorisk felt. Your phone field has an invalid input"
11-01-2022 @ 10:39:52 - "Frontend JS: Received \"customer data\" from Nets Easy"
11-01-2022 @ 10:40:18 - {"id":"026200006360e982e37612f41d353ee9","type":"POST","title":"Create order","request_url":"https://test.api.dibspayment.eu/v1/payments","request":{"headers":{"Content-type":"application/json","Accept":"application/json","Authorization":"test-secret-key-7fc9378721a74b9191ccf5f8b728cdbd","commercePlatformTag":"WooEasyKrokedil"},"user-agent":"WordPress/6.0.3; www.badminton-norge.no - Plugin/2.0.7 - PHP/8.1.12 - Krokedil","method":"POST","timeout":10,"body":{"order":{"items":[{"reference":"406","name":"Badminton Lodd - 2022","quantity":1,"unit":"pcs","unitPrice":5000,"taxRate":0,"taxAmount":0,"grossTotalAmount":5000,"netTotalAmount":5000}],"amount":5000,"currency":"NOK","reference":"1073"},"checkout":{"termsUrl":"https://www.badminton-norge.no/personvernerklaering/","returnUrl":"https://www.badminton-norge.no/kassen/order-received/1073/?key=wc_order_SHWcsvU06sGbF&easy_confirm=yes","integrationType":"HostedPaymentPage","merchantHandlesConsumerData":true,"shipping":{"countries":[],"merchantHandlesShippingCost":false},"consumer":{"email":"[email protected]","shippingAddress":{"country":null},"phoneNumber":{"prefix":"+47","number":"46919157"},"privatePerson":{"firstName":"Test","lastName":"Navn"}},"consumerType":{"supportedTypes":["B2C","B2B"],"default":"B2C"}},"notifications":{"webHooks":[{"eventName":"payment.checkout.completed","url":"https://www.badminton-norge.no/wc-api/DIBS_Api_Callbacks/?dibs-payment-created-callback=1","authorization":"e3fef98a3d"}]},"merchantNumber":"100048700"}},"response":{"body":"{\"paymentId\":\"026200006360e982e37612f41d353ee9\",\"hostedPaymentPageUrl\":\"https://test.checkout.dibspayment.eu/hostedpaymentpage/?checkoutKey=32a9e47ae4bf4b19bbd6626b1c7e3880&pid=026200006360e982e37612f41d353ee9\"}","code":201},"timestamp":"2022-11-01 09:40:18","stack":["get_stack","format_log","log_response","process_response","request","create_nets_easy_order","process_payment","process_order_payment","process_checkout","checkout","apply_filtersWC_AJAX::checkout : 10","do_actionWC_AJAX::checkout : 10","do_action","do_wc_ajax","apply_filters0000000000003f060000000000000000init_render_mode : 0","do_action0000000000003f060000000000000000init_render_mode : 0","do_action","require_once","require"],"plugin_version":"2.0.7"}
]]>
Hi,
I am just wondering if its possible to edit the payment sucessful/completed message when returning from api.nets….
For now it shows the green checkmark and then “Betaling vellykket”, so a customer have people that closing the browser right when they see that message, while they need to wait til they get redirected back the checkout in order to get their purchase. And would be awesome if I could add a message like “Please do not close this window” or something like that. if its possible.
Thanks!
]]>Hi, and thank you for the continues good work and appreciate it.
I have an issue where I am making a website for a client, and they wont be selling anything physical so no shipping address nor postal code required. I have used filters to remove these fields from the checkout page. But when attempting to use NetsEASY to complete a payment using the redirect method, so I get an error.
When pressing on Complete Payment, it spits an error saying “Internal server error” when clicking on the Complete payment again, it reveals the error and it indicates
” ‘Address Line1’ must not be empty. ‘City’ must not be empty. ‘Postal Code’ must not be empty. ”
Any insight or help with this is highly appreciated.
Here is the debug log when this happens.
<code>10-08-2022 @ 20:00:27 - {"id":null,"type":"POST","title":"Create order","request_url":"https://test.api.dibspayment.eu/v1/payments","request":{"headers":{"Content-type":"application/json","Accept":"application/json","Authorization":"test-secret-key-7fc9378721a74b9191ccf5f8b728cdbd","commercePlatformTag":"WooEasyKrokedil"},"user-agent":"WordPress/6.0.2; www.badminton-norge.no - Plugin/2.1.0 - PHP/8.1.10 - Krokedil","method":"POST","timeout":10,"body":{"order":{"items":[{"reference":"406","name":"Badminton Lodd - 2022","quantity":1,"unit":"pcs","unitPrice":2000,"taxRate":0,"taxAmount":0,"grossTotalAmount":2000,"netTotalAmount":2000},{"reference":"609","name":"test product","quantity":1,"unit":"pcs","unitPrice":2000,"taxRate":0,"taxAmount":0,"grossTotalAmount":2000,"netTotalAmount":2000}],"amount":4000,"currency":"NOK","reference":"611"},"checkout":{"termsUrl":"https://www.badminton-norge.no/personvernerklaering/","returnUrl":"https://www.badminton-norge.no/checkout/order-received/611/?key=wc_order_kopQ09RzWgTjz&easy_confirm=yes","integrationType":"HostedPaymentPage","merchantHandlesConsumerData":true,"shipping":{"countries":[],"merchantHandlesShippingCost":false},"consumer":{"email":"[email protected]","shippingAddress":{"addressLine2":"Badomenton Club Arendal","country":"NOR"},"phoneNumber":{"prefix":"+47","number":"46919157"},"privatePerson":{"firstName":"Navn","lastName":"Navensen"}},"consumerType":{"supportedTypes":["B2C","B2B"],"default":"B2C"}},"notifications":{"webHooks":[{"eventName":"payment.checkout.completed","url":"https://www.badminton-norge.no/wc-api/DIBS_Api_Callbacks/?dibs-payment-created-callback=1","authorization":"c046ea7267"}]},"merchantNumber":"100048700"}},"response":{"body":"{\"errors\":{\"checkout.Consumer.ShippingAddress.AddressLine1\":[\"'Address Line1' must not be empty.\"],\"checkout.Consumer.ShippingAddress.City\":[\"'City' must not be empty.\"],\"checkout.Consumer.ShippingAddress.PostalCode\":[\"'Postal Code' must not be empty.\"]}}","code":400},"timestamp":"2022-10-08 18:00:27","stack":["get_stack","format_log","log_response","process_response","request","create_nets_easy_order","process_payment","process_order_payment","process_checkout","checkout","apply_filtersWC_AJAX::checkout : 10","do_actionWC_AJAX::checkout : 10","do_action","do_wc_ajax","apply_filters0000000000003f0b0000000000000000init_render_mode : 0","do_action0000000000003f0b0000000000000000init_render_mode : 0","do_action","require_once","require"],"plugin_version":"2.1.0"}</code>
The code used to remove the checkout fields that isnt needed for this shop.
add_filter( 'woocommerce_checkout_fields' , 'custom_override_checkout_fields' );
add_filter( 'woocommerce_billing_fields' , 'custom_override_billing_fields' );
function custom_override_checkout_fields( $fields ) {
unset($fields['billing']['billing_address_1']);
($fields['billing']['billing_address_2']); //used to select club as dropdown
unset($fields['billing']['billing_city'] );
unset($fields['billing']['billing_company']);
unset($fields['order']['order_comments']);
unset( $fields['billing_postcode']);
return $fields;
}
function custom_override_billing_fields( $fields ) {
unset($fields['billing_address_1'] );
unset($fields['billing']['billing_address_2']);
unset($fields['billing']['billing_city']);
unset($fields['billing']['billing_company']);
unset($fields['order']['order_comments'] );
unset( $fields['billing_postcode']);
return $fields;
}
Theme used: Astra
Thank you again for the good work you do.
Kind regards,
Mark
Hi,
Thanks for a great plugin, made the integration with the Nets payment portal really smooth and easy!
We’re facing an issue that uncaught errors get raised whenever we set an order from the status “processing” to “cancelled” in WooCommerce if the order has already been manually refunded in the official Nets Easy control panel (https://portal.dibspayment.eu/) before we attempt to cancel the order in WooCommerce.
Uncaught Error: Cannot use object of type WP_Error as array in <site>/public_html/wp-content/plugins/dibs-easy-for-woocommerce/classes/class-nets-easy-order-management.php:140
Stack trace:
#0 <site>/public_html/wp-includes/class-wp-hook.php(309): Nets_Easy_Order_Management->dibs_order_canceled(9292)
#1 <site>/public_html/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(NULL, Array)
#2 <site>/public_html/wp-includes/plugin.php(476): WP_Hook->do_action(Array)
#3 <site>/public_html/wp-content/plugins/woocommerce/includes/class-wc-order.php(364): do_action('woocommerce_ord...', 9292, Object(Automattic\WooCommerce\Admin\Overrides\Order))
#4 <site>/public_html/wp-content/plugins/woocommerce/includes/class-wc-order.php(222): WC_Order->status_transition()
#5 <site>/public_html/wp-content/plugins/woocommerce/includes/admin
WordPress-version 6.0.1
Nets Easy for WooCommerce (version 2.0.1)
PHP-version 7.4.30
Hello,
I seem to have found two errors in your plugin that can cause potential critical errors on the order-received paid with other payment gateways. In particular, the case in question was triggered using Vipps Express Checkout.
The first bug is in Nets_Easy_Assets, in dibs_load_js. It calls “dibs_easy_maybe_create_order
” when
if ( is_checkout() && ! is_wc_endpoint_url( 'order-pay' ) ) {
However, in this case the endpoint URL is order-received
and with a different payment gateway. Thus the maybe-create-order fails. The second error happens during the *reporting* of that error. Somehow the WP_Error formatted in the call to dibs_easy_print_error_message
has an *array* and not a string as the result of get_error_message(). This breaks the formatting used in wc_print_notice
causing a critical error reported to the end user.
CRITICAL Uncaught TypeError: preg_match(): Argument #2 ($subject) must be of type string, array given in wp-includes/class-wp-block-parser.php:417
Stack trace:
#0 wp-includes/class-wp-block-parser.php(417): preg_match('/<!--\\s+(?P<clo...', Array, NULL, 256, 0)
#3 wp-includes/blocks.php(923): WP_Block_Parser->parse(Array)
#4 wp-includes/blocks.php(649): parse_blocks(Array)
#5 wp-includes/formatting.php(5088): filter_block_content(Array, Array, Array)
#14 wp-content/plugins/dibs-easy-for-woocommerce/includes/nets-easy-functions.php(317): wc_print_notice(Array, 'error')
#15 wp-content/plugins/dibs-easy-for-woocommerce/classes/class-nets-easy-api.php(227): dibs_easy_print_error_message(Object(WP_Error))
#16 wp-content/plugins/dibs-easy-for-woocommerce/classes/class-nets-easy-api.php(38): Nets_Easy_API->check_for_api_error(Object(WP_Error))
#17 wp-content/plugins/dibs-easy-for-woocommerce/includes/nets-easy-functions.php(35): Nets_Easy_API->create_nets_easy_order()
#18 wp-content/plugins/dibs-easy-for-woocommerce/classes/class-nets-easy-assets.php(79): dibs_easy_maybe_create_order()
]]>
We have a digital (ticket) product that gets sent in an email once a sale is completed.
When a user pays with the NetsEasy for WooCommerce payment gateway – and ONLY when paying with NetsEasy – they will suddenly get sent 2 or sometimes 3 of those emails instead of just 1.
We have tested the site and plugins and narrowed the issue down to it just happening when a user pays with NetsEasy for WooCommerce.
]]>Hi,
I have an issue with the shipping payment because some of the order doesn’t add the shipping amount in the netseay portal but when I checked in the woo commerce order the shipping is shown also I checked in your changelog you mention this point so my problem is related to this point and I used the plugin version 1.23.4
Fix – Fix critical errors sometimes happening when saving the shipping reference in the order.
For further clarification check this link for the difference in net total in woocomerce and neteasy portal.
https://www.linkpicture.com/q/Screenshot_8_2.png
https://www.linkpicture.com/q/Screenshot_9_16.png
Hi!
I noticed that when a customer comes to the payment page and they do not complete their purchase and wont click on Go back to the website, instead just close the tab where the Nets payment form is, it remains as “Pending payment”.
I have the stock management on and the Hold stock set to 20 minutes, regardless, still some are for couple of days there still Pending payment.
Note I have Nets Easy set to Redirect instead of Embedded.
Another issue is that when I set it to Embedded, i get an error unsure whats the cause. Note I do not use any of known conflict plugins that listed on the conflict list.
The error when its embedded is
—————
Oops!
Noe gikk galt. Vi unders?ker ?rsaken
Din referanse: 017c0000628fc866a16f5ff445b1f974
—————
Any suggestion is highly appreciated.
]]>my website has show this message in checkout page.
Nets API Error: {“errors”:{“notifications.WebHooks[0].Url”:[“Field is not accepted as a valid URL”]}}
my link is: https://sbr.boraq-group.net/checkout/
it was working on local but now not working onlin.
note: its staging version not live.
]]>When choosing not to show decimals in WC, the amounts in orders (shown in back-end), and what is sent to payment, is not the same if there actually is decimals.
I guess this should be fixed in WC, but wanted to let you know, so that perhaps you could have a function telling users to not use 0 decimals in WC when using your plugin… Am reporting this to WC as well.
Thanks for great plugins and support.
]]>When billing information (email, name, address etc.) is entered on the original checkout page, as soon as Nets Easy is selected, the page changes layout, all billing fields appear in another box, and data already entered is lost – not respecting removed fields.
Using Neve/Elementor, highly customized checkout fields.
Why is not only credit card information asked? How to avoid this and make it work mostly like other card payment options?
]]>Major compatability issue with this plugin as of 2/2/22:
This plugin causes Woocommerce orders to be processed TWICE!
]]>I have just installed this plugin, created an account, added MerchantID and test API credentials into the plugin settings. I then tested it with no uneccessary plugins enabled on TwentyTwenty theme. Nothing seemingly happens when I try to put an order through, however in the developer console in my browser I see the error “DibsCheckout not defined”. What would cause this on a new installation?
]]>