Sachin Patidar
Sachin Patidar

Reputation: 11

Stripe namespace giving error in php

I have used php library for stripe payment, When I call the charge page it gives 500 internal server error by this namespace errors and also the require init.php giving error.

My server PHP Version 5.2.17

SO Please suggest me how to solve this problem..

https://i.sstatic.net/c05Hr.png

Upvotes: 1

Views: 481

Answers (1)

koopajah
koopajah

Reputation: 25552

The latest release of Stripe's PHP bindings (2.*) require you to have PHP 5.3.3 or later on your server as explained here. Since you're on PHP 5.2.17 you'd need to either:

  1. Use the legacy version of the bindings (1.18.0)
  2. Upgrade the version of PHP on your server to at least 5.3.3

Upvotes: 1

Related Questions