latest stable versions: v150827 (changelog)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Insert Paypal Button code to php

Home Forums Community Forum Insert Paypal Button code to php

This topic contains 1 reply, has 2 voices. Last updated by  Bruce 3 years, 6 months ago.

Topic Author Topic
Posted: Tuesday Jul 2nd, 2013 at 2:45 am #52857
Keng Hui
Username: gymosphere

Is it possible to insert Resulting PayPal® Button Code below into wordpress plugin php file? I need this paypal button appears in a form, which is a wordpress plugin.

<form action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post">
 
 
 <!-- Instant Payment Notification &amp; Return Page Details -->
 
 
 
 
 <!-- Configures Basic Checkout Fields -->
 
 
 
 
 
 
 
 
 
 
 <!-- Configures s2Member's Unique Invoice ID/Code  -->
 &lt;input type=&quot;hidden&quot; name=&quot;invoice&quot; value=&quot;" /&gt;
 <!-- Associates Purchase With A User/Member ( when/if applicable ) -->
 &lt;input type=&quot;hidden&quot; name=&quot;on0&quot; value=&quot;" /&gt;
 &lt;input type=&quot;hidden&quot; name=&quot;os0&quot; value=&quot;" /&gt;
 <!-- Identifies The Customer's IP Address For Tracking -->
 &lt;input type=&quot;hidden&quot; name=&quot;on1&quot; value=&quot;" /&gt;
 &lt;input type=&quot;hidden&quot; name=&quot;os1&quot; value=&quot;" /&gt;
 <!-- Displays The PayPal® Image Button -->
 
</form>

List Of Topic Replies

Viewing 1 replies (of 1 total)
Author Replies
Author Replies
Posted: Tuesday Jul 2nd, 2013 at 5:05 am #52873
Bruce
Username: Bruce
Staff Member

Thank you for your inquiry.

Try using the Shortcode + the WordPress do_shortcode() function documented here:

http://codex.wordpress.org/Function_Reference/do_shortcode


Alternatively if you want to use the HTML version, you can just echo out the string:

http://php.net/manual/en/function.echo.php

Viewing 1 replies (of 1 total)

This topic is closed to new replies. Topics with no replies for 2 weeks are closed automatically.

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Contacting s2Member: Please use our Support Center for bug reports, pre-sale questions & technical assistance.