Page 1 of 1

Load pro-form via PHP

PostPosted: September 2nd, 2011, 2:43 pm
by 21inspired
Is there a template tag / api call we can use to embed Paypal Pro Forms in our PHP template (rather than having to use a shortcode in a page)?

Re: Template tag for Pro Forms

PostPosted: September 6th, 2011, 1:36 pm
by Jason Caldwell
Thanks for the excellent question.

Yes, you can use this function, and just pass it an array of Shortcode Attributes.
Code: Select all
<?php
$attr 
= array("level" => "1", "ra" => "24.95"); // Any Shortcode Attribute you like.
echo c_ws_plugin__s2member_pro_paypal_form::sc_paypal_form($attr));
?>
For a full list of Shortcode Attributes, please check your Dashboard, under:
s2Member -> PayPal Pro Forms -> Shortcode Attributes (Explained).

Also see docs here: viewtopic.php?f=40&t=12764&src_doc_v=110815

Re: Template tag for Pro Forms

PostPosted: September 6th, 2011, 1:43 pm
by 21inspired
Much appreciated... thanks