1. This area is dedicated to the support of our xF2 add-ons, for support of our xF1 add-ons please use the dedicated forums.
    Note that we only accept support question and bug reports in this section.

    For suggestions, please wait until xF2 stable is released as we'll reorganize our forum at that time and accept them.
Dismiss Notice
We have just posted about our product policy for XF2.
Click HERE to view it.

Forum Sales No Answer Payment error log

Discussion in 'Add-Ons Support' started by FedericoGB25, Oct 24, 2018.

  1. FedericoGB25

    FedericoGB25 New Member

    Joined:
    Jul 25, 2018
    Messages:
    19
    Likes Received:
    1
    Adress:
    Country:
    Location on Map:
    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 :)
     
  2. MtoR

    MtoR Freaky Coder
    Staff Member

    Joined:
    Nov 14, 2015
    Messages:
    4,626
    Likes Received:
    726
  3. FedericoGB25

    FedericoGB25 New Member

    Joined:
    Jul 25, 2018
    Messages:
    19
    Likes Received:
    1
    Adress:
    Country:
    Location on Map:
    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.
     
  4. MtoR

    MtoR Freaky Coder
    Staff Member

    Joined:
    Nov 14, 2015
    Messages:
    4,626
    Likes Received:
    726
    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
     
  5. FedericoGB25

    FedericoGB25 New Member

    Joined:
    Jul 25, 2018
    Messages:
    19
    Likes Received:
    1
    Adress:
    Country:
    Location on Map:
    Am I able to permit to all users to sell in the forum with its PayPal email?
     
  6. MtoR

    MtoR Freaky Coder
    Staff Member

    Joined:
    Nov 14, 2015
    Messages:
    4,626
    Likes Received:
    726
    Yes of course, that's a category configuration
     
  7. FedericoGB25

    FedericoGB25 New Member

    Joined:
    Jul 25, 2018
    Messages:
    19
    Likes Received:
    1
    Adress:
    Country:
    Location on Map:
    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
     
  8. MtoR

    MtoR Freaky Coder
    Staff Member

    Joined:
    Nov 14, 2015
    Messages:
    4,626
    Likes Received:
    726
    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.
     
  9. FedericoGB25

    FedericoGB25 New Member

    Joined:
    Jul 25, 2018
    Messages:
    19
    Likes Received:
    1
    Adress:
    Country:
    Location on Map:
    upload_2018-10-27_14-2-2.png

    Node configuration:
    upload_2018-10-27_14-3-11.png
     
  10. MtoR

    MtoR Freaky Coder
    Staff Member

    Joined:
    Nov 14, 2015
    Messages:
    4,626
    Likes Received:
    726
    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
     
  11. FedericoGB25

    FedericoGB25 New Member

    Joined:
    Jul 25, 2018
    Messages:
    19
    Likes Received:
    1
    Adress:
    Country:
    Location on Map:
    I have set another Email on product selling, the error is: "We couldn't initialize the communication with Paypal, please contact our staff."
     
  12. MtoR

    MtoR Freaky Coder
    Staff Member

    Joined:
    Nov 14, 2015
    Messages:
    4,626
    Likes Received:
    726
    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.
     
  13. FedericoGB25

    FedericoGB25 New Member

    Joined:
    Jul 25, 2018
    Messages:
    19
    Likes Received:
    1
    Adress:
    Country:
    Location on Map:
    I have just disabled Percentage on sale, I have tried to sell in EUR, but it gived me same error
     
  14. MtoR

    MtoR Freaky Coder
    Staff Member

    Joined:
    Nov 14, 2015
    Messages:
    4,626
    Likes Received:
    726
    I would need ftp access to check.
     
  15. FedericoGB25

    FedericoGB25 New Member

    Joined:
    Jul 25, 2018
    Messages:
    19
    Likes Received:
    1
    Adress:
    Country:
    Location on Map:
    Okay, take me a minute
     
  16. MtoR

    MtoR Freaky Coder
    Staff Member

    Joined:
    Nov 14, 2015
    Messages:
    4,626
    Likes Received:
    726
    Oh right with a user account that can buy the resource.
    Please send me the info per PM.
     
  17. MtoR

    MtoR Freaky Coder
    Staff Member

    Joined:
    Nov 14, 2015
    Messages:
    4,626
    Likes Received:
    726
    Ok investigated.
    The exact error is that there is an authentication error, so I assume you incorrectly set the API data.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice