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 Success Return URL not working

Home Forums Community Forum PayPal Success Return URL not working

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

Topic Author Topic
Posted: Saturday Jul 21st, 2012 at 4:49 am #19879

Hi there

Paypal is returning to the membership option page on success and seems to ignore the success url in the shortcode.

I have read various posts on similar issues, and just wondered if you could look at the logs to suggest my next step.

I have checked paypal settings, tokens etc, as per otherposts. I have checked the success=”” is right as well.

I am hoping you can spot something in the logs (edited for security)

PHP v5.2.17 :: WordPress® v3.3.2 :: s2Member® v120703 :: s2Member® Pro v120703
Memory 38.84 MB :: Real Memory 39.25 MB :: Peak Memory 38.92 MB :: Real Peak Memory 39.25 MB
xxx.co.uk/xxx-gold-membership/
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/536.11 (KHTML, like Gecko) Chrome/20.0.1132.57 Safari/536.11
-------- Input vars: ( Sat Jul 21, 2012 10:23:21 am CEST ) --------
array (
  'METHOD' => 'SetExpressCheckout',
  'RETURNURL' => 'http://xxx.co.uk/xxx-gold-membership/?s2member_paypal_xco=s2member_pro_paypal_checkout_return',
  'CANCELURL' => 'http://xxx.co.uk/xxx-gold-membership/?s2member_paypal_xco=s2member_pro_paypal_checkout_cancel',
  'PAGESTYLE' => 'xxx',
  'LOCALECODE' => '',
  'NOSHIPPING' => '1',
  'SOLUTIONTYPE' => 'Sole',
  'LANDINGPAGE' => 'Billing',
  'ALLOWNOTE' => '0',
  'L_BILLINGTYPE0' => 'RecurringPayments',
  'L_BILLINGAGREEMENTDESCRIPTION0' => '£00.50 GBP / Monthly ( recurring charge, for ongoing access )',
  'PAYMENTREQUEST_0_SHIPTONAME' => 'Johnny xxx',
  'PAYMENTREQUEST_0_SHIPTOSTREET' => '',
  'PAYMENTREQUEST_0_SHIPTOCITY' => '',
  'PAYMENTREQUEST_0_SHIPTOSTATE' => '',
  'PAYMENTREQUEST_0_SHIPTOCOUNTRYCODE' => 'GB',
  'PAYMENTREQUEST_0_SHIPTOZIP' => '',
  'EMAIL' => 'xxx@gmail.com',
  'VERSION' => '71.0',
  'USER' => 'info_api1.xxx.co.uk',
  'PWD' => 'MS9HLC7QKHWR8EZ9',
  'SIGNATURE' => 'AzDhVicHp8VHlkomzXJVXx4HgRhIA5.xOrxcnYZ-YR.LBLjrbaIPTROj',
)
-------- Output string/vars: ( Sat Jul 21, 2012 10:23:22 am CEST ) --------
TOKEN=EC%2d90D5718078435725X&TIMESTAMP=2012%2d07%2d21T08%3a23%3a22Z&CORRELATIONID=d1b5ff54ee28f&ACK=Success&VERSION=71%2e0&BUILD=3332236
array (
  'TOKEN' => 'EC-90D5718078435725X',
  'TIMESTAMP' => '2012-07-21T08:23:22Z',
  'CORRELATIONID' => 'd1b5ff54ee28f',
  'ACK' => 'Success',
  'VERSION' => '71.0',
  'BUILD' => '3332236',
)

