Source Code Documentation


s2member\includes\templates\buttons\paypal-ccaps-checkout-button.php


  1. <?php
  2. if (realpath (__FILE__) === realpath ($_SERVER["SCRIPT_FILENAME"]))
  3. exit("Do not access this file directly.");
  4. ?>
  5.  
  6. <form action="https://%%endpoint%%/cgi-bin/webscr" method="post">
  7. <input type="hidden" name="business" value="%%paypal_business%%" />
  8. <input type="hidden" name="cmd" value="_xclick" />
  9. <!-- <?php echo _x ("Instant Payment Notification & Return Page Details", "s2member-admin", "s2member"); ?> -->
  10. <input type="hidden" name="notify_url" value="%%notify_url%%" />
  11. <input type="hidden" name="cancel_return" value="%%cancel_return%%" />
  12. <input type="hidden" name="return" value="%%return%%" />
  13. <input type="hidden" name="rm" value="2" />
  14. <!-- <?php echo _x ("Configures Basic Checkout Fields", "s2member-admin", "s2member"); ?> -->
  15. <input type="hidden" name="lc" value="" />
  16. <input type="hidden" name="no_shipping" value="1" />
  17. <input type="hidden" name="no_note" value="1" />
  18. <input type="hidden" name="custom" value="%%custom%%" />
  19. <input type="hidden" name="currency_code" value="USD" />
  20. <input type="hidden" name="page_style" value="paypal" />
  21. <input type="hidden" name="charset" value="utf-8" />
  22. <input type="hidden" name="item_name" value="<?php echo esc_attr (_x ("Description and pricing details here.", "s2member-admin", "s2member")); ?>" />
  23. <input type="hidden" name="item_number" value="*:music,videos" />
  24. <input type="hidden" name="amount" value="0.01" />
  25. <!-- <?php echo _x ("Configures s2Member's Unique Invoice ID/Code", "s2member-admin", "s2member"); ?> -->
  26. <input type="hidden" name="invoice" value="<?php echo "<?php echo S2MEMBER_VALUE_FOR_PP_INV(); ?>"; ?>" />
  27. <!-- <?php echo _x ("Associates Purchase With A User/Member (when/if applicable)", "s2member-admin", "s2member"); ?> -->
  28. <input type="hidden" name="on0" value="<?php echo "<?php echo S2MEMBER_CURRENT_USER_VALUE_FOR_PP_ON0; ?>"; ?>" />
  29. <input type="hidden" name="os0" value="<?php echo "<?php echo S2MEMBER_CURRENT_USER_VALUE_FOR_PP_OS0; ?>"; ?>" />
  30. <!-- <?php echo _x ("Identifies The Customer's IP Address For Tracking", "s2member-admin", "s2member"); ?> -->
  31. <input type="hidden" name="on1" value="<?php echo "<?php echo S2MEMBER_CURRENT_USER_VALUE_FOR_PP_ON1; ?>"; ?>" />
  32. <input type="hidden" name="os1" value="<?php echo "<?php echo S2MEMBER_CURRENT_USER_VALUE_FOR_PP_OS1; ?>"; ?>" />
  33. <!-- <?php echo _x ("Displays The PayPal® Image Button", "s2member-admin", "s2member"); ?> -->
  34. <input type="image" src="https://www.paypal.com/<?php echo esc_attr (_x ("en_US", "s2member-front paypal-button-lang-code", "s2member")); ?>/i/btn/btn_xpressCheckout.gif" style="width:auto; height:auto; border:0;" alt="PayPal®" />
  35. </form>

s2member\includes\templates\buttons\paypal-ccaps-checkout-button.php

Source Code Documentation