latest stable versions: v150827 (changelog)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Paypal error on button with domain name

Home Forums Community Forum Paypal error on button with domain name

This topic contains 17 replies, has 2 voices. Last updated by  Cristián Lávaque 4 years, 6 months ago.

Topic Author Topic
Posted: Sunday Jun 24th, 2012 at 8:35 am #17278

Hello,

I have not been able to master this intergration yet and would like to have some support tips to check.

I do have wordpress-mu installation and main site is pranayamayoga.tv
the site with the pages with s2member buy buttons is http://innerpeaceinourlife.com/7-ebooks-inner-peace-for-succes-and-happiness/

This is part of the log life of one order: ( i left sensitive info out)
The customers pay at paypal I receive money in account but they get an error I belief before the download page. See error in log file

‘transaction_subject’ => ‘pranayamayoga.tv’,
‘payment_gross’ => ‘149.00’,
‘shipping’ => ‘0.00’,
‘s2member_log’ =>
array (
0 => ‘Return-Data received on: Thu Jun 21, 2012 6:57:37 pm UTC’,
1 => ‘s2Member POST vars verified through a POST back to PayPal®.’,
2 => ‘Unable to verify `$_SERVER[“HTTP_HOST”]`. Please check the `custom` value in your Button Code. It MUST start with your domain name.’,
3 => ‘Redirecting Customer to the Home Page, due to an error that occurred.’,
),
‘subscr_gateway’ => ‘paypal’,
‘s2member_paypal_return_success’ => ‘http://innerpeaceinourlife.com/7-ebooks……………………

What is wrong in the settings?

thanks

jyotisha

List Of Topic Replies

Viewing 17 replies - 1 through 17 (of 17 total)
Author Replies
Author Replies
Posted: Sunday Jun 24th, 2012 at 10:06 am #17281

In the meantime I have found an error with my IPN settings in the Paypal account referring to not working domain because of typing error. I have changed this. Could this be the error?

tbanks

Posted: Sunday Jun 24th, 2012 at 10:39 am #17282

Dear Support,

When everything is working fine is it possible to send a customer who has paid but did not went trough the complete process the thank you page with the download instructions? Does he see the url in that case? What about the settings number of hours to download? Or better give money back and ask him to order again?

thanks

Posted: Sunday Jun 24th, 2012 at 5:33 pm #17303

What is wrong in the settings?

The problem there is that your shortcode doesn’t seem to be using the domain name of the blog he’s going to have the paid membership in. s2Member may work in a multisite network, but each blog has its own scope.

If you will sell access to Blog A, the button that you sell the access with has to be for Blog A, not Blog B. And if you want to use the Blog A shortcode in Blog B (I haven’t tested this), Blog B would need the PayPal integration filled out as well or the button will not be generated properly. Even if the button got generated properly, it may cause confusion if the user has an account in Blog B and is logged in to it, but then doesn’t have an account in Blog A yet, s2Member will tie the payment to the ID of the account he was logged in in Blog B.

In any case, it’s better to use the shortcode for the button in the same blog you’re giving the access. If you need to put the button somewhere else, it may be best to create a button over at PayPal, integrated with s2Member. This article explains how: Knowledge Base » Using PayPal created buttons

When everything is working fine is it possible to send a customer who has paid but did not went trough the complete process the thank you page with the download instructions? Does he see the url in that case? What about the settings number of hours to download? Or better give money back and ask him to order again?

When the user completes checkout, but before registration, s2Member sends him a confirmation email that includese a special registration link that tells s2Member what access to give him, and will work even if registrations are closed.

You can customize this email to personalize it and say whatever you feel best to the person. [hilite path]Dashboard -› s2Member® -› PayPal® Options -› Signup Confirmation Email[/hilite]

s2Member also lets you customize the New User email, sent by WordPress when the account is created. [hilite path]Dashboard -› s2Member® -› General Options -› Email Configuration -> New User[/hilite]

I hope that helps. :)

I do have wordpress-mu installation and main site is pranayamayoga.tv

Are you giving blogs to your users or is this just to organize your content?

Posted: Monday Jun 25th, 2012 at 6:24 am #17357

Dear Crisrtian,

I have created again the button from innerpeaceinourlife.com dashboard in wordpress and the same results.
I have enclosed the shortcode and htlm code for the button for you to verify further down in this post.

It seems custom=”pranayamayoga.tv” is the same. It is the name of my main blog, with additional blogs as parked domains in C-panel and domain mapping in wp-mu. The other blogs are all my own content for specific keys. I have generated the button for more blogs in their specic dashboard – as a rest – and custom=”pranayamayoga.tv” is on all buttons. I do not need to put the same buttons on all blogs. The ordering is at 1 site innerpeaceinourlife.

My question can I or should I replace manually for innerpeaceinourlife the field custom = “pranayamayoga.tv” by :
1) custom = “http://pranayamayoga.tv/innerpeaceinourlife-com/”
2) custom =“innerpeaceinourlife.com”
3) custom =”http://innerpeaceinourlife.com”
and try it out?

I hope you csan help met out in this matter and you have sufficient information,

