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.

Re: Using paypal created buttons

Postby Cristián Lávaque » August 17th, 2011, 1:16 am

Couldn't you use a Buy Now button that gives Level 1 for 30 days? Then if ht doesn't pay again, demote him to Level 0 on EOT. The recurring payment upgrade could be shown to Level 1 members only, and it'd upgrade them to Level 2. Would something like that work for you?
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010

Re: Using paypal created buttons

Postby Researcher » August 17th, 2011, 1:28 am

Cristian, thanks for the response.

I want to specifically use "Donate" on the initial signup for 2 reasons.

1) Practically eliminate liability on sensitive data. The data is shared for a donation, not sold. (educational site, not legal advice)
2) Less or No PayPal refunds? I'm not sure of their policy on this as of yet. I don't want people asking for refunds after they have downloaded my documents. I know most people won't do this, but I would like more protection from the unscrupulous ones.
User avatar
Researcher
Registered User
Registered User
 
Posts: 6
Joined: August 16, 2011

Re: Using paypal created buttons

Postby Cristián Lávaque » August 18th, 2011, 3:08 am

Would just changing the PayPal button to the "donate" one be enough? If so, you can use the image attribute for the button's shortcode. WP Admin -> s2Member -> PayPal Buttons -> Shortcode Attributes (Explained) -> image
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010

Re: Using paypal created buttons

Postby Jason Caldwell » August 18th, 2011, 1:09 pm

Set your Item ID ( aka: item_number ), to this value:
1::30 D

There is further detail here regarding PayPal-generated Buttons.
viewtopic.php?f=36&t=309&p=1340&hilit=using+paypal+generated+buttons#p1333
~ 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 Researcher » August 18th, 2011, 7:45 pm

Thank you guys very much! That will take care of what I need. I appreciate your awesome plugin and support!
User avatar
Researcher
Registered User
Registered User
 
Posts: 6
Joined: August 16, 2011

Re: Using paypal created buttons

Postby Researcher » August 20th, 2011, 6:49 pm

Me again, hi guys.

In PayPal
Step 3: Customized advanced features
Advanced Variables

Should it also read like this:
custom=http://www.mysite.com
notify_url=http://www.mysite.com/?s2member_paypal_notify=1::30 D

When I ran a test, after the donation, I get this screen.
It was set to this:
custom=http://www.mysite.com
notify_url=http://www.mysite.com/?s2member_paypal_notify=1


Image

Please help, thanks!
Last edited by Researcher on August 20th, 2011, 7:01 pm, edited 2 times in total.
User avatar
Researcher
Registered User
Registered User
 
Posts: 6
Joined: August 16, 2011

Re: Using paypal created buttons

Postby Jason Caldwell » August 20th, 2011, 6:56 pm

The error is because the custom value starts with http://, that's not valid.
Just the domain name is all you need there.

Try it like this instead:
Code: Select all
custom=www.mysite.com
return=http://www.mysite.com/?s2member_paypal_return=1
notify_url=http://www.mysite.com/?s2member_paypal_notify=1::30+D

If that gives you trouble, try it with URL encoded values, like this:
Code: Select all
custom=www.mysite.com
return=http%3A%2F%2Fwww.mysite.com%2F%3Fs2member_paypal_return%3D1
notify_url=http%3A%2F%2Fwww.mysite.com%2F%3Fs2member_paypal_notify%3D1%3A%3A30%2BD
~ 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 Researcher » August 20th, 2011, 7:02 pm

Thank you again!
User avatar
Researcher
Registered User
Registered User
 
Posts: 6
Joined: August 16, 2011

Re: Using paypal created buttons

Postby Jason Caldwell » August 20th, 2011, 7:12 pm

Researcher wrote:Thank you again!

Very welcome!
~ 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 spyroot » October 28th, 2011, 6:55 pm

Here is my scenario. I have 2 sites selling the same product. One site has S2member plugin installed which works fine providing the right access. The other site is just a html landing page with no s2member installed.

The challenge: I'm trying to generate a paypal button for the landing page assigning the same s2member restrictions that I have in the other site.

I had generated the code on paypal but when I proceed with the purchase, the code doesn't generate the right access to download the product purchased. For some reason the code is not generating the "Paid Subscription ID" on WP. So paid customers doesn't have access to what they paid. Any idea what I'm doing wrong?

