credit card test

require_once(‘./lib/Stripe.php’);
Stripe::setApiKey(“sk_test_BQokikJOvBiI2HlWgH4olfQ2”);

Stripe_Charge::create(array(
“amount” => 400,
“currency” => “usd”,
“card” => array(
“number” => “4242424242424242”,
“exp_month” => 10,
“exp_year” => 2015,
“cvc” => “314”
),
“description” => “Charge for test@example.com”
));