thanks Jyotisha

page on site:

short code button created from innerpeaceinourlife dashboard:
[s2Member-PayPal-Button level="1" ccaps="" desc="7 eBooks for Inner Peace Pack" ps="paypal" lc="" cc="USD" dg="0" ns="1" custom="pranayamayoga.tv" ta="0" tp="0" tt="D" ra="149" rp="1" rt="D" rr="BN" rrt="" rra="1" image="default" output="button" /]

HTML code button created from innerpeaceinourlife dashboard:


<input type="hidden" name="invoice" value="” />

<input type="hidden" name="on0" value="” />
<input type="hidden" name="os0" value="” />

<input type="hidden" name="on1" value="” />
<input type="hidden" name="os1" value="” />

<!—->
<!—->
<!—->
<!—->
<!—->
<!—->
<!—->
<!—->
<!—->

  • This reply was modified 4 years, 6 months ago by  Cristián Lávaque. Reason: Remove URL
Posted: Monday Jun 25th, 2012 at 5:33 pm #17418

Thanks Jyotisha.

The HTML for the button didn’t come out right becase it needs to be put inside code tags to display properly. But don’t worry, I didn’t need it.

I understood what you said about the multisite blogs. So the child blogs have their own domain name or sub-domain, right? The shortcode for each should have the blog’s (sub.)domain.tld s2Member is working under, then. Probably because of how you set them up, the generator gets confused about the actual address and uses the main blog’s domain.

Try to manually add it and see if you can then have a successful checkout without that error. So if you have a blog under innerpeaceinourlife.com, then use that in the custom attribute. It’s fine to edit the shortcode manually.

[hilite pre_code]
custom="innerpeaceinourlife.com"
[/hilite]

I hope that helps :)

Posted: Tuesday Jun 26th, 2012 at 5:04 pm #17580

Dear Cristián,

I have made all the changes at the buttons. I have created the buttons at level 1 but I and can not find the customers in the database maybe because of the errors.

Your suggestions I have checked.

When the user completes checkout, but before registration, s2Member sends him a confirmation email that includese a special registration link that tells s2Member what access to give him, and will work even if registrations are closed.

You can customize this email to personalize it and say whatever you feel best to the person. Dashboard -› s2Member® -› PayPal® Options -› Signup Confirmation Email

s2Member also lets you customize the New User email, sent by WordPress when the account is created. Dashboard -› s2Member® -› General Options -› Email Configuration -> New User

I need to deliver 7 ebooks to 1 customer. Do I need to send them by email or is it possible to send the thank you page with downloads. I had security on this with 24 hours access. Wil the customer be able to download and can he send it to friends also for to download?

thanks

Posted: Thursday Jun 28th, 2012 at 7:17 am #17746

I have made all the changes at the buttons. I have created the buttons at level 1 but I and can not find the customers in the database maybe because of the errors.

Could you post the shortcodes you’re using for the buttons and the URL of the pages where they are?

Also, make sure you have logging enabled. [hilite path]Dashboard -› s2Member® -› PayPal® Options -› Account Details -› Logging[/hilite]

Create a test version of the buttons with the amount set to 1 cent, and do a test live purchase with each to get log entries for them. Then please send me the login info using the contact form, so I can get the logs via FTP and, if needed, look at your WP admin. s2Member® » Private Contact Form

Thanks!

I need to deliver 7 ebooks to 1 customer. Do I need to send them by email or is it possible to send the thank you page with downloads. I had security on this with 24 hours access. Wil the customer be able to download and can he send it to friends also for to download?

You could send it by email, but them the download link. The file would need to be protected by s2Member with the level you sold the user.

He can share the downloaded file, or his login info (although the Unique IP restriction helps with this), but sharing the link won’t work if the friend doesn’t have an account with the required access level.

Posted: Thursday Jun 28th, 2012 at 9:29 am #17762

Dear Cristián,
Thanks so far. We move step by step!

Below is the code on the logfile of s2member. I did 2 live purchases of 1 dollar in the name of my partner with her email and credit card and paid through paypal. At paypal everything went fine, including 2 emails with bill. After the first error of being logged in as admin I logged out of the dashboard completely and the same error results

[…]

Error on screen:
ERROR: Unable to modify Subscription.
Please contact Support for assistance.

The existing User ID is associated with an Administrator. Stopping here. Otherwise, an Administrator could lose access. Please make sure that you are NOT logged in as an Administrator while testing.
Back To Home Page
If you need assistance, please contact support.

  • This reply was modified 4 years, 6 months ago by  Cristián Lávaque. Reason: Remove logs
Posted: Thursday Jun 28th, 2012 at 4:08 pm #17782

Right, you have to not be logged in to the admin account to test the purchase. And I recommend doing 1 cent transactions, because they can’t get cheaper than that, and work as well as a more expensive one for tests. ;)

By the way, you left the email addresses in the log entries, which may be fine if it’s your own, but be careful not to post info from your customers in public. You can send me via the contact form the info I requested earlier. s2Member® » Private Contact Form

Posted: Saturday Jun 30th, 2012 at 1:46 pm #17976

