• Resolved jelica

    (@jelica)


    Hello, first of all, nice job on the plugin.
    Is there a way to create an invoice earlier in the order process, for example i want to send invoice number generated by your plugin to paypal duging payment, and at the moment it looks like i have it only when order is proccesed and after the payment.
    Thanks 🙂

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor dwpriv

    (@dwpriv)

    @jelica this isn’t possible, unfortunately. Given this scenario, the invoice would have to be sent before the order process is completed and before an order exists to create the invoice from. Our plugin can only generate the documents from the Woocommerce order when the checkout process is complete.

    Thread Starter jelica

    (@jelica)

    The paypal already gets order id, so it means that order exists, I don’t need to send the invoice in that moment just to have invoice number so i can pass it to paypal 🙂
    Thank a lot for your answer

    Plugin Contributor dwpriv

    (@dwpriv)

    If this is the case, and assuming the invoice is created at this point, the invoice number should be present as well. However, you would need some custom development in the payment processor to pass the number to PayPal in the same way the order ID is passed. The meta key in the order data for the invoice number is _wcpdf_invoice_number.

Viewing 3 replies - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.