Following your instructions, this is the code use to generate the paypal button on paypal site:

I'm using "Utem ID"= 1
"Take customers to this URL when they cancel their checkout" = http://www.domain.com

Add Advance variables
custom=www.domain.com
notify_url=http://www.domain.com/?s2member_paypal_notify=1

Down below is the code generated by paypal:

<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="VDDRVB4L5NNBN">
<input type="image" src="https://www.paypalobjects.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.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>

Thanks in advance for all your help
User avatar
spyroot
Registered User
Registered User
 
Posts: 9
Joined: May 26, 2011
Location: California

Re: Using paypal created buttons

Postby Jason Caldwell » October 31st, 2011, 12:20 pm

Thanks for your inquiry.
~ I apologize for the delayed response.

If you're still having trouble with this, please create your PayPal Button again, and this time uncheck the Hosted Button option when you create it, that way you can post a full copy of the resulting Button Code that you generated at PayPal, and we can see everything that's included, and/or not included perhaps. Once we see that, we can certainly offer you some assistance.

In other words, this line, indicates that your actual Button Code is hosted at PayPal, so we can't see it :-)
<input type="hidden" name="hosted_button_id" value="VDDRVB4L5NNBN">
~ 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 spyroot » October 31st, 2011, 1:54 pm

I'm sorry but I can't find the option to uncheck the hosted button on paypal site. do I'm looking in the right page?
User avatar
spyroot
Registered User
Registered User
 
Posts: 9
Joined: May 26, 2011
Location: California

Re: Using paypal created buttons

Postby Jason Caldwell » October 31st, 2011, 2:10 pm

spyroot wrote:I'm sorry but I can't find the option to uncheck the hosted button on paypal site. do I'm looking in the right page?
SNAG-0094.png
SNAG-0094.png (17.87 KiB) Viewed 1585 times
~ 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 spyroot » October 31st, 2011, 2:18 pm

Thank you for the time putting on this. After follow your instructions this is the output:

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="encrypted" value="-----BEGIN PKCS7-----MIIIMQYJKoZIhvcNAQcEoIIIIjCCCB4CAQExggEwMIIBLAIBADCBlDCBjjELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNB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KxAW93YDWzFGvruKnnLbDAF6VR5w/cCMn5hzGCAZowggGWAgEBMIGUMIGOMQswCQYDVQQGEwJVUzELMAkGA1UECBMCQ0ExFjAUBgNVBAcTDU1vdW50YWluIFZpZXcxFDASBgNVBAoTC1BheVBhbCBJbmMuMRMwEQYDVQQLFApsaXZlX2NlcnRzMREwDwYDVQQDFAhsaXZlX2FwaTEcMBoGCSqGSIb3DQEJARYNcmVAcGF5cGFsLmNvbQIBADAJBgUrDgMCGgUAoF0wGAYJKoZIhvcNAQkDMQsGCSqGSIb3DQEHATAcBgkqhkiG9w0BCQUxDxcNMTExMDMxMTkxNzAxWjAjBgkqhkiG9w0BCQQxFgQUdeNHjCDVOHEfmyy82OjEE97yf+0wDQYJKoZIhvcNAQEBBQAEgYAjTuD61TTARLXGNapQAK3mUWMlqrQqmTVfvJOwQfq+0wfKCqMs0WUuTy0Ow9JdclpfO2eBNG+NiU/prZxnu7b+oPwL+tT+UTUdnAZIT/paicsHWHbfwuUZ31JEx6JH+tg1WF1Dves8jDBd7d/m9FtTTc44cC/K8mClSpZc1vqpfA==-----END PKCS7-----
">
<input type="image" src="https://www.paypalobjects.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.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>
User avatar
spyroot
Registered User
Registered User
 
Posts: 9
Joined: May 26, 2011
Location: California

Re: Using paypal created buttons

Postby Jason Caldwell » October 31st, 2011, 2:41 pm

Not a problem. I should have mentioned this, but please remove the code protection also. Otherwise all we get is your encrypted button data, and again that makes it impossible to see your button variables.
SNAG-0097.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 spyroot » October 31st, 2011, 2:45 pm

