• Resolved minickel

    (@minickel)


    Hi mollie plugin team,

    I’m test driving mollie and your plugin in a sandbox/staging environment of a woocomerce shop that has been running for a while very well using Klarna checkout smoothly (and it still does, also on the current sandbox.) Our goal is to extend the range of payment choices through mollie.

    Issue: no synchronzation of the payment status, when I do testorders based on credit card – no matter which status I choose on the mollie test payment page, the order will still remain staus “pending payment”.

    To eliminate plugin effects, I have deactivated all plugins, except the following:
    * Woocommerce 7.1.1 (same issues with 7.1.0 before)
    * Mollie Payments for WooCommerce 7.3.4
    * WP STAGING PRO 4.4.0
    Still the issue is present.

    The mollie error log reads as follows for one of the last test orders:

    2022-12-08T10:28:56+00:00 DEBUG creditcard: Start process_payment for order 10395
    2022-12-08T10:28:56+00:00 DEBUG getUserMollieCustomerId: Mollie Customer ID (cst_o5mYk95nHM) found and valid for user 16 on this API key. (test).
    2022-12-08T10:28:56+00:00 DEBUG mollie_wc_gateway_creditcard: Create Mollie payment object for order 10395
    2022-12-08T10:28:56+00:00 DEBUG  Order 10395 returnUrl: https://www.agni-verlag.de/sandbox-av/shop/kasse/order-received/10395/?key=wc_order_HoZ1MjkoQ0uXG&order_id=10395&filter_flag=onMollieReturn
    2022-12-08T10:28:56+00:00 DEBUG  Order 10395 webhookUrl: https://www.agni-verlag.de/sandbox-av/wc-api/mollie_wc_gateway_creditcard?order_id=10395&key=wc_order_HoZ1MjkoQ0uXG&filter_flag
    2022-12-08T10:28:56+00:00 DEBUG Creating payment object: type Order, first try creating a Mollie Order.
    2022-12-08T10:28:56+00:00 DEBUG {"amount":{"currency":"EUR","value":"0.02"},"redirectUrl":"https:\/\/www.agni-verlag.de\/sandbox-av\/shop\/kasse\/order-received\/10395\/?key=wc_order_HoZ1MjkoQ0uXG&order_id=10395&filter_flag=onMollieReturn","webhookUrl":"https:\/\/www.agni-verlag.de\/sandbox-av\/wc-api\/mollie_wc_gateway_creditcard?order_id=10395&key=wc_order_HoZ1MjkoQ0uXG&filter_flag","method":"creditcard","payment":{"issuer":null,"customerId":"cst_o5mYk95nHM","cardToken":"tkn_EefJAEtest"},"locale":"de_DE","metadata":{"order_id":10395,"order_number":"10395"},"orderNumber":"10395","lines":[{"sku":"10378","name":"Testprodukt","quantity":2,"vatRate":19,"unitPrice":{"currency":"EUR","value":"0.01"},"totalAmount":{"currency":"EUR","value":"0.02"},"vatAmount":{"currency":"EUR","value":"0.00"},"discountAmount":{"currency":"EUR","value":"0.00"},"metadata":{"order_item_id":1749}},{"type":"shipping_fee","name":"Versand","quantity":1,"vatRate":0,"unitPrice":{"currency":"EUR","value":"0.00"},"totalAmount":{"currency":"EUR","value":"0.00"},"vatAmount":{"currency":"EUR","value":"0.00"},"metadata":{"order_item_id":"1750"}}]}
    2022-12-08T10:28:57+00:00 DEBUG {"resource":"order","id":"ord_xyr22f","profileId":"pfl_VPGbFf6Rzi","mode":"test","amount":{"value":"0.02","currency":"EUR"},"amountCaptured":null,"amountRefunded":null,"status":"created","billingAddress":{"streetAndNumber":"Musterstra\u00dfe 123","postalCode":"12345","city":"Musterstadt","region":"DE-BW","country":"DE","givenName":"Max","familyName":"Mustermann","email":"xyz@xyz.de"},"consumerDateOfBirth":null,"orderNumber":"10395","shippingAddress":{"streetAndNumber":"Musterstra\u00dfe 123","postalCode":"12345","city":"Musterstadt","region":"DE-BW","country":"DE","givenName":"Max","familyName":"Mustermann","email":"michaelnickel@gmx.de"},"method":"creditcard","locale":"de_DE","metadata":{"order_id":10395,"order_number":"10395"},"isCancelable":false,"webhookUrl":"https:\/\/www.agni-verlag.de\/sandbox-av\/wc-api\/mollie_wc_gateway_creditcard?order_id=10395&key=wc_order_HoZ1MjkoQ0uXG&filter_flag","redirectUrl":"https:\/\/www.agni-verlag.de\/sandbox-av\/shop\/kasse\/order-received\/10395\/?key=wc_order_HoZ1MjkoQ0uXG&order_id=10395&filter_flag=onMollieReturn","createdAt":"2022-12-08T10:28:57+00:00","expiresAt":"2023-01-05T10:28:57+00:00","expiredAt":null,"paidAt":null,"authorizedAt":null,"canceledAt":null,"completedAt":null,"lines":[{"resource":"orderline","id":"odl_2.v6wykd","orderId":"ord_xyr22f","name":"Testprodukt","sku":"10378","type":"physical","status":"created","metadata":{"order_item_id":1749},"isCancelable":false,"quantity":2,"quantityShipped":0,"amountShipped":{"value":"0.00","currency":"EUR"},"quantityRefunded":0,"amountRefunded":{"value":"0.00","currency":"EUR"},"quantityCanceled":0,"amountCanceled":{"value":"0.00","currency":"EUR"},"shippableQuantity":0,"refundableQuantity":0,"cancelableQuantity":0,"unitPrice":{"value":"0.01","currency":"EUR"},"vatRate":"19.00","vatAmount":{"value":"0.00","currency":"EUR"},"totalAmount":{"value":"0.02","currency":"EUR"},"createdAt":"2022-12-08T10:28:57+00:00"},{"resource":"orderline","id":"odl_2.1rmf73","orderId":"ord_xyr22f","name":"Versand","sku":null,"type":"shipping_fee","status":"created","metadata":{"order_item_id":"1750"},"isCancelable":false,"quantity":1,"quantityShipped":0,"amountShipped":{"value":"0.00","currency":"EUR"},"quantityRefunded":0,"amountRefunded":{"value":"0.00","currency":"EUR"},"quantityCanceled":0,"amountCanceled":{"value":"0.00","currency":"EUR"},"shippableQuantity":0,"refundableQuantity":0,"cancelableQuantity":0,"unitPrice":{"value":"0.00","currency":"EUR"},"vatRate":"0.00","vatAmount":{"value":"0.00","currency":"EUR"},"totalAmount":{"value":"0.00","currency":"EUR"},"createdAt":"2022-12-08T10:28:57+00:00"}],"_links":{"self":{"href":"https:\/\/api.mollie.com\/v2\/orders\/ord_xyr22f","type":"application\/hal+json"},"dashboard":{"href":"https:\/\/my.mollie.com\/dashboard\/org_16480368\/orders\/ord_xyr22f","type":"text\/html"},"checkout":{"href":"https:\/\/www.mollie.com\/checkout\/order\/xyr22f","type":"text\/html"},"documentation":{"href":"https:\/\/docs.mollie.com\/reference\/v2\/orders-api\/create-order","type":"text\/html"}},"_embedded":null,"shopperCountryMustMatchBillingCountry":false}
    2022-12-08T10:28:57+00:00 DEBUG setUserMollieCustomerId: Stored Mollie customer ID cst_o5mYk95nHM with user 16
    2022-12-08T10:28:57+00:00 DEBUG creditcard: Mollie payment object ord_xyr22f (test) created for order 10395
    2022-12-08T10:28:57+00:00 DEBUG For order 10395 redirect user to Mollie Checkout URL: https://www.mollie.com/checkout/order/xyr22f
    2022-12-08T10:29:11+00:00 DEBUG Mollie\WooCommerce\Gateway\MolliePaymentGateway::getReturnRedirectUrlForOrder 10395: Determine what the redirect URL in WooCommerce should be.
    2022-12-08T10:29:11+00:00 DEBUG Mollie\WooCommerce\Payment\MollieOrderService::orderNeedsPayment mollie_wc_gateway_creditcard: Order 10395 orderNeedsPayment check: yes, order not previously processed by Mollie gateway.
    2022-12-08T10:29:12+00:00 DEBUG Mollie\WooCommerce\Payment\PaymentModule::onMollieReturn: Redirect url on return order mollie_wc_gateway_creditcard, order 10395: https://www.agni-verlag.de/sandbox-av/shop/kasse/order-received/10395/?key=wc_order_HoZ1MjkoQ0uXG&utm_nooverride=1
    2022-12-08T10:42:47+00:00 DEBUG Mollie\WooCommerce\Payment\PaymentModule::shipAndCaptureOrderAtMollie - 10391 - Try to process completed order for a potential capture at Mollie.
    2022-12-08T10:42:49+00:00 DEBUG Mollie\WooCommerce\Payment\PaymentModule::shipAndCaptureOrderAtMollie - 10391 - Order successfully updated to shipped at Mollie, capture of funds underway.
    

    We need the payment status to be reflected in Woocommerce for an semi-automated workflow, which sets an order status to “processing” which then triggers an email with the delivery slip to our fulfillment partner. Usually after the product has been sent, we manually update to “completed”, which in turn triggers so far the full processing with Klarna. The same should be possible using the mollie plugin, otherwise, we’ll have to do a test using stripe, even if we prefer a European payment gateway to fullfill our current needs.

    Other essential plugins that are usually running with the system but have been tested to NOT cause the issue (i.e. inactive at present):
    * Germanized für WooCommerce 3.11.2
    * Germanized für WooCommerce Pro 3.6.2
    * One Stop Shop für WooCommerce 1.3.3
    * vendidero Helper 2.1.6
    * Custom Order Numbers for WooCommerce 1.4.0 (custom numbers showing up in mollie when actived)
    * Klarna Checkout for WooCommerce 2.8.7
    * Klarna Order Management for WooCommerce 1.7.0

    Formerly we had RealySimpleSSl active and applied the hardening process. Not sure if those changes are reversed upon deactivation. However the only thing I could think of is XML-RPC, but it seems to play no role whether this is active or inactive.

    Your support will be appreciated. Any idea how to solve this issue? We really need this semi-automated workflow based on “paid” status. Especially since we’re also working on a course portal besed on Learndash were mollie is supposed to be the main payment gateway and immediate automated access to courses after payment will depend on its functionality.

    Thank you for your efforts
    Best
    Michael

    • This topic was modified 2 years, 3 months ago by minickel.

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter minickel

    (@minickel)

    P.S.: Also changes in the mollie dashboard like confirming shippig or refunding which sets an order to “completed” or “refunded” in mollie will not be synchronized with Woocommerce despite the dashboard’s output

    Webhook erfolgreich aufgerufen, es dauerte 0,3 Sekunden
    8. Dezember 2022, um 12:32
    Thread Starter minickel

    (@minickel)

    I also tested refunds. Refunding throught the mollie refund button (inside the Woo order itself) will result in Woocommerce going successfully through refund and also mollie dashboard for the order states:

    Verlauf
    
    Webhook erfolgreich aufgerufen, es dauerte 0,3 Sekunden
    9. Dezember 2022, um 17:26
    1× Testprodukt (0,01?€) von Bestellung rückerstattet
    9. Dezember 2022, um 17:26

    However, the order itself in mollie still shows status “paid” and would allow for manual refund through the dashboard.

    Somehow the plugin and the mollie server seem to communicate only half of the story …

    • This reply was modified 2 years, 3 months ago by minickel.
    Thread Starter minickel

    (@minickel)

    Ok, I’m one step further: Is it possible that Mollie for Woo has issues in wordpress multisite network environment (or a single site staging environment, which I use for test purpose)?

    I used a staging site of a wordpress single site installation – for this site, mollie for woo works fine … Thus I became suspicious that it might be a multisite network issue of the plugin on the other site.

    On the multisite staging installation I even used the clean plugin option of WP-Staging, but it did not change the eraneous behaviour.

    Since I cannot test on the productive site for now, I’d still appreciate your help.
    Thank you.

    Plugin Support Syde Niklas

    (@niklasinpsyde)

    Hi @minickel,

    Apologies for getting back just now.

    The order status should always be synchronized via API calls or webhooks, depending on where the change happens.

    Is it possible that Mollie for Woo has issues in wordpress multisite network environment (or a single site staging environment, which I use for test purpose)?

    The Mollie plugin is tested and successfully being used in single site and Multisite installations. So there shouldn’t be any general problems with Multisite.

    But it’s possible that the webhooks are blocked either by the web server configuration or third-party plugins. At least the webhooks appear to not arrive according to the provided logs.
    I remember a single report in the past where an issue with the webhooks was related to the Really Simple SSL plugin. Usually this shouldn’t be an issue, but there are sometimes certain configurations that could cause potential problems.

    In any case, we are interested in a copy of your WooCommerce system report and a complete copy of your Mollie log files to get a better understanding of the plugin activity.
    You can share it either here in the forums or privately with us from here:
    https://mollie.inpsyde.com/docs/request-support/
    Please include a link to this thread if you send a private message.
    Thanks!

    Kind regards,
    Niklas

    Thread Starter minickel

    (@minickel)

    Thank you for your support, Niklas.
    I’ve just created a private support request through the form.
    Kind regards
    Michael

    Plugin Support Syde Niklas

    (@niklasinpsyde)


    Hopefully, the information we provided in your private support request helped you out. As we have not heard back from you in a while, I’m marking this thread as resolved.
    If you have any further questions, please feel free to get back via mail, reopen this topic, or create a new one.

    Thanks!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Mollie test modus: payment status not synchronized’ is closed to new replies.