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™

Trying to Integrate PayPal Code with Custom Buttons

s2Member Plugin. A Membership plugin for WordPress®.

Trying to Integrate PayPal Code with Custom Buttons

Postby AngelicLS » August 11th, 2011, 6:39 am

Hi,

After doing quite a few searches on here regarding the PayPal buttons, I couldn't find exactly what I'm looking for. As of right now I'm using a WP theme called Origami. Overall it's been excellent...except it has these pricing grids with built in "Choose Plan" buttons that are nice, but I can't seem to figure out how to integrate the PayPal shortcodes from the button generator in with the pre-existing grids (which are also shortcode). I am pasting the entire code below so you can see what I mean.

The first FREE plan works fine since it takes you to the http registration only. But, the other two get a 404 error page. If someone has a solution that would be great. I'd prefer not to have to resort to the standard orange-yellow PayPal buttons if I don't have to. ;) The current URL where the code below can be found in use is http://angeliclightstream.com/join-our-angelhood/ As you can see the second and third pricing columns "choose plan" buttons don't work.

Code: Select all
[pricing_grid_third color="purple" header_text="Angel Subscriber" price="FREE" duration="year" plan_link="http://angeliclightstream.com/wp-login.php?action=register" plan_text="Choose Plan"]
<ul>
   <li>Offer 1</li>
   <li>Offer 2</li>
   <li>Offer 3</li>
   <li>Offer 4</li>
</ul>

