Thanks for your inquiry.
On the registration page, the user enters the number of adults, and I believe with paypal buttons I could edit the cost with javascript. Is anything like that possible using Authorize.net?
Though editing the values of the PayPal Buttons after they are generated is possible, with s2Member’s Pro Forms this is not the case.
s2Member encrypts these Pro Forms based on the encryption key you have set up under Dashboard -› s2Member® -› General Options -› Security Encryption Key. This is for security, so that customers cannot simply change the price by editing the source code of your page.
Therefore, the only way to change the price of your Pro Form is to generate the form with s2Member’s Shortcodes again.
It is possible to dynamically set the price of your Pro Form, though. The easiest way to do this is to use a PHP Execution plugin to decide what the price should be based on a variable that you can set up from within your page.
For example, you could send users to URL like the following:
http://yoursite.com/my-membership-options-page?members=4
If that is the case, you’d want to then multiply the amount of members by 10, and update your Pro Form to accomodate this:
[s2Member-PayPal-Butto... ra="<?php echo $_GET['members']*10; ?>" ... /]
See: s2Member® » Knowledge Base » Using Variables In A Shortcode
See Also: PHP Execution