PriMoThemes — now s2Member® (official notice)
This is now a very OLD forum system. It's in READ-ONLY mode.
All community interaction now occurs at WP Sharks™. See: new forums @ WP Sharks™
http://example.com/?s2member_paypal_return=1
also, will this make sandbox mode work now?
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="xxxxxxxxxx">
<input type="hidden" name="lc" value="US">
<input type="hidden" name="item_name" value="Membership">
<input type="hidden" id="item_number" name="item_number" value="1">
<input type="hidden" name="button_subtype" value="services">
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="no_shipping" value="1">
<input type="hidden" name="rm" value="1">
<input type="hidden" name="return" value="http://example.com/?s2member_paypal_return=1">
<input type="hidden" name="cancel_return" value="http://example.com/">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="bn" value="PP-BuyNowBF:btn_buynowCC_LG.gif:NonHosted">
<input type="hidden" name="custom" value="example.com">
<input type="hidden" name="notify_url" value="http://example.com/?s2member_paypal_notify=1">
<table><tr>
<td><input type="hidden" name="on0" value="Membership Levels">Membership Levels</td></tr>
<tr><td>
<select name="os0" onchange="document.getElementById('item_number').value = this.options[this.selectedIndex].level;">
<option level="1" value="Level #1">Level #1 $10.00</option>
<option level="2" value="Level #2">Level #2 $20.00</option>
<option level="3" value="Level #3">Level #3 $30.00</option>
<option level="4" value="Level #4">Level #4 $40.00</option>
</select>
</td></tr>
</table>
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="option_select0" value="Level #1">
<input type="hidden" name="option_amount0" value="10.00">
<input type="hidden" name="option_select1" value="Level #2">
<input type="hidden" name="option_amount1" value="20.00">
<input type="hidden" name="option_select2" value="Level #3">
<input type="hidden" name="option_amount2" value="30.00">
<input type="hidden" name="option_select3" value="Level #4">
<input type="hidden" name="option_amount3" value="40.00">
<input type="hidden" name="option_index" value="0">
<input type="image" src="https://www.paypal.com/en_US/i/btn/btn_buynowCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
<img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>
When using S2 in conjuction with a forum (S2 plays really nicely with Simple Forum) it would be useful if we had a choice of which auto paypal buttons we could use. So, for example, the subscribe and unsubscribe and buy now buttons would be helpful. Presumably it is easy enough to specify these in the button code, but where do we find a list of available buttons and their codes? I've been stumped on this.
[s2Member-PayPal-Button cancel="1" image="default" /]
martonic wrote:Hi Jason, Thank you for a fantastic tool and awesome support!
A couple of questions:
1) Can we send the userID as the "custom" field?
2) What if someone pays, then quits the browser (or power fails, etc.) before they register?
As you can see, I'm confused about the move order - I would expect signing up to require site registration first. Otherwise, what happens in scenario #2 above?
guileshill wrote:Thanks Jason. I've been using this but I think I wasn't clear in the question. I understand the functionality of the different buttons, my question is about selecting the appropriate button graphics. Everything except the cancellation button uses the "default" image which is the 'check out with paypal' graphic. I can always make my own buttons of course, but how do I call the Subscribe graphic? This gets pretty confusing for users if there are several options for each level like Subscribe to Level 1, upgrade to Level 2, or some downgrade buttons when they all carry the same graphic. A recipe for servcie confusion I think.
image="http://mysite.com/myimage.png"
[s2Member-PayPal-Button level="1" ccaps="music,videos" desc="Music & Videos" ps="PayPal" cc="USD" custom="www.example.com" tp="0" tt="D" ra="0.01" rp="1" rt="M" rr="1" image="http://mysite.com/myimage.png" /]
martonic wrote:Hi Jason,
I really like this tool, and I'm keen to get the pro version. My client needs to integrate membership purchases into an accounting system.
My "usual" method would be to have the user register first, then send the userID as "custom", then call an additional back-end process on IPN (either from notify_URL or using your notification API feature).
However, I am not quite clear on how to make this go through in this context. I could for instance restrict the "Purchase" page to users who have already registered for a WP login.
But - How does s2member connect the Paypal transaction with the member who made it - especially if they have not yet registered? What is the key field - is it Email? But then ... what if two users share the same PAYPAL account - can they each purchase a subscription (different type, perhaps) and be separately identified?
Thanks again for your consideration - this is greatly appreciated.
But - How does s2member connect the Paypal transaction with the member who made it - especially if they have not yet registered? What is the key field - is it Email? But then ... what if two users share the same PAYPAL account - can they each purchase a subscription (different type, perhaps) and be separately identified?
<!-- Identifies/Updates An Existing Member After Checkout -->
<input type="hidden" name="on0" value="Updating" />
<input type="hidden" name="os0" value="123" />
<input type="hidden" name="modify" value="1" />
what if two users share the same PAYPAL account - can they each purchase a subscription (different type, perhaps) and be separately identified?
Jason Caldwell wrote:guileshill wrote:Thanks Jason. I've been using this but I think I wasn't clear in the question. I understand the functionality of the different buttons, my question is about selecting the appropriate button graphics. Everything except the cancellation button uses the "default" image which is the 'check out with paypal' graphic. I can always make my own buttons of course, but how do I call the Subscribe graphic? This gets pretty confusing for users if there are several options for each level like Subscribe to Level 1, upgrade to Level 2, or some downgrade buttons when they all carry the same graphic. A recipe for servcie confusion I think.
I see. Sorry, I misunderstood the question. Each PayPal Button Shortcode has a default "image" attribute. ( i.e. image="default" ). You can just change that to something like this:
- Code: Select all
image="http://mysite.com/myimage.png"
Here is a full example:
- Code: Select all
[s2Member-PayPal-Button level="1" ccaps="music,videos" desc="Music & Videos" ps="PayPal" cc="USD" custom="www.example.com" tp="0" tt="D" ra="0.01" rp="1" rt="M" rr="1" image="http://mysite.com/myimage.png" /]
Is there anyway to get control of this aspect? Where is the form set to 50% - am I able to change it?
Return to Common Questions/Problems/Tips
Users browsing this forum: No registered users and 0 guests