[/pricing_grid_third]
[pricing_grid_third color="blue" header_text="Archangel Member" price="$5" duration="month" plan_link= [s2Member-PayPal-Button level="1" ccaps="" desc="Archangel Member" ps="paypal" lc="" cc="USD" dg="0" ns="1" custom="angeliclightstream.com" ta="5.00" tp="1" tt="M" ra="5.00" rp="1" rt="M" rr="1" rrt="" rra="1" image="default" output="button" plan_text="Choose Plan"]
<ul>
   <li>Offer 1</li>
   <li>Offer 2</li>
   <li>Offer 3</li>
   <li>Offer 4</li>
</ul>

[/pricing_grid_third]
[pricing_grid_third_last color="darkpurple" header_text="Light Stream Member" price="$11" duration="month" plan_link=[s2Member-PayPal-Button level="2" ccaps="" desc="Light Stream Member" ps="paypal" 1c="" cc="USD" dg="0" ns="1" custom="angeliclightstream.com" ta="11.00" tp="1" tt="M" ra="11.00" rp="1" rt="M" rr="1" rrt="" rra="1" image="default" output="button" plan_text="Choose Plan"]
<ul>
   <li>Offer 1</li>
   <li>Offer 2</li>
   <li>Offer 3</li>
   <li>Offer 4</li>

</ul>
[/pricing_grid_third_last]



Let me know if there's anything else I can provide to get a solution.

OH, and just curious, but is anyone else having a 2-3 minute delay between registration and confirmation email arriving? Not sure what the delay is - I'm using MailChimp and it seems to be configured correctly.

Thanks!
Last edited by Cristián Lávaque on August 11th, 2011, 12:49 pm, edited 1 time in total.
Reason: Improve code readability. http://www.primothemes.com/forums/viewtopic.php?f=36&t=2780
User avatar
AngelicLS
Registered User
Registered User
 
Posts: 8
Joined: August 11, 2011

Re: Trying to Integrate PayPal Code with Custom Buttons

Postby Cristián Lávaque » August 11th, 2011, 1:16 pm

You should output the button as a URL, like you did for the free registration one, since the field where you're entering it is named plan_link. WP Admin -> s2Member -> PayPal Buttons -> Shortcode Attributes (Explained) -> output

You can use the s2Member button shortcode in another spot first, get the URL in the page, copy it and put that in your grid's shortcode.

And it should be wrapped inside double quotes like the other values for those fields, e.g. plan_link="http://paypal.com/...".

I hope that helps.
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: Trying to Integrate PayPal Code with Custom Buttons

Postby AngelicLS » August 11th, 2011, 2:15 pm

Okay, so based on your feedback from what I understood, I have to paste the shortcode into a separate page, save that page and then use the URL to that page as a link in my pricing grid. Which is fine, except I tried pasting the shortcode:

[s2Member-PayPal-Button level="1" ccaps="" desc="Light Stream Member" ps="ALS" lc="" cc="USD" dg="0" ns="1" custom="angeliclightstream.com" ta="5.00" tp="2" tt="M" ra="11.00" rp="1" rt="M" rr="1" rrt="" rra="1" image="default" output="button" /]

Into a page and nothing showed up on the page when I previewed it. There was no button or anything. So, my next thought would be that I actually need the "longer" code, except my s2Member button generator doesn't create that when I hit "generate PayPal button." The only time I see any of the longer code in the box beneath the shortcode box is when I first open the PayPal buttons area, but once I click generate button after my values are updated, that "full code" disappears. Is this normal?

If not, can you please determine based on my shortcode above what exactly I would need to enter into the separate page to create a working URL link to PayPal?

Thanks - I really appreciate it - I'm a bit of a newbie if you couldn't tell. :?
User avatar
AngelicLS
Registered User
Registered User
 
Posts: 8
Joined: August 11, 2011

Re: Trying to Integrate PayPal Code with Custom Buttons

Postby Cristián Lávaque » August 11th, 2011, 2:31 pm

I meant posting the button shortcode outside the grid shortcode, and use the output attribute to get a URL instead of a button:

[s2Member-PayPal-Button level="1" ccaps="" desc="Light Stream Member" ps="ALS" lc="" cc="USD" dg="0" ns="1" custom="angeliclightstream.com" ta="5.00" tp="2" tt="M" ra="11.00" rp="1" rt="M" rr="1" rrt="" rra="1" image="default" output="url" /]

Load that page and copy the URL you got from it, then paste the URL in the grid's shortcode.
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: Trying to Integrate PayPal Code with Custom Buttons

Postby AngelicLS » August 11th, 2011, 3:06 pm

Hi Christian,

I tried the solution you suggested, but got a monstrous URL with encryption type coding. Not sure if I should use it in its entirety, but tried anyway and it didn't work. It got me as far as PayPal, but then gave me an error "Unable to decrypt encryption code." Then I thought remove the part with all the encryption to see what would happen, and gave me a different PayPal error page "not enough info..." :?: Any thoughts?

Thanks!
User avatar
AngelicLS
Registered User
Registered User
 
Posts: 8
Joined: August 11, 2011

Re: Trying to Integrate PayPal Code with Custom Buttons

Postby AngelicLS » August 11th, 2011, 3:09 pm

Correction...error said: "We were unable to decrypt the certificate id."
User avatar
AngelicLS
Registered User
Registered User
 
Posts: 8
Joined: August 11, 2011

Re: Trying to Integrate PayPal Code with Custom Buttons

Postby Cristián Lávaque » August 11th, 2011, 3:18 pm

Could you post here the URLs you generated?
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: Trying to Integrate PayPal Code with Custom Buttons

Postby AngelicLS » August 11th, 2011, 3:43 pm

Code: Select all
"https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&encrypted=—–BEGIN+PKCS7-—MIIK2QYJKoZIhvcNAQcEoIIKyjCCCsYCAQExggEwMIIBLAIBADCBlDCBjjELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtQYXlQYWwgSW5jLjETMBEGA1UECxQKbGl2ZV9jZXJ0czERMA8GA1UEAxQIbGl2ZV9hcGkxHDAaBgkqhkiG9w0BCQEWDXJlQHBheXBhbC5jb20CAQAwDQYJKoZIhvcNAQEBBQAEgYB4qBxze9oT75yboRnWlISCi3WbsmLVtUTuhRAdY7sn891nvYbkQqp4BRmq5ooEM1lAJFC%2FWYwvWieFi0X1h8kY1Y%2FxQKVDaA9wyKC%2BrGWFOAwFUHhNo3m6xsoTfI6JvbyZfKUpbCwsAa43TTRRMRUD%2BbvVwSuNDotAeNRFKASJ3zELMAkGBSsOAwIaBQAwggRVBgkqhkiG9w0BBwEwFAYIKoZIhvcNAwcECDjX1HBCpu38gIIEMGTF53qXGAZ9Zxd1HhFzbsZfgiauxqgKzPfCdh2%2BqyBxwttZ83rbwbSFMzRj4GTDX%2B5QRlz7ly0fijwERq4xPwH69gj8pkGbtvaIuwocQN5N0qD260O8GeqoA2Tb0eJ2BIq0a6xtcx%2BJA6xo8eswNDWzRhV5PGu7y%2Fmt9rqrZ%2BtRyQPKx7HGTeIw7TzNPpdujsZN6GueIiRg%2BV4gs%2FDar%2FlaGH%2BT7sWz55draiyq9qlxRjgjX64vL73WZOkMxgFkLxW7GM9uife7Jl0%2FUcVWn0Yv%2BJutio4fV%2F9zS0ClID7iYJPnkuD64ayduoyH4sd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JARYNcmVAcGF5cGFsLmNvbYIBADAMBgNVHRMEBTADAQH%2FMA0GCSqGSIb3DQEBBQUAA4GBAIFfOlaagFrl71%2Bjq6OKidbWFSE%2BQ4FqROvdgIONth%2B8kSK%2F%2FY%2F4ihuE4Ymvzn5ceE3S%2FiBSQQMjyvb%2Bs2TWbQYDwcp129OPIbD9epdr4tJOUNiSojw7BHwYRiPh58S1xGlFgHFXwrEBb3dgNbMUa%2Bu4qectsMAXpVHnD9wIyfmHMYIBmjCCAZYCAQEwgZQwgY4xCzAJBgNVBAYTAlVTMQswCQYDVQQIEwJDQTEWMBQGA1UEBxMNTW91bnRhaW4gVmlldzEUMBIGA1UEChMLUGF5UGFsIEluYy4xEzARBgNVBAsUCmxpdmVfY2VydHMxETAPBgNVBAMUCGxpdmVfYXBpMRwwGgYJKoZIhvcNAQkBFg1yZUBwYXlwYWwuY29tAgEAMAkGBSsOAwIaBQCgXTAYBgkqhkiG9w0BCQMxCwYJKoZIhvcNAQcBMBwGCSqGSIb3DQEJBTEPFw0xMTA4MTExOTUxMjVaMCMGCSqGSIb3DQEJBDEWBBTdH1otI2UsLWyMhTs2KRL%2F5u9HcTANBgkqhkiG9w0BAQEFAASBgBOdiXz0Q3WZbQ8AC7onuB0oUkSJFyB9RKD3a%2B5xFxKV40YMUYhV6l7xGGRoopCuAe3trxD4IwT4%2Bo%2FLTgmXwiNUz3SRuJd%2B8YHDQ3LXnRMVio7dDdh4CKIIsBGoFpQkET5CyxHau%2FZHtD2lP38z9GQMS4YYYdPPnArbaSgCEV6U—–END+PKCS7—-"
User avatar
AngelicLS
Registered User
Registered User
 
Posts: 8
Joined: August 11, 2011

Re: Trying to Integrate PayPal Code with Custom Buttons

Postby AngelicLS » August 11th, 2011, 5:09 pm

This was the only code that was generated.
User avatar
AngelicLS
Registered User
Registered User
 
Posts: 8
Joined: August 11, 2011

Re: Trying to Integrate PayPal Code with Custom Buttons

Postby Cristián Lávaque » August 11th, 2011, 10:33 pm

Was that from the shortcode quoted earlier? The link is going to be long, but it should work.

Could you double check that your s2Member-PayPal configuration is correct? WP Admin -> s2Member -> PayPal Options

Do you have encryption on or off? WP Admin -> s2Member -> PayPal Options -> Account Details -> Enable Button Encryption
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: Trying to Integrate PayPal Code with Custom Buttons

Postby AngelicLS » August 12th, 2011, 11:54 am

Hi Christian,

Encryption was on and all the configurations with PayPal were set. I will double-check the PayPal API keys, etc. today and make sure they pasted in correctly. Meanwhile, my theme developer says there might be a conflict with the plugin, but not sure why that would be. If worse comes to worse I suppose I can not use the pricing grid just put in the PayPal buttons directly, and have it look less attractive, but obviously not my first choice. :)

Strange, huh? Didn't think this would be such a challenge.
User avatar
AngelicLS
Registered User
Registered User
 
Posts: 8
Joined: August 11, 2011

Re: Trying to Integrate PayPal Code with Custom Buttons

Postby Cristián Lávaque » August 12th, 2011, 8:39 pm

Well, I tried the URL on its own, not in the grid, and it still didn't work. Once the URL works it's most likely it'll work in the grid.
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: Trying to Integrate PayPal Code with Custom Buttons

Postby AngelicLS » August 13th, 2011, 5:20 pm

Okay, thanks for checking...I will see if I can get it to work.
User avatar
AngelicLS
Registered User
Registered User
 
Posts: 8
Joined: August 11, 2011


Return to s2Member Plugin

Who is online

Users browsing this forum: Exabot [Bot], Google [Bot] and 1 guest

cron