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™

Using paypal created buttons

Common Questions/Problems/Tips. Posted by Administrators & Support Reps.

Using paypal created buttons

Postby ilanamullin » June 30th, 2010, 12:45 am

hi there, i'm a noob using your plugin on my wordpress site so here's my situation:

i have a wordpress site with one page that has membership only access.
i'm selling 4 different types of accts that all will be able to access this page. the difference in pricing and reason for multiple types of accts is that there are services i'm offering other than just the web content (phone consultations and the like....)

i like my paypal generated button because it creates an drop down option box, and then i only need one paypal button on my services page, and the user can just select what service they like.

how exactly does this integrate with s2member? what do i need to match up.
i have set up my paypal to direct to the wp-login.php?action=register page after purchase.

i have s2member set up to be in sandbox mode, but that doesn't seem to carry over to the paypal button i inserted.

please be specific on what i need to do.

the site is http://www.coachinglearners.com
/services is where the button resides.

help me please ;)
User avatar
ilanamullin
Registered User
Registered User
 
Posts: 2
Joined: June 30, 2010

Re: Using paypal created buttons

Postby Jason Caldwell » June 30th, 2010, 4:28 pm

Thanks for the great questions.
I'm attaching two screen shots for you.

In screenshot #1, you will see the "Item ID" field. That's the "item_number" field used by the s2Member software, and you'll need to set the Item ID to a numerical value [1-4] depending on which Membership Level you want to sell access to.

s2Member can also use more advanced Item ID's, so if you're ever in doubt, please create a PayPal Button with s2Member, and look to see what s2Member uses as it's item_number field. When you create Buttons directly through PayPal, you need to make sure that you set the Item ID to something s2Member expects.

s2Member can parse the following details from your Item ID:
level:custom capabilities:fixed term
( colon delimited )
Item ID = 1
Item ID = 2
Item ID = 1:music,videos
Item ID = 3:music
Item ID = 4:music,videos:1 D

paypal-buttons-step-1.jpg

In addition to the Item ID, when you create Buttons directly through PayPal,
you also need a Return URL, and three Advanced variables.

The Return URL, is:
Code: Select all
http://example.com/?s2member_paypal_return=1
This can also be found under: s2Member -> PayPal Options -> Auto-Return / PDT.

The Advanced variables, are "rm", "custom" and "notify_url".
The "rm" value should be set to "2", for Auto-Return Post data.
The "custom" value is just your domain name: example.com.
The "notify_url" is: http://example.com/?s2member_paypal_notify=1
This can also be found under: s2Member -> PayPal Options -> IPN Integration.

paypal-buttons-step-3.jpg

* Note... if your site uses the "www." in your domain name, make sure that you DO include that. This example does NOT use the "www.", but if your site uses it, you MUST include it in all URLs, and in the custom variable.
~ Jason Caldwell / Lead Developer
& Zeitgeist Movie Advocate: http://www.zeitgeistmovie.com/

Is the s2Member plugin working for you? Please rate s2Member at WordPress.org.
You'll need a WordPress.org account ( comes in handy ). Then rate s2Member here Image
.
User avatar
Jason Caldwell
Lead Developer
Lead Developer
 
Posts: 4045
Joined: May 3, 2010
Location: Georgia / USA

Re: Using paypal created buttons

Postby ilanamullin » June 30th, 2010, 5:22 pm

thank you so much. one more question tho:
1. the generated code by paypal doesn't show the item id:

<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="9CRYJRH7UFZ9L">
<table>
<tr><td><input type="hidden" name="on0" value="Services">Services</td></tr><tr><td><select name="os0">
<option value="Basic Plan">Basic Plan $325.00</option>
<option value="Enhanced Plan">Enhanced Plan $495.00</option>
<option value="Single session">Single session $95.00</option>
<option value="Mind Mapping web session">Mind Mapping web session $50.00</option>
</select> </td></tr>
</table>
<input type="hidden" name="currency_code" value="USD">
<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>

