• Resolved Lukas Prelovsky

    (@lukas-prelovsky)


    Hi, I see that the module does not provide information the payment was successful or not in custom field.

    In the past, I used a special custom field in another module, where it generated a PAID message

    I can currently only see it in the custom field _ppcp_paypal_intent message: CAPTURE Is it possible to pull information from a custom field about the payment status? PAID?

    Thanks for the reply

    • This topic was modified 1 year, 5 months ago by Lukas Prelovsky. Reason: text
Viewing 1 replies (of 1 total)
  • Plugin Support Syde Joost

    (@joostvandevijver)

    Hello @lukas-prelovsky

    Thank you for reaching out to us, we are here to help.

    This request is not related to any standard function of our plugin, so it would not fall within the support we normally provide.

    However, I raised the same question with our developers, in the hope they would have a minute to take a look, and I got this response for you:

    There is an action you can hook into that is executed after payment capture is completed on PayPal, just before we set payment completed in WC:?https://github.com/woocommerce/woocommerce-paypal-payments/blob/trunk/modules/ppcp-webhooks/src/Handler/PaymentCaptureCompleted.php#L108

    You can use it like so:
    add_action( 'ppcp_payment_capture_completed_webhook_handler', function($wc_order, $order_id) { // $wc_order WC order // $order_id PayPal order ID }, 10, 2);

    PaymentCaptureCompleted.php????????
    do_action( 'ppcp_payment_capture_completed_webhook_handler', $wc_order, $order_id );

    ————————————-

    I hope this helps you get a solution, but if it doesn’t, I would advise you to reach out to a WooCommerce specialist to help you find a solution.

    Kind regards,
    Joost

Viewing 1 replies (of 1 total)
  • The topic ‘PAID status in custom field’ is closed to new replies.