I hope you can help me. I have searched through this forum and found a couple of threads which go some way to answering my question, but as a coding novice I still need some advice...
I want to create a Paypal drop down selector to allow customers to pay for membership either monthly £9.99 or annually £47.99 (I would put in 6 monthly if I could, but it seems that Paypal & s2member don't allow this?) for the same subscription type. I generated the Paypal code, which is hosted by them (I can't change this in stage two of the papal button creation process - it's greyed out):
- Code: Select all
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="6CPYKY95ZUZ7N">
<table>
<tr><td><input type="hidden" name="on0" value="Payment Options">Payment Options</td></tr><tr><td><select name="os0">
<option value="Monthly Membership">Monthly Membership : £9.99GBP - monthly</option>
<option value="Annual Membership">Annual Membership : £47.99GBP - yearly</option>
</select></td></tr>
</table>
<input type="hidden" name="currency_code" value="GBP">
<input type="image" src="https://www.paypalobjects.com/WEBSCR-640-20110429-1/en_GB/i/btn/btn_subscribe_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online.">
<img alt="" border="0" src="https://www.paypalobjects.com/en_GB/i/scr/pixel.gif" width="1" height="1">
</form>
And inserted the following text...
<table>
<tr><td><input type="hidden" name="on0" value="Payment Options">Payment Options</td></tr><tr><td><select name="os0">
<option value="Monthly Membership">Monthly Membership : £9.99GBP - monthly</option>
<option value="Annual Membership">Annual Membership : £47.99GBP - yearly</option>
</select></td></tr>
</table>
into the s2member button:
- Code: Select all
<form action="https://www.paypal.com/cgi-bin/webscr" method="post"> <input name="business" type="hidden" value="accounts@base1music.com" />
<input name="cmd" type="hidden" value="_xclick-subscriptions" />
<!-- Instant Payment Notification & Return Page Details -->
<input name="notify_url" type="hidden" value="http://www.base1music.com/?s2member_paypal_notify=1" />
<input name="cancel_return" type="hidden" value="http://www.base1music.com/" />
<input name="return" type="hidden" value="http://www.base1music.com/?s2member_paypal_return=1" />
<input name="rm" type="hidden" value="2" />
<!-- Configures All Of The Checkout Fields -->
<input name="no_shipping" type="hidden" value="1" />
<input name="no_note" type="hidden" value="1" />
<input name="custom" type="hidden" value="www.base1music.com" />
<input name="currency_code" type="hidden" value="USD" />
<input name="page_style" type="hidden" value="paypal" />
<table>
<tr><td><input type="hidden" name="on0" value="Payment Options">Payment Options</td></tr><tr><td><select name="os0">
<option value="Monthly Membership">Monthly Membership : £9.99GBP - monthly</option>
<option value="Annual Membership">Annual Membership : £47.99GBP - yearly</option>
</select></td></tr>
</table>
<input name="item_number" type="hidden" value="1" />
<!-- Identifies/Updates An Existing Member After Checkout -->
<input name="on0" type="hidden" value="<?php echo S2MEMBER_CURRENT_USER_VALUE_FOR_PP_ON0; ?>" />
<input name="os0" type="hidden" value="<?php echo S2MEMBER_CURRENT_USER_VALUE_FOR_PP_OS0; ?>" />
<input name="modify" type="hidden" value="0" />
<!-- Customizes Prices, Payments & Billing Cycle -->
<!--<input type="hidden" name="amount" value="0.01" />-->
<input name="src" type="hidden" value="1" />
<input name="sra" type="hidden" value="1" />
<input name="a1" type="hidden" value="0.00" />
<input name="p1" type="hidden" value="0" />
<input name="t1" type="hidden" value="D" />
<input name="a3" type="hidden" value="0.01" />
<input name="p3" type="hidden" value="1" />
<input name="t3" type="hidden" value="M" />
<!-- Displays The PayPal® Image Button -->
<input style="width: auto; height: auto; border: 0;" alt="PayPal®" src="https://www.paypal.com/en_US/i/btn/btn_xpressCheckout.gif" type="image" />
</form>
This displays really well:
but when I click on the button it returns this message on the paypal url:
Please advise. Really not sure how to work this and desperate to get it up and running (need explicit instructions as a coding novice please).
Thanks in anticipation,
Trae
NB: I am running WP 3.1.3 and s2member 3.5.8 (Theme is Dynamix)