is this hidden from my view? i followed your steps to a t, but i just want to make sure.
also, will this make sandbox mode work now?
User avatar
ilanamullin
Registered User
Registered User
 
Posts: 2
Joined: June 30, 2010

Re: Using paypal created buttons

Postby Jason Caldwell » June 30th, 2010, 6:00 pm

Yea, it's just hidden from your view. This particular Button you generated is being hosted by PayPal ( i.e. hosted_button_id="9CRYJRH7UFZ9L" ). If you want to see all of the variables, you can use Step 2 in PayPal's button creator. Just un-check the "Host My Button" option, and turn off Button Encryption so you can see all of the variables that are being passed through.
also, will this make sandbox mode work now?

No. This Button was created on a live PayPal account. If you need it to work in Sandbox mode, you will need to create your test Buttons through a Sandbox "Seller" account.

Also, please keep in mind... even though your custom Button is offering different prices, the transaction will always result in a Customer receiving s2Member Level #1 access ( i.e. Item ID = 1 ) in your Button. If you need this to work dynamically, so that the Item ID is adjusted based on the price they choose, you will need to apply some JavaScript to your Button Code as well. Something like this:
Code: Select all
<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>

For the benefit of other readers. ---- One way to avoid the need for any of this, is just to use the s2Member -> PayPal Button Generator that comes with s2Member. You can create a separate Button Code for each Level. Where each Button is configured for access to a specific Level, at a specific price.
~ Jason Caldwell / Lead Developer
& Zeitgeist Movie Advocate: http://www.zeitgeistmovie.com/

Is the s2Member plugin working for you? Please rate s2Member at WordPress.org.
You'll need a WordPress.org account ( comes in handy ). Then rate s2Member here Image
.
User avatar
Jason Caldwell
Lead Developer
Lead Developer
 
Posts: 4045
Joined: May 3, 2010
Location: Georgia / USA

Re: Using paypal created buttons

Postby guileshill » July 14th, 2010, 6:16 am

This is a really useful thread, and thank you for the instructions.

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.
User avatar
guileshill
Registered User
Registered User
 
Posts: 9
Joined: July 14, 2010

Re: Using paypal created buttons

Postby Jason Caldwell » July 14th, 2010, 3:50 pm

Great to hear that. Thank you.
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.

Inside your WP Dashboard, you'll find an entire panel dedicated to Button Generation for s2Member. You can go to: s2Member -> PayPal Buttons, and generate all sorts of Buy Now, Modification, Cancellation, Subscription, Recurring, non-Recurring, etc. For instance, here is a Cancellation Button Shortcode:
Code: Select all
[s2Member-PayPal-Button cancel="1" image="default" /]

Also, if you ever need to include advanced variables in your Buttons that are not yet supported by the Button Generator for s2Member, you can access this reference document:
https://cms.paypal.com/us/cgi-bin/?cmd= ... lvariables
~ Jason Caldwell / Lead Developer
& Zeitgeist Movie Advocate: http://www.zeitgeistmovie.com/

Is the s2Member plugin working for you? Please rate s2Member at WordPress.org.
You'll need a WordPress.org account ( comes in handy ). Then rate s2Member here Image
.
User avatar
Jason Caldwell
Lead Developer
Lead Developer
 
Posts: 4045
Joined: May 3, 2010
Location: Georgia / USA

Re: Using paypal created buttons

Postby martonic » July 14th, 2010, 5:57 pm

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?
User avatar
martonic
Experienced User
Experienced User
 
Posts: 70
Joined: July 14, 2010

Re: Using paypal created buttons

Postby Jason Caldwell » July 14th, 2010, 8:08 pm

Excellent question. ~Thanks.
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?

Once a User has completed the Subscription Signup Process at PayPal®, they'll be returned to your site, where they'll be activated by s2Member instantly, and given the opportunity to register a Username & Password for their membership. ( Note: they'll be allowed to register a Username & Password, even if you've set 'Anyone Can Register' to `Off` in your General WordPress® options; because s2Member identifies the User as having paid for membership access through PayPal® ).

