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™

Paypal button issue

s2Member Plugin. A Membership plugin for WordPress®.

Paypal button issue

Postby le formateur » September 25th, 2011, 7:44 am

Hello,

When I click on my Paypal button I have some strange infomation in the description field at this page https://www.paypal.com/cgi-bin/webscr :

Image

I don't want to use the shortcode because I made some customization. I'm using some plug-in included TRUEedit. All filters are disabled except "do shortcode".

My url is http://www.exo-video.com/wordpress/tarifs


This is the code I use for the button (€ 1,00) :

Code: Select all

<form action="https://www.paypal.com/cgi-bin/webscr" method="post"><input type="hidden" name="business" value="paypal@exo-video.com" /> <input type="hidden" name="cmd" value="_xclick-subscriptions" /> <!-- Instant Payment Notification &#038; Return Page Details --> <input type="hidden" name="notify_url" value="http://www.exo-video.com/wordpress/?s2member_paypal_notify=1" /> <input type="hidden" name="cancel_return" value="http://www.exo-video.com/wordpress/" /> <input type="hidden" name="return" value="http://www.exo-video.com/wordpress/?s2member_paypal_return=1" /> <input type="hidden" name="rm" value="2" /> <!-- Configures Basic Checkout Fields --> <input type="hidden" name="lc" value="" /> <input type="hidden" name="no_shipping" value="1" /> <input type="hidden" name="no_note" value="1" /> <input type="hidden" name="custom" value="www.exo-video.com" /> <input type="hidden" name="currency_code" value="EUR" /> <input type="hidden" name="page_style" value="paypal" /> <input type="hidden" name="charset" value="utf-8" /> <input type="hidden" name="item_name" value="Mention assez bien : Vidéos" /> <input type="hidden" name="item_number" value="1" /> <!-- Configures s2Member's Unique Invoice ID/Code  --> <input type="hidden" name="invoice" value="<?php echo S2MEMBER_VALUE_FOR_PP_INV(); ?>" />
<!-- Identifies/Updates An Existing User/Member ( when/if applicable )  --> <input type="hidden" name="on0" value="<?php echo S2MEMBER_CURRENT_USER_VALUE_FOR_PP_ON0; ?>" /> <input type="hidden" name="os0" value="<?php echo S2MEMBER_CURRENT_USER_VALUE_FOR_PP_OS0; ?>" />
<!-- Identifies The Customer's IP Address For Tracking --> <input type="hidden" name="on1" value="<?php echo S2MEMBER_CURRENT_USER_VALUE_FOR_PP_ON1; ?>" /> <input type="hidden" name="os1" value="<?php echo S2MEMBER_CURRENT_USER_VALUE_FOR_PP_OS1; ?>" />
<!-- Controls Modify Behavior At PayPal® Checkout --> <input type="hidden" name="modify" value="0" /> <!-- Customizes Prices, Payments &#038; Billing Cycle -->
<!--
<input type="hidden" name="amount" value="1.00" />--> <input type="hidden" name="src" value="1" /> <input type="hidden" name="srt" value="" /> <input type="hidden" name="sra" value="1" /> <!--
<input type="hidden" name="a1" value="0" />-->
<!--
<input type="hidden" name="p1" value="0" />-->
<!--
<input type="hidden" name="t1" value="M" />--> <input type="hidden" name="a3" value="1.00" /> <input type="hidden" name="p3" value="1" /> <input type="hidden" name="t3" value="M" /> <!-- Displays The PayPal® Image Button --> <input style="width: auto; height: auto; border: 0;" type="image" src="https://www.paypal.com/en_US/i/btn/btn_xpressCheckout.gif" alt="PayPal®" /></form>





Thank you for your help
le formateur
User avatar
le formateur
Registered User
Registered User
 
Posts: 28
Joined: May 26, 2011
Location: France

Re: Paypal button issue

Postby Eduan » September 25th, 2011, 8:34 am

I think you should use the shortcode only... All that is minimized into the shortcode...
Now officially accepting Professional s2Member installations along with Bruce C (a.k.a. Ace).

If you're interested in a Professional s2Member Installation, or a Custom Coding Job, you can send your request here.
User avatar
Eduan
Experienced User
Experienced User
 
Posts: 1154
Joined: August 27, 2011
Location: Taxco de Alarcón, Guerrero, México.

Re: Paypal button issue

Postby le formateur » September 25th, 2011, 9:18 am

Eduan,

First Thank you for your answer.

I know that but I don't want to use the shortcode because I made some customization and I have to use the html code.

I don't use this button :

Image

