Jump to content
  • 0
Gorder

Need help with Failed to connect to Paypal server

Question

Hi everyone,

I'm using the most current fluxcp version. Everything is working fine for me except the donation part. Below is the my paypal configuration in the application.php file. I tried a test donation and it went through. However, the dummy account doesn't receive any credit. I checked the paypallog and learned that there is a failed connection to paypal server. I tried to resend the ipn a couple times from paypal and still have the same result. Could you help me resolving issue please? Thank you :)

 

Configuration

 'PayPalIpnUrl'                => 'ipnpb.paypal.com/cgi-bin/webscr',// The URL for PayPal's IPN responses (www.paypal.com for live and www.sandbox.paypal.com for testing)
    'PayPalBusinessEmail'        => '[email protected]',        // Enter the e-mail under which you have registered your business account.
    'PayPalReceiverEmails'        => array(                    // These are the receiver e-mail addresses who are allowed to receive payment.
        //'[email protected]',                                // -- This array may be empty if you only use one e-mail
        //'[email protected]'                                // -- because your Business Email is also checked.
    ),
    'PaypalHackNotify'          => true,  

 

 

I received this error after the donation was submitted.

[2018-02-13 06:25:43] Received notification from 173.0.81.1 (notify.paypal.com)
[2018-02-13 06:25:43] Query string: cmd=_notify-validate&discount=0.00&insurance_ etc.....
[2018-02-13 06:25:43] Establishing connection to PayPal server at ipnpb.paypal.com/cgi-bin/webscr:443...
[2018-02-13 06:25:43] Failed to connect to PayPal server: [0] php_network_getaddresses: getaddrinfo failed: No such host is known.
[2018-02-13 06:25:43] Transaction invalid, aborting.

 

Edited by Gorder
Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

I found the error.

I replaced ipnpb.paypal.com/cgi-bin/webscr  with ipnpb.paypal.com in the application.php and it's working fine now.

Link to comment
Share on other sites

  • 0

Edit: I have read that I need to use an URL like this: http://www.mysite.com/?module=donate&action=notify

...but if I use mod_rewrite option??? ('UseCleanUrls'                => true,)

Link to comment
Share on other sites

  • 0

it should be the link to this file PaymentNotifyRequest.php located in FluxCP/blob/master/lib/Flux/PaymentNotifyRequest.php

 

For example your website is www.example.com and FluxCP is your root folder then it should be

https://www.example.com/blob/master/lib/Flux/PaymentNotifyRequest.php

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.