s2Member will also send the User an email with instructions on how to register their Username & Password, just in case they missed the instructions after checkout. That email will be sent to their PayPal® email address; AND, it will be sent even if they never returned to your site after checkout for some reason. Much of this is handled through the PayPal® IPN service behind-the-scene, where PayPal® and s2Member communicate with each other.

The communication between PayPal® IPN and s2Member ensures that no Customer is ever left out-in-the-cold. Should your server fail upon return from PayPal, or for some other unforeseen reason, the IPN service is there to save the day.

In other words, s2Member maximizes the use of both PDT ( Payment Data Transfer ) used for instant Return-Page processing, and also PayPal IPN ( Instant Payment Notifications ), which are processed silently behind-the-scene, without dependence on Customer interaction.
~ Jason Caldwell / Lead Developer
& Zeitgeist Movie Advocate: http://www.zeitgeistmovie.com/

Is the s2Member plugin working for you? Please rate s2Member at WordPress.org.
You'll need a WordPress.org account ( comes in handy ). Then rate s2Member here Image
.
User avatar
Jason Caldwell
Lead Developer
Lead Developer
 
Posts: 4045
Joined: May 3, 2010
Location: Georgia / USA

Re: Using paypal created buttons

Postby Jason Caldwell » July 14th, 2010, 8:11 pm

On the topic of "Register first, then pay"...

Using s2Member Pro, you can generate custom "Free Registration" forms.
So you could have Users register first, then once they're logged in, hit them with a checkout screen; using a PayPal Pro Form. That way they have an ID.

Actually, you could also do this with the free version of s2Member.
See: s2Member -> General Options -> Open Registration
You'll need s2Member v3.0.6+.

I should also note this:
The s2Member Pro Module makes it possible for s2Member to use PayPal® Pro Forms ( instead of standard PayPal® Buttons ). PayPal® Pro Forms integrate seamlessly with WordPress® Shortcodes. This allows you to keep Customers on your site at all times, and it consolidates the Checkout / Registration steps into a single form that you can dress up just the way you like. [ s2Member Pro ]
~ Jason Caldwell / Lead Developer
& Zeitgeist Movie Advocate: http://www.zeitgeistmovie.com/

Is the s2Member plugin working for you? Please rate s2Member at WordPress.org.
You'll need a WordPress.org account ( comes in handy ). Then rate s2Member here Image
.
User avatar
Jason Caldwell
Lead Developer
Lead Developer
 
Posts: 4045
Joined: May 3, 2010
Location: Georgia / USA

Re: Using paypal created buttons

Postby guileshill » July 15th, 2010, 6:58 am

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.
User avatar
guileshill
Registered User
Registered User
 
Posts: 9
Joined: July 14, 2010

Re: Using paypal created buttons

Postby martonic » July 15th, 2010, 12:10 pm

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.
User avatar
martonic
Experienced User
Experienced User
 
Posts: 70
Joined: July 14, 2010

Re: Using paypal created buttons

Postby martonic » July 15th, 2010, 12:15 pm

Hi again Jason,

I tried using a s2Member payment button without first registering.

At Paypal, I got this message:

"The link you have used to enter the PayPal system is invalid. Please review the link and try again."

Have you seen that before? Am I doing something wrong?

Note: the Notify_URL and the "business" address are in different domains. I will try to find out from Paypal if this is causing the problem. Assuming that is the case, this is looking hard to test. Perhaps I need to create a new Paypal account registered to my test-bed domain just to start testing?

Update:

I submitted a trouble ticket to Paypal merchant support, and I sent them the button code (the form) and asked them to explain why it did not work. I will post their reply when I get it.

Update 2: I tried both a "subscription" button (recurring) and a "payment" button (non-recurring) and got the same problem with either one.

UPDATE 3:

