• Resolved basvandijkk

    (@basvandijkk)


    In previous versions of the plugin(pre: 7.0.3.) I could retrieve payment information by calling something like:
    $payment = \Mollie_WC_Plugin::getPaymentObject()->getActiveMolliePayment( $order->get_id() );

    What is the way to retrieve similar if not the same data with the latest version of the plugin? I cannot find it due to me having trouble to provide the constructors with the needed parameters.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Syde Niklas

    (@niklasinpsyde)

    Hi @basvandijkk,

    Mollie v7 refactored the integration with a modular architecture. Version 7.0.2 is an exception as it was a rollback release with the v6 codebase. So with that version, you can still retrieve information the old way.

    With all newer versions, it works differently though. Please have a look into this PR for a filter to create a new module.
    A custom module can retrieve the required information from the container and provides full flexibility, but we will look into potentially providing a filter for easier access.

    Kind regards,
    Niklas

    Plugin Support Syde Niklas

    (@niklasinpsyde)

    We have not heard back from you in a while, so I’m marking this thread as resolved.
    Hopefully, the above information helped you out.
    If you have any further questions, please feel free to reopen this topic or create a new one.
    Thank you!

    Kind regards,
    Niklas

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Retrieving paymentObject by Order.’ is closed to new replies.