Support » Plugin: WooCommerce PDF Invoices & Packing Slips » PayPal (Pay After Delivery) – “Kauf auf Rechnung”

  • Hello,

    We use the new PayPal Plus feature and the plugin on our online shop.

    We offer the PayPal “On Invoice” option to our customers, now we use the plugin “WooCommerce PDF Invoices & Packing Slips” to create the invoices, however, the purchases have to be paid via PayPal by the customer.

    How can I display the bank details of PayPal Plus on the invoice, if the customer has selected the method of purchase “On invoice” / “Kauf auf Rechnung”?

    Is there a possibility to place the bank data on the invoice with the bank & usage data of PayPal?

    I hope for an early and fast feedback.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support kluver

    (@kluver)

    Hi @kuna1,

    That is certainly possible. You will have to get the payment gateway id and add it to the following snippet:

    add_action( 'wpo_wcpdf_after_order_details', 'wpo_wcpdf_add_bank_info', 10, 2 );
    function wpo_wcpdf_add_bank_info ($template_type, $order) {
        if ($template_type == 'invoice') {
            $payment_method = get_post_meta( $order->id, '_payment_method', true );
            if ( $payment_method == 'your_payment_method_id' ) {
                ?>
                <div class="bank-info">
                    <p>Your bank info here.</p>
                </div>
                <?php
            }
        }
    }

    You can find the gateway ID under WooCommerce > Settings > Checkout > Gateway display order. The code snippet should go into the functions.php of your child-theme. If you haven’t worked with code snippets or functions.php before please read this: How to use filters

    Hi,

    first thanks for the reply i will try this out, but i canĀ“t find the gateway ID through your given path “WooCommerce > Settings > Checkout > Gateway display order”.

    Where can i find exactly the payment id? Any option to find it out through FTP?

    Will your code also work for custom “bank use purpose” cause it will be different for every client, i use PayPal Plus.

    cause you got this part in the snippet “<div class=”bank-info”>
    <p>Your bank info here.</p>”

    Plugin Author Ewout

    (@pomegranate)

    Hello Kuna,
    The settings path that Michael gave you is for older versions of WooCommerce. Unfortunately the ID is no longer directly visible in the WooCommerce settings.
    You can still get it under WooCommerce > Settings > Payments, if you then click on the payment method you can check the URL, which will give the ID after “&section=”.

    I’m not sure I understand your last question, but if you are saying that the text will need to be different for every customer then you will need to fill a custom field in the WooCommerce order so you can enter it there, then retrieve that to show it on the invoice (see documentation on displaying custom fields). That’s quite a bit more complex though!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘PayPal (Pay After Delivery) – “Kauf auf Rechnung”’ is closed to new replies.