Support No Answer Payment error log

FedericoGB25

New Member
Joined
Jul 25, 2018
Messages
18
Hello! :)
I have just installed Forum Sales add-on on my website, but when I try to buy a product, the add-on give me this error log:

  • ErrorException: Fatal Error: XFA\Core\Service\PayPal\AbstractExpressCheckout::__construct(): Failed opening required '/var/www/vhosts/mc-security.eu/forum/internal_data/PPConfiguration.php' (include_path='.:/opt/plesk/php/7.1/share/pear')
  • src/addons/XFA/Core/Service/PayPal/AbstractExpressCheckout.php:27
  • Generated by: FedericoGB25
    Oct 24, 2018 at 9:49 PM

    Stack trace
    #0 [internal function]: XF::handleFatalError()
    #1 {main}
    Request state
    array(4) {
    ["url"] => string(164) "/threads/test.41/forum-sale-purchase?_xfRequestUri=%2Fthreads%2Ftest.41%2F&_xfWithData=1&_xfToken=1540410555%2C1f2adf52151bfbe2381af1aab41ea3dd&_xfResponseType=json"
    ["referrer"] => string(39) "https://mc-security.eu/threads/test.41/"
    ["_GET"] => array(4) {
    ["_xfRequestUri"] => string(17) "/threads/test.41/"
    ["_xfWithData"] => string(1) "1"
    ["_xfToken"] => string(43) "1540410555,1f2adf52151bfbe2381af1aab41ea3dd"
    ["_xfResponseType"] => string(4) "json"
    }
    ["_POST"] => array(0) {
    }
    }

I would like to set that every seller can add its PayPal e-mail address.
Thanks for reading :)
 

FedericoGB25

New Member
Joined
Jul 25, 2018
Messages
18
Hello,
I entered the information in my API and uploaded copies of the PPConfiguration.php file both in core and in internal_data.
But now the add-on, I return this:

We couldn't initialize the communication with Paypal, please contact our staff.
 

MtoR

Freaky Coder
Staff member
Joined
Nov 14, 2015
Messages
3,904
Hi,

There could be multiple reasons.
  • Did you select a currency supported on your account ?
  • Have you activated the percentage on sale ? If so did you use the same address for the percentage on sale and the resource ? That would be incorrect.
Clément
 

MtoR

Freaky Coder
Staff member
Joined
Nov 14, 2015
Messages
3,904
Yes of course, that's a category configuration
 

FedericoGB25

New Member
Joined
Jul 25, 2018
Messages
18
Hello, I have enabled Percentage on sale on my forum, but the error is same.

My settings:
upload_2018-10-26_21-7-45.png

Forum settings:
upload_2018-10-26_21-9-11.png
 

MtoR

Freaky Coder
Staff member
Joined
Nov 14, 2015
Messages
3,904
Ok but what did you set for the resource itself ?
Do not activate percentage on sale if you put 0 as percentage value.

Please post a screenshot of the resource category configuration as well.
 

MtoR

Freaky Coder
Staff member
Joined
Nov 14, 2015
Messages
3,904
Ok so the issue is the one I stated in one of my post at the top.
You have set the same paypal URL for both the resource and in options.
As you configured 10% of percentage on sale you are creating payments that goes to the same account.

You must have two different emails there.

Clément
 

FedericoGB25

New Member
Joined
Jul 25, 2018
Messages
18
I have set another Email on product selling, the error is: "We couldn't initialize the communication with Paypal, please contact our staff."
 

MtoR

Freaky Coder
Staff member
Joined
Nov 14, 2015
Messages
3,904
I see you are selling in $.
Are $ supported by both paypal accounts ?

Oh another thing that could be the issue.
You have set 10% on sale but amount is 1$, that would lead to a percentage on sale almost equal to 0.
Try with higher amounts.
 

FedericoGB25

New Member
Joined
Jul 25, 2018
Messages
18
I have just disabled Percentage on sale, I have tried to sell in EUR, but it gived me same error
 

MtoR

Freaky Coder
Staff member
Joined
Nov 14, 2015
Messages
3,904
Oh right with a user account that can buy the resource.
Please send me the info per PM.
 

MtoR

Freaky Coder
Staff member
Joined
Nov 14, 2015
Messages
3,904
Ok investigated.
The exact error is that there is an authentication error, so I assume you incorrectly set the API data.