• Resolved silleaaes

    (@silleaaes)


    Hi

    I’m working on an integration between our webshop and our accounting system.How do I manage to add both transaction ID and Payment method to our invoices?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor Ewout

    (@pomegranate)

    Hi! The Payment Method is printed by default on the invoice already, above the order items (near the order date).
    If you want to print the transaction ID, you could do that with our Premium Templates extension, using a custom block. In the custom block (type: Text), you can use the {{transaction_id}} placeholder to print the transaction ID (similarly you can also use the {{payment_method_title}} placeholder).

    If you want to do this with the free version, you could create a custom template and add:

    
    <?php echo $order->get_transaction_id(); ?>
    
    Thread Starter silleaaes

    (@silleaaes)

    Hi.
    Thank you for your fast reply! And sorry for being an amateur at this.

    Both transaction ID and Payment type are transferred from the payment gateway to the order admin in WooCommerce, but the payment type is not added to the invoice as you can see: https://www.screencast.com/t/nnfU0dWK51

    Best, Sille

    Plugin Contributor Ewout

    (@pomegranate)

    That’s strange… Could you show a screenshot of the Payment Method in the order in WooCommerce? It should show at the top:

    Thread Starter silleaaes

    (@silleaaes)

    Plugin Contributor Ewout

    (@pomegranate)

    It looks like the payment method isn’t printed in the official location either (“Payment via”, compare my screenshot), but in a separate location. I recommend reaching out to the gateway developers to ask if it’s possible to store the method name in the order meta (payment_method_title property) so that all the official methods still work.
    They seem to be pulling this live from a webservice: https://github.com/ePay/woocommerce/blob/master/bambora-online-classic/bambora-online-classic.php#L1016

    Displaying the transaction ID with the above instructions should still work.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Payment Method and transaction ID’ is closed to new replies.