Here it is my friend:
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="FWV5GGR4UTH9N">
<input type="hidden" name="lc" value="US">
<input type="hidden" name="item_name" value="item">
<input type="hidden" name="item_number" value="1">
<input type="hidden" name="amount" value="0.01">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="button_subtype" value="services">
<input type="hidden" name="no_note" value="0">
<input type="hidden" name="cn" value="Add special instructions to the seller">
<input type="hidden" name="no_shipping" value="2">
<input type="hidden" name="rm" value="1">
<input type="hidden" name="return" value="http://www.domain.com">
<input type="hidden" name="cancel_return" value="http://www.domain.com">
<input type="hidden" name="bn" value="PP-BuyNowBF:btn_buynowCC_LG.gif:NonHosted">
<input type="hidden" name="custom" value="www.domain.com">
<input type="hidden" name="notify_url" value="http://www.domain.com/?s2member_paypal_notify=1">
<input type="image" src="https://www.paypalobjects.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.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>
User avatar
spyroot
Registered User
Registered User
 
Posts: 9
Joined: May 26, 2011
Location: California

Re: Using paypal created buttons

Postby Jason Caldwell » October 31st, 2011, 6:47 pm

Thank you. This looks good except for one thing.
I'm updating the instructions here. Please add rm=2 as one of your Advanced Variables.
See: download/file.php?id=671&mode=view

If the problem continues, please enable s2Member's logging/debugging routines, and submit a log of any errors that occurred after checkout. You can enable logging in your Dashboard, see: s2Member -> PayPal Options -> Account Details -> Logging/Debugging.
~ 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 spyroot » November 2nd, 2011, 3:33 pm

thanks for your help, let me try right now.
User avatar
spyroot
Registered User
Registered User
 
Posts: 9
Joined: May 26, 2011
Location: California

Re: Using paypal created buttons

Postby coachingschool » December 8th, 2011, 11:27 pm

I can't figure out what I'm doing wrong! I am trying to create PayPal buttons for specific pages. I believe I have everything set correctly on the Button Code Generator For Specific Post/Page Buttons page. I can click the sample button that is generated and it takes me where it's supposed to.

But when I copy and paste the short code into WP either in Visual or HTML nothing shows up! Blank. Nothing.

Suggestions?
User avatar
coachingschool
Registered User
Registered User
 
Posts: 8
Joined: November 28, 2011

Re: Using paypal created buttons

Postby Jason Caldwell » December 9th, 2011, 12:49 am

Thanks for reporting this important issue.
But when I copy and paste the short code into WP either in Visual or HTML nothing shows up! Blank. Nothing.
Are any Shortcodes working on your installation? Have you tried testing this against the default WordPress theme to rule out any conflicts with your theme in this regard?

Also, try testing with other plugins disabled please. It sounds like Shortcodes are being lost somewhere. This is the often the result of filters applied to content. Many themes implement special content filters, which can inadvertently disrupt Shortcode processing.
~ 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 coachingschool » December 9th, 2011, 12:58 am

I can enter short codes from other plugins. I will try and disable other plugins and see if that makes a difference.
User avatar
coachingschool
Registered User
Registered User
 
Posts: 8
Joined: November 28, 2011

Re: Using paypal created buttons

Postby Jason Caldwell » December 9th, 2011, 1:00 am

Thanks for the follow-up.
coachingschool wrote:I can enter short codes from other plugins. I will try and disable other plugins and see if that makes a difference.
OK. Thanks. Can you please post the Shortcode that you're using for us?
~ 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 coachingschool » December 9th, 2011, 1:04 am

Is there a private box to send it to so I don't post my PayPal info publically?
User avatar
coachingschool
Registered User
Registered User
 
Posts: 8
Joined: November 28, 2011

Re: Using paypal created buttons

Postby Jason Caldwell » December 9th, 2011, 1:13 am

coachingschool wrote:Is there a private box to send it to so I don't post my PayPal info publically?

Shortcodes do not contain any personally identifiable information. However, please feel free to use our private contact form here for anything you would like to keep confidential.
~ 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 » December 10th, 2011, 12:02 am

Thank you. I received your Shortcode via email.
Your Shortcode looks OK from my end. I tested it and s2Member displays the PayPal Button matching the configuration of your Shortcode. Have you tested this against a default installation of WordPress? Just to rule out any possible plugin/theme conflicts.
~ 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

PreviousNext

Return to Common Questions/Problems/Tips

Who is online

Users browsing this forum: No registered users and 0 guests

cron