Page 1 of 1
This invoice has already been paid. For more information, pl
Posted:
August 29th, 2011, 6:12 am
by 16k_zx81
I have just transferred S2M to a subdomain of my members site. All looked like it had gone OK until I discovered the PayPal purchase option is not working
When I click on the Buy button generated by S2M I get
This invoice has already been paid. For more information, please contact the merchant.
Return to ~~~~~~~~~~~~~
PayPal
At this time, we are unable to process your request. Please return to ~~~~~~~~~~~~~ and try another option.
I have re-generated the button twice, and have been through all of the S2M Paypal settings and all of the PayPal site settings, but can't seem to see an issue. I also searched the Forum, but could not find anyone else who has had this problem.
Can anyone suggest anything?
Re: This invoice has already been paid. For more information
Posted:
August 29th, 2011, 5:14 pm
by Cristián Lávaque
Could you show us your log entries for these failed transactions? x'ing out any private info. WP Admin -> s2Member -> PayPal Options -> Account Details -> Enable Logging
Re: This invoice has already been paid. For more information
Posted:
August 29th, 2011, 5:57 pm
by 16k_zx81
Can I email you this information?
Re: This invoice has already been paid. For more information
Posted:
August 29th, 2011, 7:01 pm
by Cristián Lávaque
Sure. I just saw your email.
I looked at the last two entries in your paypal-ipn.log file and saw a few odd things.
From the one without the members subdomain:
'option_name1' => '<?php echo S2MEMBER_CURRENT_USER_VALUE_FOR_PP_ON0; ?>? /></p>',
The PHP shouldn't be there, it should be the value of S2MEMBER_CURRENT_USER_VALUE_FOR_PP_ON0. Did you use the button's full code in the Visual editor?
From the one with the members subdomain:
'invoice' => '<?php echo S2MEMBER_VALUE_FOR_PP_INV(); ?>" /><br />
<!-- Identifies/Updates An Existing User/Member ( when/if applicable ) -',
and
5 => 'Signup Confirmation Email sent to: members.xxxx.com"members.xxxx.com%members.xxxx.com%members.xxxx.comfmembers.xxxx.comumembers.xxxx.comlmembers.xxxx.comlmembers.xxxx.com_members.xxxx.comnmembers.xxxx.comamembers.xxxx.commmembers.xxxx.comemembers.xxxx.com%members.xxxx.com%members.xxxx.com"members.xxxx.com members.xxxx.com<members.xxxx.com%members.xxxx.com%members.xxxx.compmembers.xxxx.comamembers.xxxx.comymembers.xxxx.comemembers.xxxx.comrmembers.xxxx.com_members.xxxx.comemembers.xxxx.commmembers.xxxx.comamembers.xxxx.comimembers.xxxx.comlmembers.xxxx.com%members.xxxx.com%members.xxxx.com>members.xxxx.com members.xxxx.com<members.xxxx.com%members.xxxx.com%members.xxxx.comcmembers.xxxx.comvmembers.xxxx.com1members.xxxx.com%members.xxxx.com%members.xxxx.com>members.xxxx.com.',
I x'ed out the domain.Could you post here the button code you're using?
Re: This invoice has already been paid. For more information
Posted:
August 29th, 2011, 8:24 pm
by 16k_zx81
Now its coming up with this:
Invalid Regular period. You must specify valid values for the A3, P3 and T3 parameters for a subscription.
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="business" value="~~~~~~~~~~~com.au" />
<input type="hidden" name="cmd" value="_xclick-subscriptions" />
<!-- Instant Payment Notification & Return Page Details -->
<input type="hidden" name="notify_url" value="http://members.~.com/?s2member_paypal_notify=1" />
<input type="hidden" name="cancel_return" value="http://members.~.com/" />
<input type="hidden" name="return" value="http://members~~~~~~~~~e.com/?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="members.~~~~~~~~~~~~.com" />
<input type="hidden" name="currency_code" value="USD" />
<input type="hidden" name="page_style" value="paypal" />
<input type="hidden" name="charset" value="utf-8" />
<input type="hidden" name="item_name" value="The ~~~~~~~~~~~~~~~~~~ Kit" />
<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 & Billing Cycle -->
<!--<input type="hidden" name="amount" value="129" />-->
<input type="hidden" name="src" value="0" />
<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="D" />-->
<input type="hidden" name="a3" value="129" />
<input type="hidden" name="p3" value="1" />
<input type="hidden" name="t3" value="Y" />
<!-- Displays The PayPal® Image Button -->
<input type="image" src="https://www.paypal.com/en_US/i/btn/btn_xpressCheckout.gif" style="width:auto; height:auto; border:0;" alt="PayPal®" />
</form>
When I go to make a button, that garbage text
members.xxxx.com"members.xxxx.com%members.xxxx.com%members.xxxx.comfmembers.xxxx.comumembers.xxxx.comlmembers.xxxx.comlmembers.xxxx.com_members.xxxx.comnmembers.xxxx.comamembers.xxxx.commmembers.xxxx.comemembers.xxxx.com%members.xxxx.com%members.xxxx.com"members.xxxx.com members.xxxx.com<members.xxxx.com%members.xxxx.com%members.xxxx.compmembers.xxxx.comamembers.xxxx.comymembers.xxxx.comemembers.xxxx.comrmembers.xxxx.com_members.xxxx.comemembers.xxxx.commmembers.xxxx.comamembers.xxxx.comimembers.xxxx.comlmembers.xxxx.com%members.xxxx.com%members.xxxx.com>members.xxxx.co
populates the "Description" and "wordpress shortcodes" fields.
Argh... this I am guessing has something to do with the transfer.
Any ideas how to fix?
Re: This invoice has already been paid. For more information
Posted:
August 30th, 2011, 6:00 am
by 16k_zx81
Hello? Anyone?
Re: This invoice has already been paid. For more information
Posted:
August 30th, 2011, 3:36 pm
by Jason Caldwell
I'm just picking up this thread, so pardon me if I'm not quite up to speed.
It looks like your Button Code has become corrupted by the WordPress Visual Editor. I would suggest that you start over and re-generate your Button Code with s2Member, and this time use the Shortcode format provided by s2Member instead of using the raw HTML. Using raw HTML in the WordPress Visual Editor can cause all sorts of problems, just like the one you're reporting here.
Re: This invoice has already been paid. For more information
Posted:
August 30th, 2011, 4:32 pm
by 16k_zx81
Thanks Jason
I dont use the Visual Editor
This is the shortcode its producing:
[s2Member-PayPal-Button level="1" ccaps="" desc="members.uts.comUmembers.uts.comTmembers.uts.comSmembers.uts.com members.uts.comMmembers.uts.comemembers.uts.commmembers.uts.combmembers.uts.comemembers.uts.comrmembers.uts.com / description and pricing details here." ps="paypal" lc="" cc="USD" dg="0" ns="1" custom="members.theultimatetechsite.com" ta="0" tp="0" tt="D" ra="0.01" rp="1" rt="M" rr="1" rrt="" rra="1" image="default" output="button" /]
Re: This invoice has already been paid. For more information
Posted:
August 30th, 2011, 6:27 pm
by Jason Caldwell
Thanks for the reply.
OK, that looks good, except for the desc="" attribute, you might want to revise that a bit, making it shorter. Otherwise, it looks good from this end. If this Shortcode is outputting that corrupted HTML that you posted earlier, then I would suspect that you have another plugin or possibly even a theme which is attempting to filter output from Shortcodes. This problem has been reported in the past, and usually is caused by theme/plugin developers that accidentally code their plugins with filters applied after Shortcodes are processed. You can test your site for this plugin conflict, by disabling one other plugin at a time until the Shortcode works properly. Either that, or install a copy of s2Member onto a clean installation of WordPress, with no plugins and the default theme, just to confirm.
Re: This invoice has already been paid. For more information
Posted:
August 30th, 2011, 6:37 pm
by 16k_zx81
That works
Thanks Jason
{phew!}
Really appreciate the help.
Jim
Re: This invoice has already been paid. For more information
Posted:
August 30th, 2011, 11:44 pm
by Cristián Lávaque
Great! Glad you solved it, Jim! That's the problem I suspected when I saw the PHP in your logs.
Thank you very much Jason for helping him.
Re: This invoice has already been paid. For more information
Posted:
August 31st, 2011, 12:06 am
by 16k_zx81
Yep. Its a huge relief. Thanks very much for your assistance
Re: This invoice has already been paid. For more information
Posted:
August 31st, 2011, 6:24 am
by sam19701st
Hi,
Jason & Cristian,
My S2 Members site has been working perfectly for a few months now,
http://videovault.autobuyersecrets.comJust this week I used WPTwin to make a 'clone' of the initial installation for a new members site.
http://www.realunfairadvantage.comThe new clone installation went fine - I changed the paypal button details(price and description) & the button on the new site works fine.
However when I went to the old site,
http://videovault.autobuyersecrets.com, and click on the buy now button I get the error from paypal;
'This invoice has already been paid. For more information, please contact the merchant'.
I deactivated all plugins - but this did not solve the issue. I was thinking that perhaps I should remove s2 fromt the first site & re-install the plug in from scratch. I dont have many subcribers yet - so I could easily manually add them again.
Do you think this will solve the problem or is there something else I should do first ?
Many thanks for the great plugin
Dan
Re: This invoice has already been paid. For more information
Posted:
August 31st, 2011, 2:46 pm
by sam19701st
Hey Guys,
Im sure you must be swamped under there today ! Could you have a peek at this for me & give me an idea what is causing the error ?
thanks!
Dan
Re: This invoice has already been paid. For more information
Posted:
August 31st, 2011, 9:09 pm
by Jason Caldwell
Hi there. I just took a look at your old site.
I'm seeing unparsed PHP tags in your HTML source code, like this:
- Code: Select all
<!-- 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; ?>" />
Try using the Shortcode format instead of the raw HTML/PHP code for your Button. Either that, or install the PHP Execution plugin so that your PHP tags are parsed out properly.
See:
http://wordpress.org/extend/plugins/php ... on-plugin/
Re: This invoice has already been paid. For more information
Posted:
September 2nd, 2011, 1:53 pm
by sam19701st
Thanks Jason,
I installed the PHP Execution plugin - but the problem remained, just as it was.
Would the error be appearing because the second clone site - when I click the paypal buy now button - is sending a message to paypal and when the paypal button on the first site is clicked - it tries to send a payment - the details of which paypal has already gotten from S2 member of the second clone site - if that makes sense!!
Is there an easy way of removing the S2 Member plugin or 'resetting' it so that the two sites have seperate S2 installations - or is it a case of re-installing s2 member on the first site which is now giving this error ?
thanks for taking the time to resolve this
Dan
Re: This invoice has already been paid. For more information
Posted:
September 2nd, 2011, 9:58 pm
by Cristián Lávaque
Are you using the PHP in the HTML editor only and not opening it at all with the Visual one?
Re: This invoice has already been paid. For more information
Posted:
September 3rd, 2011, 8:25 am
by sam19701st
Thanks Cristian,
Im not sure what you mean - Im not familiar with php language.
Any editing of code I do it in the html view & edit only text in the visual editor..
I have installed the PHP Execution plugin Jason recommended - but it didnt change - I still got the error:
'This invoice has already been paid. For more information, please contact the merchant'.
do remember the first site was working fine(
http://videovault.autobuyersecrets.com) until I cloned it and created a second site(
http://realunfairadvantage.com/facebook) with the same S2 credentials
please do let me know what I do to reslove as my first site is currently unable to accept payment,
thanks again for the support
Dan
Re: This invoice has already been paid. For more information
Posted:
September 3rd, 2011, 8:38 am
by Eduan
Hi,
I was checking the forum and this caught my attention, from what I know (looking at the tutorial videos), you shouldn't put some PHP code in the HTML Editor and then go back to the Visual Editor, that can corrupt the code you put on the HTML Editor, I'd recommend editing all the visual (with the Visual Editor) before-hand and then editing the code with the HTML Editor and then, without going back to the Visual Editor, post your page or whatever.
Re: This invoice has already been paid. For more information
Posted:
September 3rd, 2011, 1:33 pm
by Cristián Lávaque
That's correct. Once you enter PHP code in the HTML editor, don't open that page in the Visual editor again or it'll mess up the code.
About using the same PayPal account with more than one website, this documentation may be of interest:
viewtopic.php?f=36&t=2905