How do I call plans in PHP (or Java)?

Yeah I know, users can create their own div wrapper around playplans (

But I'm looking for a way to call already generated Payplans.
You have them in Menu by link :


So I tried

$FileContents = file_get_contents("*your domain*/index.php?option=com_payplans&view=plan&task=subscribe&plan_id=0&group_id=0");
echo $FileContents();

It does work but also gives me footer and menu, because I call for a whole page. =)
There should be an easier way to call them same way menu does...?

This section can only be seen by users with a valid subscription.
If you have a valid subscription, please login now

Support is

It is currently off working hours and most of us aren't around.

Rest assured that we will get back to your issues as soon as the day starts tomorrow!

Your time
Stack Ideas time