type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: Servlet.init() for servlet PhpJavaServ in /java/Java.inc on line 520
The code---->
Code: Select all
[syntax=php]<?php
$amount=10;
$trackid='111111111';
require_once("/java/Java.inc");
java_require('/home/zyx/public_html/Test/');
$pipe = new Java("Payment");
//$amount = 100;
$pipe->setCurrency("37756");
$pipe->setLanguage("USA");
$pipe->setAction("1");
$pipe->setResponseURL("https://www.xyz.in/intermediate.php");
$pipe->setErrorURL("https://www.xyz.in/failure.php");
$pipe->setResourcePath('/home/zyx/public_html/Test/');
$pipe->setAlias("26788");
$pipe->setAmt($amount);
$pipe->setTrackId($trackid);
echo $status = $pipe->performPaymentInitialization();
$payID = $pipe->getPaymentId();
$payURL = $pipe->getPaymentPage();
$urlToRedirect = $payURL . '?PaymentID=' . $payID;
echo $urlToRedirect;
//header('Location: '. $urlToRedirect);
$urlToRedirect="http://www.google.com/";
header('Location: '. $urlToRedirect);
?>
I dont know why I am getting this error plz help
Code: Select all
[syntax=php][syntax=php]