PHP v5.2.17 :: WordPress® v3.3.2 :: s2Member® v120703 :: s2Member® Pro v120703
Memory 38.76 MB :: Real Memory 39.25 MB :: Peak Memory 38.84 MB :: Real Peak Memory 39.25 MB
xxx.co.uk/xxx-gold-membership/?s2member_paypal_xco=s2member_pro_paypal_checkout_return&token=EC-90D5718078435725X
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/536.11 (KHTML, like Gecko) Chrome/20.0.1132.57 Safari/536.11
-------- Input vars: ( Sat Jul 21, 2012 10:23:49 am CEST ) --------
array (
  'METHOD' => 'GetExpressCheckoutDetails',
  'TOKEN' => 'EC-90D5718078435725X',
  'VERSION' => '71.0',
  'USER' => 'info_api1.xxx.co.uk',
  'PWD' => 'xxx',
  'SIGNATURE' => 'AzDhVicHp8VHlkomzXJVXx4HgRhIA5.xOrxcnYZ-YR.LBLjrbaIPTROj',
)
-------- Output string/vars: ( Sat Jul 21, 2012 10:23:50 am CEST ) --------
TOKEN=EC%2d90D5718078435725X&BILLINGAGREEMENTACCEPTEDSTATUS=1&CHECKOUTSTATUS=PaymentActionNotInitiated&TIMESTAMP=2012%2d07%2d21T08%3a23%3a50Z&CORRELATIONID=d21340e78706e&ACK=Success&VERSION=71%2e0&BUILD=3332236&EMAIL=xxx%40gmail%2ecom&PAYERID=72DTEB6TFU9EW&PAYERSTATUS=verified&FIRSTNAME=Johnny&LASTNAME=xxx&COUNTRYCODE=GB&CURRENCYCODE=USD&AMT=0%2e00&SHIPPINGAMT=0%2e00&HANDLINGAMT=0%2e00&TAXAMT=0%2e00&INSURANCEAMT=0%2e00&SHIPDISCAMT=0%2e00&PAYMENTREQUEST_0_CURRENCYCODE=USD&PAYMENTREQUEST_0_AMT=0%2e00&PAYMENTREQUEST_0_SHIPPINGAMT=0%2e00&PAYMENTREQUEST_0_HANDLINGAMT=0%2e00&PAYMENTREQUEST_0_TAXAMT=0%2e00&PAYMENTREQUEST_0_INSURANCEAMT=0%2e00&PAYMENTREQUEST_0_SHIPDISCAMT=0%2e00&PAYMENTREQUEST_0_INSURANCEOPTIONOFFERED=false&PAYMENTREQUESTINFO_0_ERRORCODE=0
array (
  'TOKEN' => 'EC-90D5718078435725X',
  'BILLINGAGREEMENTACCEPTEDSTATUS' => '1',
  'CHECKOUTSTATUS' => 'PaymentActionNotInitiated',
  'TIMESTAMP' => '2012-07-21T08:23:50Z',
  'CORRELATIONID' => 'd21340e78706e',
  'ACK' => 'Success',
  'VERSION' => '71.0',
  'BUILD' => '3332236',
  'EMAIL' => 'xxx@gmail.com',
  'PAYERID' => '72DTEB6TFU9EW',
  'PAYERSTATUS' => 'verified',
  'FIRSTNAME' => 'Johnny',
  'LASTNAME' => 'xxx',
  'COUNTRYCODE' => 'GB',
  'CURRENCYCODE' => 'USD',
  'AMT' => '0.00',
  'SHIPPINGAMT' => '0.00',
  'HANDLINGAMT' => '0.00',
  'TAXAMT' => '0.00',
  'INSURANCEAMT' => '0.00',
  'SHIPDISCAMT' => '0.00',
  'PAYMENTREQUEST_0_CURRENCYCODE' => 'USD',
  'PAYMENTREQUEST_0_AMT' => '0.00',
  'PAYMENTREQUEST_0_SHIPPINGAMT' => '0.00',
  'PAYMENTREQUEST_0_HANDLINGAMT' => '0.00',
  'PAYMENTREQUEST_0_TAXAMT' => '0.00',
  'PAYMENTREQUEST_0_INSURANCEAMT' => '0.00',
  'PAYMENTREQUEST_0_SHIPDISCAMT' => '0.00',
  'PAYMENTREQUEST_0_INSURANCEOPTIONOFFERED' => 'false',
  'PAYMENTREQUESTINFO_0_ERRORCODE' => '0',
)