I integrated (not really me but a webmaster) my button into my theme (Theprofessionnal by Elegant themes) :

Image

I have no problem into the sandbox.


Thank you for your help.
le formateur
User avatar
le formateur
Registered User
Registered User
 
Posts: 28
Joined: May 26, 2011
Location: France

Re: Paypal button issue

Postby Eduan » September 25th, 2011, 9:33 am

You can also integrate the button into your theme without going through the HTML...
See this link for ideas:
viewtopic.php?f=4&t=14837
Now officially accepting Professional s2Member installations along with Bruce C (a.k.a. Ace).

If you're interested in a Professional s2Member Installation, or a Custom Coding Job, you can send your request here.
User avatar
Eduan
Experienced User
Experienced User
 
Posts: 1154
Joined: August 27, 2011
Location: Taxco de Alarcón, Guerrero, México.

Re: Paypal button issue

Postby le formateur » September 25th, 2011, 10:14 am

Ok thank you for this idea but my button is integrate into a shortcode, it's not just an image.

First I have this :

Image

with this shortcode :

Code: Select all
[pricing price="99.95" currency="$" title="Enterprise" desc="Description" moretext="join" url="http://www.google.com" window="new"]
[feature] Content [/feature]
[feature checkmark="x"] Content [/feature]
[feature] Content [/feature]
[/pricing]




"join" is text but not an image. In my site it's "S'abonner". In fact I just input some text.


Thank you for your help.
le formateur
User avatar
le formateur
Registered User
Registered User
 
Posts: 28
Joined: May 26, 2011
Location: France

Re: Paypal button issue

Postby Eduan » September 25th, 2011, 10:17 am

Okay, though if you still have the problem consider using what I gave you (the link)...
Though... Did you solve your problem?
Now officially accepting Professional s2Member installations along with Bruce C (a.k.a. Ace).

If you're interested in a Professional s2Member Installation, or a Custom Coding Job, you can send your request here.
User avatar
Eduan
Experienced User
Experienced User
 
Posts: 1154
Joined: August 27, 2011
Location: Taxco de Alarcón, Guerrero, México.

Re: Paypal button issue

Postby le formateur » September 25th, 2011, 10:22 am

I keep the link you gave me.

My problem is not resolved.
le formateur
User avatar
le formateur
Registered User
Registered User
 
Posts: 28
Joined: May 26, 2011
Location: France

Re: Paypal button issue

Postby le formateur » September 25th, 2011, 10:26 am

I have a solution (delete them into the code) but I need to know if those informations are important or not :

Image
le formateur
User avatar
le formateur
Registered User
Registered User
 
Posts: 28
Joined: May 26, 2011
Location: France

Re: Paypal button issue

Postby Cristián Lávaque » September 27th, 2011, 10:36 pm

That is PHP that's not being parsed. You'll need a plugin like Exec PHP and work with the HTML editor only, not the Visual one, so it works. https://wordpress.org/extend/plugins/exec-php/

You can also change them for their shortcode equivalents. WP Admin -> s2Member -> API / Scripting -> s2Member PHP/API Constants at the bottom

Code: Select all
[s2Get constant="S2MEMBER_CURRENT_USER_VALUE_FOR_PP_ON0" /]
[s2Get constant="S2MEMBER_CURRENT_USER_VALUE_FOR_PP_OS0" /]

[s2Get constant="S2MEMBER_CURRENT_USER_VALUE_FOR_PP_ON1" /]
[s2Get constant="S2MEMBER_CURRENT_USER_VALUE_FOR_PP_OS1" /]


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: Paypal button issue

Postby le formateur » September 28th, 2011, 3:08 am

Hello,

Just one word : Perfect !

I would like to know if is it normal that I can make a payment when I am already connected and therefore already paid ! in other words I (or my clients) can pay several times without any error messages !

Thank you for your help.
le formateur
User avatar
le formateur
Registered User
Registered User
 
Posts: 28
Joined: May 26, 2011
Location: France

Re: Paypal button issue

Postby Cristián Lávaque » September 29th, 2011, 11:45 pm

Glad I could help. :)

Yes, it's normal. If that's not the behavior you want, then you should use a conditional to hide the button from those already with the paid level. WP Admin -> s2Member -> API / Scripting -> Simple/Shortcode Conditionals
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: Paypal button issue

Postby le formateur » September 30th, 2011, 12:16 am

Thank you. I will try...
le formateur
User avatar
le formateur
Registered User
Registered User
 
Posts: 28
Joined: May 26, 2011
Location: France


Return to s2Member Plugin

Who is online

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

cron