Error with Paygates

Discussion in '[bd] Paygates' started by samforbis, Apr 20, 2016.

  1. samforbis

    samforbis New Member

    Hi:

    I recently installed Paygates to get away from PayPal and start using Stripe. Unfortunately, I am having some issues. Everything works fine until the final moments of the transaction - when Stripe's dialogue box turns green, shows the "check" mark as if the payment was accepted, and then my site redirects to a page that says this:
    upload_2016-4-19_23-53-33.png

    I have tried this in both "test" mode with the test Stripe credit card information and in live mode with my own credit card, and both failed. My Stripe account is fully activated. I am unsure what to do at this point, and I'm fairly certain that it's a problem with the server that's hosting the site, but how can I be sure?

    Any help would be much appreciated, as I need payments to work for the upkeep of my site.
     
  2. xfrocks

    xfrocks XenForo rocks!
    Staff Member

    What is the url of that page? Also, did your card get charged?
     
  3. samforbis

    samforbis New Member

    The URL was /misc/stripe - and as far as I know, no, my card did not get charged - I checked my Stripe dashboard and it did not show any transactions. I'll have to wait a bit for it to post on my statement as some other purchases I made earlier today still have not shown up on my card's statement yet, but since Stripe didn't show any completed transactions I assume that it has not charged.
     
  4. samforbis

    samforbis New Member

    Update:

    I had neglected to update my "Board URL" in the XenForo options to show https:// instead of http:// - I just got the certificate yesterday and had neglected to update that. Now, instead of throwing the error above, it produces a 500 Internal Server error and this is in my XenForo error log:

    Code:
    ErrorException: Fatal Error: Call to undefined function Stripe\Util\mb_detect_encoding() - library\bdPaygateStripe\3rdparty\lib\Util\Util.php:118
    
    Stack Trace:
    #0 [internal function]: XenForo_Application::handleFatalError()
    #1 {main}
    
    Request State:
    array(3) {
      ["url"] => string(40) "https://www.forbisgaming.com/misc/stripe"
      ["_GET"] => array(0) {
      }
      ["_POST"] => array(10) {
        ["itemId"] => string(24) "addm_donation|1|55a89|36"
        ["cents"] => string(3) "500"
        ["currency"] => string(3) "usd"
        ["recurringInterval"] => string(0) ""
        ["recurringUnit"] => string(0) ""
        ["_xfToken"] => string(8) "********"
        ["redirect"] => string(161) "https://www.forbisgaming.com/bdpaygate/callback.php?p=stripe&returnUrl=https%3A%2F%2Fwww.forbisgaming.com%2Fdonations%2Fmonthly-upkeep.1%2Fcampaign%3Fsuccess%3D1"
        ["stripeToken"] => string(28) "tok_182S7FDgmH6y6qrG8gOXrtyX"
        ["stripeTokenType"] => string(4) "card"
        ["stripeEmail"] => string(23) "<removed for security>"
      }
    }
    Does this help at all? Any ideas?
     
  5. samforbis

    samforbis New Member

    Another update:

    I fixed it.

    Since I'm running on Windows, and I'm hosting myself, I had just neglected to uncomment the necessary libraries in my php.ini file. I also had to set a certificate path for cURL so that it could authenticate with Stripe.
     
Loading...