PHP v5.2.17 :: WordPress® v3.3.2 :: s2Member® v120703 :: s2Member® Pro v120703
Memory 38.79 MB :: Real Memory 39.25 MB :: Peak Memory 38.87 MB :: Real Peak Memory 39.25 MB
xxx.co.uk/xxx-gold-membership/?s2member_paypal_xco=s2member_pro_paypal_checkout_return&token=EC-90D5718078435725X
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/536.11 (KHTML, like Gecko) Chrome/20.0.1132.57 Safari/536.11
-------- Input vars: ( Sat Jul 21, 2012 10:23:50 am CEST ) --------
array (
  'METHOD' => 'CreateRecurringPaymentsProfile',
  'EMAIL' => 'xxx@gmail.com',
  'FIRSTNAME' => 'Johnny',
  'LASTNAME' => 'xxx',
  'SUBSCRIBERNAME' => 'Johnny xxx',
  'DESC' => '£00.50 GBP / Monthly ( recurring charge, for ongoing access )',
  'PROFILEREFERENCE' => '1345494229:0 D:1 M~xxx.co.uk~1',
  'INITAMT' => '0.50',
  'FAILEDINITAMTACTION' => 'CancelOnFailure',
  'CURRENCYCODE' => 'GBP',
  'AMT' => '0.50',
  'TAXAMT' => '0.00',
  'MAXFAILEDPAYMENTS' => '2',
  'AUTOBILLOUTAMT' => 'AddToNextBilling',
  'PROFILESTARTDATE' => '2012-08-20T00:00:00Z',
  'BILLINGPERIOD' => 'Month',
  'TOTALBILLINGCYCLES' => '0',
  'BILLINGFREQUENCY' => '1',
  'TOKEN' => 'EC-90D5718078435725X',
  'VERSION' => '71.0',
  'USER' => 'info_api1.xxx.co.uk',
  'PWD' => 'MS9HLC7QKHWR8EZ9',
  'SIGNATURE' => 'AzDhVicHp8VHlkomzXJVXx4HgRhIA5.xOrxcnYZ-YR.LBLjrbaIPTROj',
)
-------- Output string/vars: ( Sat Jul 21, 2012 10:23:51 am CEST ) --------
PROFILEID=I%2d27TAD8P92A7U&PROFILESTATUS=PendingProfile&TIMESTAMP=2012%2d07%2d21T08%3a23%3a51Z&CORRELATIONID=5fdcdf0946447&ACK=Success&VERSION=71%2e0&BUILD=3255948
array (
  'PROFILEID' => 'I-27TAD8P92A7U',
  'PROFILESTATUS' => 'PendingProfile',
  'TIMESTAMP' => '2012-07-21T08:23:51Z',
  'CORRELATIONID' => '5fdcdf0946447',
  'ACK' => 'Success',
  'VERSION' => '71.0',
  'BUILD' => '3255948',
)



And IPN LOG

PHP v5.2.17 :: WordPress® v3.3.2 :: s2Member® v120703 :: s2Member® Pro v120703
Memory 41.60 MB :: Real Memory 43.75 MB :: Peak Memory 42.95 MB :: Real Peak Memory 43.75 MB
xxx.co.uk/?s2member_paypal_notify=1
User-Agent: 
array (
  'payment_cycle' => 'Monthly',
  'txn_type' => 'recurring_payment_profile_created',
  'last_name' => 'xxx',
  'initial_payment_status' => 'Completed',
  'next_payment_date' => '03:00:00 Aug 20, 2012 PDT',
  'residence_country' => 'GB',
  'initial_payment_amount' => '0.50',
  'rp_invoice_id' => '1345494229:0 D:1 M~xxx.co.uk~1',
  'currency_code' => 'GBP',
  'time_created' => '01:23:51 Jul 21, 2012 PDT',
  'verify_sign' => 'AX.P.uhJQp6vlSjiNJerytgZGwr5ANifGq.-1wr3wcTqHpQhHeL6vmma',
  'period_type' => 'Regular',
  'payer_status' => 'verified',
  'tax' => '0.00',
  'payer_email' => 'xxx@gmail.com',
  'first_name' => 'Johnny',
  'receiver_email' => 'info@xxx.co.uk',
  'payer_id' => '72DTEB6TFU9EW',
  'product_type' => '1',
  'initial_payment_txn_id' => '7D876197L5133043D',
  'shipping' => '0.00',
  'amount_per_cycle' => '0.50',
  'profile_status' => 'Active',
  'charset' => 'windows-1252',
  'notify_version' => '3.5',
  'amount' => '0.50',
  'outstanding_balance' => '0.00',
  'recurring_payment_id' => 'I-27TAD8P92A7U',
  'product_name' => '£00.50 GBP / Monthly ( recurring charge, for ongoing access )',
  'ipn_track_id' => '5fd029c18ee46',
  's2member_log' => 
  array (
    0 => 'IPN received on: Sat Jul 21, 2012 10:24:58 am CEST',
    1 => 's2Member POST vars verified through a POST back to PayPal®.',
    2 => 's2Member originating domain ( `$_SERVER["HTTP_HOST"]` ) validated.',
    3 => 's2Member `txn_type` identified as ( `recurring_payment_profile_created` ).',
    4 => 'The `txn_type` does not require any action on the part of s2Member.',
    5 => 's2Member Pro handles this event on-site, with an IPN proxy.',
  ),
  'subscr_gateway' => 'paypal',
  'custom' => 'xxx.co.uk',
  'item_number' => '1',
  'subscr_id' => 'I-27TAD8P92A7U',
  'item_name' => '£00.50 GBP / Monthly ( recurring charge, for ongoing access )',
)

The full url after paypal success is :

http://xxx.co.uk/xxx-gold-membership/?s2member_paypal_xco=s2member_pro_paypal_checkout_return&token=EC-90D5718078435725X

Any help would be cool, as this is urgent for me.

Best

  • This topic was modified 4 years, 5 months ago by  Raam Dev. Reason: Added code box to log to keep formatting readable

List Of Topic Replies

Viewing 24 replies - 1 through 24 (of 24 total)
Author Replies
Author Replies
Posted: Monday Jul 23rd, 2012 at 4:46 am #19962
Raam Dev
Username: Raam
Staff Member

Hi Andy,

As far as I can tell, the logs look fine. There should be three different logs in that directory… do the other logs contain anything from this transaction?

My first suggestion here would be to double-check the PayPal PDT/Auto-Return integration settings: Dashboard -› s2Member® -› PayPal® Options -› PayPal® PDT Integration.

Also please download this Server Check Tool, upload the PHP file to your WordPress directory, and then load the URL to the file in your browser. It will run a bunch of tests to determine if there’s anything amiss on the server-side.

Posted: Tuesday Jul 31st, 2012 at 6:04 am #20756

Yes I have double and triple checked.

I have also ran the server tool, with no reported problems.

Posted: Tuesday Jul 31st, 2012 at 8:03 am #20778

Hi Andy.

What is the name of the log file you quoted above? Could you post the related entries from the other log files too?

Thanks!

Posted: Tuesday Jul 31st, 2012 at 11:04 am #20810

Hi

the two log files are

paypal-api and paypal-ipn

Posted: Tuesday Jul 31st, 2012 at 11:05 am #20812

There are no other log files

Posted: Tuesday Jul 31st, 2012 at 10:09 pm #20857

Okay. Could you post the related entries from those, please? And a link to the page where you have the button/pro-form, too.

You can send them using the contact form, if you prefer it. s2Member® » Private Contact Form

Thanks! :)

Posted: Tuesday Aug 7th, 2012 at 7:45 am #21359

HI, I sent a private message about a week ago, and had no response ?

Could you let me know whats happening?

Posted: Wednesday Aug 8th, 2012 at 7:06 am #21467

Thanks Andy. Sorry about the delay, I was waiting for you to let me know here that you had sent it and I didn’t notice the email, I missed it in the inbox that day and then it was just pushed out of sight by all the new emails.

I reviewed your pro-form, it looks fine. I looked at the logs and noticed no new tests since the ones you posted, so I did my own test purchases.

I checked out twice with Express Checkout and both times I was returned to the page with the pro-form and not redirected to the success URL. Also, no RTN log is being created, and the IPN log was not populated with the new transactions, only the API log got entries for my tests.

The URL PayPal sent me back to is basically:
http://yoursite.com/gold-membership/?s2member_paypal_xco=s2member_pro_paypal_checkout_return&token=EC-2TR72xxxxxxxxxxx

The [hilite mono]s2member_paypal_xco[/hilite] is “s2member_pro_paypal_checkout_return”, and [hilite mono]token[/hilite] is also there, it doesn’t look like there are vars missing.

I don’t know what’s causing this problem, so I emailed Jason asking for his insight. He may not answer right away, but I’ll let you know as soon as I hear back from him. In the meantime there’s something you could do:

I noticed a lot of plugins installed in your site, and wondered if one of them may be affecting the behavior in some way. As a test, could you deactivate the other plugins one by one, and do a test checkout after each to see if the problem continues? Or install a new WP with just s2Member, configure the PayPal integration and do a test checkout there. This test would be very helpful to determine where the problem may be.

Posted: Wednesday Aug 8th, 2012 at 2:24 pm #21540

I was sure hoping you wouldnt mention testing each extension one by one :(

OK, no problems, I will start looking at extensions

Posted: Wednesday Aug 8th, 2012 at 4:15 pm #21548

hmmm, disabled ALL extensions, and the same.

will try a reinstall of plugin

Posted: Wednesday Aug 8th, 2012 at 5:46 pm #21552

Ok, deleted s2member + pro and config files

Reinstalled, setup paypal again, checked everything twice :o

Still the same result :( still not going to success url

Posted: Wednesday Aug 8th, 2012 at 11:03 pm #21583

Got it. Thank you very much for taking the time to test that!

I forwarded all this to Jason and he’s looking into it. I’ll let you know as soon as I hear back from him.

Posted: Thursday Aug 9th, 2012 at 2:51 am #21592

Thanks Cristián for your support so far :)

Posted: Friday Aug 10th, 2012 at 8:35 pm #21734

No problem. :)