Dear Cristián,

OK I was not aware of the form but I found out how to use it. please remove the code on the forum because the succes url of one of the ebooks in in there.

I wait for your reply on the test results with 0,01 cts which I have send through the forum

thanks

Posted: Wednesday Jul 4th, 2012 at 8:07 am #18278

My sites have been off line because of hard disk problems. Everything is fine now. Thanks

Posted: Thursday Jul 5th, 2012 at 12:02 am #18335

Thanks for the update, Jyotisha. Then, is your problem solved now?

I removed the links I found to the download page. Let me know if I missed one, please. By the way, if the person will be logged in when donwloading, then you don’t need to have the download key in the link. Not having the key will prevent users without the proper access, from downloading the file, even if they had the URL to it.

I hope it helps. :)

Posted: Thursday Jul 5th, 2012 at 5:09 am #18366

Dear Cristián,

Thanks for explaining about the access to download urls. Not everything is solved. Please check the form i send you with all the access information to my environment and paypal test results of the 0,01 cts I have made. There is still an error for my clients to get through the whole process.

thanks

Posted: Saturday Jul 7th, 2012 at 2:32 am #18515

Okay, sorry about the delay. I now had a chance to do the test purchase and review the logs and your installation.

I could checkout without a problem, no errors, and got taken to the default thank-you page:

http://inner********.com/?s2member_paypal_return=1&s2member_paypal_return_tra=<snip>&tx=<snip>&st=Completed&amt=0.01&cc=USD&cm=inner********%2ecom&item_number=1::1%20D

It had a link to register at:
http://inner********.com/wp-login.php?action=register

But that redirects to:
http://prana********.tv/inner********-com/wp-login.php

Although I thought it wouldn’t work as desired, I registered from
http://prana********.tv/inner********-com/wp-login.php?action=registered

I reviewed the logs after this and the transaction looks fine there, but I never got the confirmation email after payment or the new user meail after registration.

I also checked the account in the users list and it is there, but with role “Subscriber” instead of “s2Member Level 1”:
http://prana********.tv/inner********-com/wp-admin/users.php

I’m suspecting that the problem is being caused by the way the child blogs are managed. It’s weird it’d be prana********.tv/inner********-com instead of just inner********-com. Are you using a standard WP multisite network or a WPMU Dev version of it? I ask because I saw WPMU mentiond in the dashboard.

You may want to have that blog outside that network, or use a normal multisite network where the child blog will all be under the same domain name.

I hope that helps figure out what’s going on in your installation. :)

Posted: Saturday Jul 7th, 2012 at 7:39 am #18549

Dear Cristián

Excellent the payment and download work at this stage.

The challence is to get the buyer registered at level 1 and he or she gets the s2Member to WP Autoresponder Integration emails.

I use the WordPress MU Domain Mapping plugin by Donncha O Caoimh
http://ocaoimh.ie/wordpress-mu-domain-mapping/

Pranayamayoga.tv main domain and then parked domains and this plugin to map these.

is has 2 pages with settings … maybe settings are not right?

I am not sure you have find the access to the network admin pages?

options
yes Remote Login
yes Permanent redirect (better for your blogger’s pagerank)
yes User domain mapping page
yes? Redirect administration pages to site’s original domain (remote login disabled if this redirect is disabled)
no Disable primary domain check. Sites will not redirect to one domain name. May cause duplicate content issues.

At settings in this plugin there is a note about s3member at the top:
* Note: The s2Member plugin has control over two options on this page.
Allow Open Registration = none and Add New Users = 1.
Please check: s2Member -> Multisite ( Config ).

I did receive email of new user registration:
New user registration on your site Inner Peace In Our Life:

Username: cristian (with your email as well)

Allow new registrations
YES Registration is disabled.

NO User accounts may be registered.

No Logged in users may register new sites.

NO Both sites and user accounts can be registered.

Registration notification
Yes Send the network admin an email notification every time someone registers a site or user account.
Yes Add New Users Allow site administrators to add new users to their site via the “Users → Add New” page.

Maybe you have a clue with this to get it working.

thanks

Posted: Wednesday Jul 11th, 2012 at 5:49 pm #18960

Dear Cristián,

I wait for your response about setting options in plugin from other supplier.

thanks
Jyotisha

Posted: Thursday Jul 12th, 2012 at 7:34 am #19026

yes Remote Login
yes Permanent redirect (better for your blogger’s pagerank)

I’m not familiar with domain mapping or that plugin. Are those settings the ones responsible for the redirection when I tried to register?

You need to somehow prevent the redirection from happening so that registration is done in the blog that http://innerpeaceinourlife.com/wp-login.php?action=register which is where s2Member would expect it and give the user the Level he paid for.

See if you can adjust your domain mapping plugin settings to have that happen and test your checkout again. I think it’ll work properly then.

Let me know how it goes, please. :)

Viewing 17 replies - 1 through 17 (of 17 total)

This topic is closed to new replies. Topics with no replies for 2 weeks are closed automatically.

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Contacting s2Member: Please use our Support Center for bug reports, pre-sale questions & technical assistance.