Page 3 of 4

Re: Using paypal created buttons

PostPosted: August 17th, 2011, 1:16 am
by Cristián Lávaque
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?

Re: Using paypal created buttons

PostPosted: August 17th, 2011, 1:28 am
by Researcher
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.

Re: Using paypal created buttons

PostPosted: August 18th, 2011, 3:08 am
by Cristián Lávaque
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

Re: Using paypal created buttons

PostPosted: August 18th, 2011, 1:09 pm
by Jason Caldwell
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

Re: Using paypal created buttons

PostPosted: August 18th, 2011, 7:45 pm
by Researcher
Thank you guys very much! That will take care of what I need. I appreciate your awesome plugin and support!

Re: Using paypal created buttons

PostPosted: August 20th, 2011, 6:49 pm
by Researcher
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!

Re: Using paypal created buttons

PostPosted: August 20th, 2011, 6:56 pm
by Jason Caldwell
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

Re: Using paypal created buttons

PostPosted: August 20th, 2011, 7:02 pm
by Researcher
Thank you again!

Re: Using paypal created buttons

PostPosted: August 20th, 2011, 7:12 pm
by Jason Caldwell
Researcher wrote:Thank you again!

Very welcome!

Re: Using paypal created buttons

PostPosted: October 28th, 2011, 6:55 pm
by spyroot
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

Re: Using paypal created buttons

PostPosted: October 31st, 2011, 12:20 pm
by Jason Caldwell
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">

Re: Using paypal created buttons

PostPosted: October 31st, 2011, 1:54 pm
by spyroot
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?

Re: Using paypal created buttons

PostPosted: October 31st, 2011, 2:10 pm
by Jason Caldwell
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 1575 times

Re: Using paypal created buttons

PostPosted: October 31st, 2011, 2:18 pm
by spyroot
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-----MIIIMQYJKoZIhvcNAQcEoIIIIjCCCB4CAQExggEwMIIBLAIBADCBlDCBjjELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtQYXlQYWwgSW5jLjETMBEGA1UECxQKbGl2ZV9jZXJ0czERMA8GA1UEAxQIbGl2ZV9hcGkxHDAaBgkqhkiG9w0BCQEWDXJlQHBheXBhbC5jb20CAQAwDQYJKoZIhvcNAQEBBQAEgYC9oMe+ycItS5GolDgUGqoYAeMpwW5/jPG6shnNoEt0RQsP3L/FHINNvWvWbQ0SYqt1OHoGl8PvXB92zmfeeWUC6lKSGIV1J74M1ikjEhykCLyedY4WHK6ZDv9Uxd6/08tEbkiVc5x8AJlz+wkobve6xgXyiHpDc/N9dJ7dq1xuOTELMAkGBSsOAwIaBQAwggGtBgkqhkiG9w0BBwEwFAYIKoZIhvcNAwcECOIjFRI6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61TTARLXGNapQAK3mUWMlqrQqmTVfvJOwQfq+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>

Re: Using paypal created buttons

PostPosted: October 31st, 2011, 2:41 pm
by Jason Caldwell
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

Re: Using paypal created buttons

PostPosted: October 31st, 2011, 2:45 pm
by spyroot
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>

Re: Using paypal created buttons

PostPosted: October 31st, 2011, 6:47 pm
by Jason Caldwell
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.

Re: Using paypal created buttons

PostPosted: November 2nd, 2011, 3:33 pm
by spyroot
thanks for your help, let me try right now.

Re: Using paypal created buttons

PostPosted: December 8th, 2011, 11:27 pm
by coachingschool
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?

Re: Using paypal created buttons

PostPosted: December 9th, 2011, 12:49 am
by Jason Caldwell
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.

Re: Using paypal created buttons

PostPosted: December 9th, 2011, 12:58 am
by coachingschool
I can enter short codes from other plugins. I will try and disable other plugins and see if that makes a difference.

Re: Using paypal created buttons

PostPosted: December 9th, 2011, 1:00 am
by Jason Caldwell
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?

Re: Using paypal created buttons

PostPosted: December 9th, 2011, 1:04 am
by coachingschool
Is there a private box to send it to so I don't post my PayPal info publically?

Re: Using paypal created buttons

PostPosted: December 9th, 2011, 1:13 am
by Jason Caldwell
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.

Re: Using paypal created buttons

PostPosted: December 10th, 2011, 12:02 am
by Jason Caldwell
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.