• Is it possible to have a “Pay Now” button/link on an emailed invoice which would point back to payment gateway in the Website/Woocommerce store? In our case we are using Authorize.net. If so, would it not have to be a custom link for each emailed invoice which would return the user to their cart to make final payment? Basically, creating and passing tokens? Is there another way better suited for customers to pay the invoice?
    Appreciate any thoughts or insights you can give me on this.

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

    (@pomegranate)

    WooCommerce orders have a method to generate payment links: $order->get_checkout_payment_url().

    So withing a custom template you could turn this into a payment link like so (untested):

    
    <?php if ( $order->is_paid() === false ): ?>
    	<a href="<?php echo $order->get_checkout_payment_url(); ?>" class="pay-now-link">PAY NOW</a>
    <?php endif ?>
    

    Good luck!

    • This reply was modified 5 years, 3 months ago by Ewout.
    Thread Starter ronhorne50

    (@ronhorne50)

    Many Thanks, Ewout. I will be trying this and testing this out. I will definitely report back to you with results.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Pay Now button on emailed invoice back to Payment Gateway’ is closed to new replies.