hosting - Hosted PHP application :: Error in Stripe Payment integration -


i have hosted php application , working fine except stripe payment integration in it.

can suggest error?

require_once('../../stripe/init.php');  \stripe\stripe::setapikey('sk_test_************');  $e="";  // credit card details submitted form $token = $_post['stripetoken'];  // create charge on stripe's servers - charge user's card try {     $charge = \stripe\charge::create(array(         "amount" => $stripe_amount, // amount in cents, again         "currency" => "cad",         "source" => $token,         "description" => "buy gift card"     )); } catch(\stripe\error\card $e) {     $e = "your card has been declined, please enter valid card"; } 

it's working fine on local machine, on hosting gives me error:

500 - internal server error. there problem resource looking for, , cannot displayed.


Comments

Popular posts from this blog

scala - 'wrong top statement declaration' when using slick in IntelliJ -

c# - DevExpress.Wpf.Grid.InfiniteGridSizeException was unhandled -

PySide and Qt Properties: Connecting signals from Python to QML -