Check CCAP from within PayPal Checkout Template

I have created a custom pro-form template for PayPal (paypal-checkout-form.php).
I am also going to use the same form for two types of purchases: Purchases & Renewals.

In the pro-form template, I created a section at the top for the pricing info. The price will change depending if the person has a “profile” CCAP or not.
What should be straight forward has now got me stumped.

It seems the standard
“if (user_can($user_id,‘access_s2member_ccap_profile’))”
is not working from within this form as it always seems to output the “else” value.

Does anyone know how to check CCAPs from within the PayPal checkout form template?

Full code below.
From paypal-checkout-form.php:

<?php $purchase = purchase_price(); echo $purchase; ?> <?php $fee = fee_price(); echo $fee; ?> <?php $total = total_price(); echo $total; ?>

From functions.php:

function purchase_price() {

 if (user_can($user_id,'access_s2member_ccap_profile')) {
	 $price = 25.00;
 }
 else {
	 $price = 50.00;
 }
 
 return number_format((float)$price, 2, '.', '');

}

function fee_price() {
if (user_can($user_id,‘access_s2member_ccap_profile’)) {
$price = 1.00;
}
else {
$price = 1.65;
}

 return number_format((float)$price, 2, '.', '');

}

function total_price() {
$purchase = purchase_price($user_id);
$fee = fee_price($user_id);

 $total = $purchase+$fee;
 
 return number_format((float)$total, 2, '.', '');

}

Found the solution.

if(current_user_can(‘access_s2member_ccap_profile’))

I don’t know why the other one wasn’t working as I use it everywhere else.
Anyway…