Mollie test modus: payment status not synchronized
-
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.0Formerly 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
MichaelThe page I need help with: [log in to see the link]
- The topic ‘Mollie test modus: payment status not synchronized’ is closed to new replies.