My test of the non-recurring button code was faulty - I had a button mislabeled. I tried an actual payment button (non-recurring) and it worked!

I get the above error message as soon as I log in to Paypal, but only when using an s2member "recurring" type payment button. Interesting!

UPDATE 4:

I had a wrong payment address in the s2member settings (close, but not quite right). Interesting that this only bollixed the "recurring" subscription buttons! Okay, back to the testing!
User avatar
martonic
Experienced User
Experienced User
 
Posts: 70
Joined: July 14, 2010

Re: Using paypal created buttons

Postby martonic » July 15th, 2010, 1:30 pm

Hi again,

The sign-up/payment/registration system does work, and it works well. However, it is still not clear how to integrate these features with an accounting system.

I would like to use the Notification API for this. Are there examples available?

Can the WP userID be sent this way?

Note: in the case of one-time payments, there is not a Payal subscriber ID - so we need another key to locate such transactions in the accounting system. This should be the userID - can we send that through the Notification API?

CORRECTION - there is still a subscriber ID, even for a one-time payment.

I need to also support non-paypal payments. I will continue to work on the necessary tweaks to integrate a WP-based subscription page with a regular membership management/accounting system.

Thanks!
User avatar
martonic
Experienced User
Experienced User
 
Posts: 70
Joined: July 14, 2010

Re: Using paypal created buttons

Postby Jason Caldwell » July 15th, 2010, 6:09 pm

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" /]
~ Jason Caldwell / Lead Developer
& Zeitgeist Movie Advocate: http://www.zeitgeistmovie.com/

Is the s2Member plugin working for you? Please rate s2Member at WordPress.org.
You'll need a WordPress.org account ( comes in handy ). Then rate s2Member here Image
.
User avatar
Jason Caldwell
Lead Developer
Lead Developer
 
Posts: 4045
Joined: May 3, 2010
Location: Georgia / USA

Re: Using paypal created buttons

Postby Jason Caldwell » July 15th, 2010, 7:07 pm

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.

Yea, we get this question a lot. "Register first, then pay", or "pay first, then register"? There really is not a right or wrong way to do this, it's really just a matter of preference.

s2Member ( by default ) has been designed to support "Pay first, then register", because this normally produces a higher conversion rate; since there are fewer obstacles in the way ( before payment is received ). It also makes s2Member more flexible and easier to integrate into a variety of situations. Given the limitations of PayPal Standard integration, the signup process has to be at least 2 steps; so we tried to choose the lesser of two evils.

The real solution ( in our opinion ) is to combine Registration/Checkout into a single step. That's how s2Member Pro works. The s2Member Pro Module makes it possible for s2Member to use PayPal® Pro Forms ( instead of standard PayPal® Buttons ). PayPal® Pro Forms integrate seamlessly with WordPress® Shortcodes. This allows you to keep Customers on your site at all times, and it consolidates the Checkout / Registration steps into a single form that you can dress up just the way you like. [ see: viewtopic.php?f=4&t=304 ]

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?

There are a few different scenarios in which s2Member will need to identify a Customer before an upgrade, and/or before a paid Registration occurs. Before I explain each of them briefly, let me just say that s2Member goes to great lengths to ensure no Customer is ever left out-in-the-cold. The processes by which s2Member verifies/validates/and secures registration and account upgrades is pretty solid.

1. A first-time Customer returns from PayPal, after checkout.
After completing a payment through PayPal, a Customer is either brought back to your Registration Form immediately, or they are sent an email with a link to the Registration Form. In many cases, the Customer will be provided with both options. That is, they'll be brought back to your site immediately, and the Signup Confirmation Email will also be sent.

In either case, s2Member identifies the Customer as having paid for Membership using a combination of PayPal's PDT ( Payment Data Transfer ) service, and IPNs ( Instant Payment Notifications ). These services, ultimately result in the creation of three temporary cookies set in the browser of a Customer, which identifies a unique Subscription ID, or a unique Transaction ID, which will be tied to the Customer's account, and is only valid for a single Registration. I won't go into the full details of this process here. If you'd like to see for yourself how the process works, you can have a look inside
/s2member/includes/functions/register-access.inc.php
In particular, have a look at line # 320-325