Posted: Saturday Aug 11th, 2012 at 12:22 pm #21782
Staff Member

Thanks for the heads up on this request for assistance.

@ Andy

I’ve just completed a review and full diagnostics on your installation. I found that you may have a firewall issue (or a PHP configuration issue at the server level), which is preventing your site from connecting over HTTP to itself. While your site is capable of connecting via HTTP to outside networks, connections from your server, to scripts that reside on the same host are failing. This is indicative of firewall configuration conflicts. I recommend contacting your hosting provider with the details below, so they can start an investigation on their end of things.

I’ve installed a test script here, which your hosting company can use to reproduce the issue.
http://xxxxx.co.uk/?s2_diagnostics=1
(connection from the domain back to itself is failing)

Until this issue is resolved at the server level, s2Member will not behave as intended.

Posted: Monday Aug 13th, 2012 at 7:43 am #21861

Hi Jason,

Many thanks for looking into this issue for us. We are grateful for this.

We have contacted our hosting, and this is their response. So I guess we are stuck?

———————————————————————————

Thanks for contacting us.

Looking into this it would seem that the script appears to be calling the domain name. This type of connection is known as a http loopback call, which on the shared hosting are blocked by our firewalls.

This is due to this type of connection bypassing certain security checks as well as having the potential to create script spawn loops. As this poses a risk to the shared hosting, this is globally disabled.

Any file or script being called should use the local server path, /home/sites/xxxxx.co.uk/public_html to retrieve locally accessable files.

If you have any further queries, please ask.

————————————————————————

Look forward to your response.

Best

Posted: Tuesday Aug 14th, 2012 at 7:50 am #21963
Raam Dev
Username: Raam
Staff Member

Hi Andy,

I’ll send Jason a message so he can take a look at this. Thank you for your patience.

Posted: Tuesday Aug 14th, 2012 at 3:09 pm #22019
Staff Member

Thanks for the follow-up.

Yes, that hosting configuration will be incompatible with s2Member. Any hosting company which blocks the server from making requests to itself (i.e. for s2Member, or for WP_Cron, or for any other script that needs to post HTTP requests to itself for any reason), will be a problem.

I recommend any of these hosts:
http://wordpress.org/hosting/

Also recommend:
HostGator
MediaTemple (gs)
Rackspace Cloud Hosting
FireHost

If possible, please tell us who your current hosting provider is?

Posted: Saturday Aug 18th, 2012 at 9:03 pm #22470

Hi Jason

Thanks for your suggestions…

Ok, we have now changed hosting from heartinternet.co.uk to another hosting, but we are still facing the same issue ?

We are experiencing the exact same issue…

I’ve gone over everything again, and cant see any mistakes I am making.

I will send via. private message new server details.

Could you help?

Best

Posted: Sunday Aug 19th, 2012 at 8:31 am #22492

Andy, could you run in your new server the diagnostics Jason ran before?+

Here is the test file to diagnose the issue:

Create this dir/file: /wp-content/mu-plugins/s2-diagnostics.php
http://codex.wordpress.org/Must_Use_Plugins
[hilite pre_code]
http://example.com/?s2_diagnostics

Posted: Tuesday Aug 21st, 2012 at 3:53 am #22607

Hi

Thanks all for your support…. Everything is working fine with new server…. I think the issue was dns related, and paypal was redirecting to old server still.

Many thanks for your help to everyone on here.

Best

Posted: Tuesday Aug 21st, 2012 at 9:35 pm #22683

That’s great, Andy! Thanks a lot for the update. I’m very glad it’s solved now. :)

Posted: Wednesday Aug 22nd, 2012 at 6:54 am #22701

Yes, to clarify… the overall problem was heartinternet.co.uk not allowing loopback.

After discovering this, I found other people on other boards complaining about how heartinternet refuse to address this very issue.

Best

Posted: Wednesday Aug 22nd, 2012 at 8:30 am #22735

Ah ok. Thanks for the extra info. I’m sure it’ll help others searching for it here in the future. :)

Viewing 24 replies - 1 through 24 (of 24 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.