Integration fo Pay with a Like Plugin into Woocommerce cart

Im trying to integrate PwaL into woocommerce cart...

I have setup a product @ $25.. and want to hide the buy now button... upon liking the product page.. the PwaL plugin will reveal the underlying content, where we want to display the add to cart button and also a 100% discount code to allow the visitor to try our service for free for 15 minutes...

The orignal code on the woocommerce single product page is as follows:

do_action( 'woocommerce_single_product_summary' );

Using the documentation i have the following code : Ignore the echo "Number" as i'm using that as a break point to see how far the code executes...

308 represents the actual product that is for Free...

if ( function_exists( 'wpmudev_pwal' ) ); {
$rpcs_pid = $post->ID;
//echo "1";
if($rpcs_pid == "308" ); {
// echo "2";
echo wpmudev_pwal( do_action( 'woocommerce_single_product_summary' ) );
} else {
//echo "3";
} else {
//echo "4";
do_action( 'woocommerce_single_product_summary' );
}

However i get a server error 500.. I'm sure its my syntax...

Any help would be appreciated.. i'm sure its a simpel thing..

Thanks