Wrapping shortcode but can you use php?

I need to wrap more than one pro-forms, but because I NEED to use a php code for a specific dynamic ccap, it won’t take the typical shortcode before and after to wrap it in.

So, I have two codes similar to this:
<?php
echo do_shortcode(’[s2Member-Pro-Stripe-Form level=“1” ccaps=“holly’.date(‘Ym’).’” desc=“Create a profile bellow and access your quarterly subscription for just $18/3 months” cc=“USD” ta=“0” tp=“0” tt=“M” ra=“18” rp=“3” rt=“M” rr=“1” coupon="" accept_coupons=“0” default_country_code=“US” captcha=“0” /]’);
?>

Can wrap two of those together? If so, how? Using [s2Member-Pro-Stripe-Form] won’t work, so I assume I should use some php language there instead. But what?

Thanks

Build your complex wrapping shortcode first, as text. Put it in a PHP variable, say “$megacode”. Where you need, use PHP inside it, to populate need values. Now use “do_shortcode” on $megacode and you will have the need output.

I have done something similar to Krum. Created a dynamic string with the capabilities i needed i.e current country and changed price, symbol etc. You will not however be able to add 2 forms to the page which are visible as you will get s2 member errors.

W