Quantcast
Channel: Topic Tag: paypal | WordPress.org
Viewing all articles
Browse latest Browse all 10033

ocisutiocean on "[Plugin: PayPal for WooCommerce] How to verify PayPal payment and complete orders automatically?"

$
0
0

Hi, If I understood corectly, after instaling this plugin trough cms, I need to add this code snippet to functions.php or my Custom functions plugin, and all my orders are automaticly marked as complete after purchase?

Also, isnt woocommerce already integrated with paypal? I mean, I after instalation of woocommerce there is by defaulth 'paypal' tab in backend.
What do I gain by installing this plugin?

Also, I have found this http://docs.woothemes.com/document/automatically-complete-orders/

/**
 * Auto Complete all WooCommerce orders.
 */
add_action( 'woocommerce_thankyou', 'custom_woocommerce_auto_complete_order' );
function custom_woocommerce_auto_complete_order( $order_id ) {
    if ( ! $order_id ) {
        return;
    }

    $order = wc_get_order( $order_id );
    $order->update_status( 'completed' );
}

Which means I do not really need any plugin to mark successfull orders as complete.
But then again, there is paid plugin again by woocomm. doing the same thing for $29.

This really doesn't make sense. lmfao


Viewing all articles
Browse latest Browse all 10033

Trending Articles