2. An existing Customer, and/or Free Subscriber is upgrading/downgrading their account.
This scenario works with ANY account that is already in the system, even if they are just a Free Subscriber, and even if they are not yet associated with a paid Transaction ID / Subscription ID.

s2Member sends two special variables through the PayPal Button Code.
Code: Select all
<!-- 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" />

Where 123 is the existing account ID of the User, or this can also be the existing paid Subscription ID. For full documentation on how these variables work ( in conjunction with the s2Member API ), please read this section in your WP Dashboard: s2Member -> API Scripting -> API Constants ( at the very bottom of that section, you'll find a discussion on this topic.
S2MEMBER_CURRENT_USER_VALUE_FOR_PP_ON0
S2MEMBER_CURRENT_USER_VALUE_FOR_PP_OS0


3. An existing paid Subscriber is modifying their paid Subscription through PayPal.
This scenario results in a "subscr_modify" IPN transaction being received by s2Member. In this case, s2Member is capable of updating an existing account based on the data provided in the IPN response. ( i.e. the "subscr_id" variable ).

what if two users share the same PAYPAL account - can they each purchase a subscription (different type, perhaps) and be separately identified?

Yes, because the account is identified by the Subscription ID, and/or a Transaction ID.
However, I should note that WordPress does NOT allow the same email address to be used more than once. So although two Customers can use the same PayPal account, whenever they complete payment, they must register themselves with two different email addresses. Which is usually NOT an issue, because most people do not share email addresses.

If this information does not answer all of your questions, please read through the API Scripting section, and most importantly, the API Constants section, under: s2Member -> API Scripting -> API Constants. Understanding the API Constants, usually leads to a more complete understanding about how s2Member stores information for each Customer.
~ Jason Caldwell / Lead Developer
& Zeitgeist Movie Advocate: http://www.zeitgeistmovie.com/

Is the s2Member plugin working for you? Please rate s2Member at WordPress.org.
You'll need a WordPress.org account ( comes in handy ). Then rate s2Member here Image
.
User avatar
Jason Caldwell
Lead Developer
Lead Developer
 
Posts: 4045
Joined: May 3, 2010
Location: Georgia / USA

Re: Using paypal created buttons

Postby martonic » July 15th, 2010, 9:33 pm

Hi Jason,

I can't thank you enough for your dedication and thoroughness in everything - from the scope and competency of your software that i have been testing, to the detailed documentation, to your support here.

I will soon be moving on to the pro version, to use the one-step-checkout process you describe above, and I will add a membership schema (member, invoice, and invoice_item tables) in order to support payments by check, include members who may never use the web site, and integrate an external accounting system.

There is plenty of work ahead, but what you provide takes WordPress a huge step forward with a sophisticated and robust payment Integration. Bravo in Spades! :mrgreen:

Many thanks again. Best Always, Marty
User avatar
martonic
Experienced User
Experienced User
 
Posts: 70
Joined: July 14, 2010

Re: Using paypal created buttons

Postby Jason Caldwell » July 16th, 2010, 12:00 am

Very welcome! Thanks for the kudos.
Glad I could help.
~ Jason Caldwell / Lead Developer
& Zeitgeist Movie Advocate: http://www.zeitgeistmovie.com/

Is the s2Member plugin working for you? Please rate s2Member at WordPress.org.
You'll need a WordPress.org account ( comes in handy ). Then rate s2Member here Image
.
User avatar
Jason Caldwell
Lead Developer
Lead Developer
 
Posts: 4045
Joined: May 3, 2010
Location: Georgia / USA

Re: Using paypal created buttons

Postby kierenmccarthy » July 20th, 2010, 5:02 pm

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" /]



My buttons appear to be restricted to 250px across - and my custom buttons (which are larger) are shrunk to that size. Is there an override somewhere?

Kieren
kierenmccarthy
Guest User
Guest User
 

Re: Using paypal created buttons

Postby kierenmccarthy » July 20th, 2010, 5:06 pm

Sorry - just checked - 225px across.

And I've checked my Wordpress media defaults which don't appear to be having any influence.


Kieren
kierenmccarthy
Guest User
Guest User
 

Re: Using paypal created buttons

Postby kierenmccarthy » July 20th, 2010, 7:08 pm

Another quick update:

It seems that the images is contained within a form that is automatically 50 percent of the width of the space it is contained in.

I can't see where or how to change this though - can anyone help?


Kieren
kierenmccarthy
Guest User
Guest User
 

Re: Using paypal created buttons

Postby kierenmccarthy » July 21st, 2010, 3:41 pm

I've registered as a member and logged in, in the hope that flags this issue up a little higher.

When I create a PayPal button, it automatically creates it in a form that takes up 50 percent of the available width.

This makes things quite difficult for website layout and image creation, as well as image layout.

Is there anyway to get control of this aspect? Where is the form set to 50% - am I able to change it?

Any and all help welcome.


Kieren
User avatar
kierenmccarthy
Registered User
Registered User
 
Posts: 2
Joined: July 21, 2010

Re: Using paypal created buttons

Postby martonic » July 21st, 2010, 4:19 pm

Hi Kierrran,

Please post a link to a page that shows the buttons, and I'll take a look at it.
User avatar
martonic
Experienced User
Experienced User
 
Posts: 70
Joined: July 14, 2010

Re: Using paypal created buttons

Postby Jason Caldwell » July 22nd, 2010, 5:51 am

Is there anyway to get control of this aspect? Where is the form set to 50% - am I able to change it?

I can tell you that s2Member does NOT apply a 50% rule. While I can't be sure; it sounds like the FORM tag has been given a default style by your theme. You might try taking a look at the style.css file inside your active theme directory. See: /wp-content/themes/[your theme]/style.css

Please let us know if you can report a solution to this problem; or if you have an update of any kind.
~ Jason Caldwell / Lead Developer
& Zeitgeist Movie Advocate: http://www.zeitgeistmovie.com/

Is the s2Member plugin working for you? Please rate s2Member at WordPress.org.
You'll need a WordPress.org account ( comes in handy ). Then rate s2Member here Image
.
User avatar
Jason Caldwell
Lead Developer
Lead Developer
 
Posts: 4045
Joined: May 3, 2010
Location: Georgia / USA

Re: Using paypal created buttons

Postby kierenmccarthy » July 22nd, 2010, 6:21 pm

Thanks Jason - I'm using Thesis for theming.

Had a look through the CSS and couldn't find any FORM formatting.

Any other suggestions?


Kieren
User avatar
kierenmccarthy
Registered User
Registered User
 
Posts: 2
Joined: July 21, 2010

Re: Using paypal created buttons

Postby Jason Caldwell » July 22nd, 2010, 6:24 pm

If you can post a URL to the page where this is happening, I'll be happy to have a look for you. Otherwise, I recommend Firefox, with the Firebug extension installed. Using the Firebug extension, you can look into the structure of your code, and it's applied CSS; in order to determine where the 50% rule stems from.
~ Jason Caldwell / Lead Developer
& Zeitgeist Movie Advocate: http://www.zeitgeistmovie.com/

Is the s2Member plugin working for you? Please rate s2Member at WordPress.org.
You'll need a WordPress.org account ( comes in handy ). Then rate s2Member here Image
.
User avatar
Jason Caldwell
Lead Developer
Lead Developer
 
Posts: 4045
Joined: May 3, 2010
Location: Georgia / USA

Next

Return to Common Questions/Problems/Tips

Who is online

Users browsing this forum: No registered users and 0 guests

cron