I'm receiving the Stripe programming error:
catch (Stripe_InvalidRequestError $e)
I know it is because I added data to the Charge array. It works without the new data but not with it.
Here's the code and I don't see the error:
$charge = Stripe_Charge::create(array(
"amount" => $amount, // amount in cents, again
"currency" => "usd",
"source" => $token,
"address_line1" => $ad,
"address_city" => $ct,
"address_state" => $st,
"address_zip" => $zip,
"address_country" => "US",
"receipt_email" => $em,
"receipt_number" => $uid,
"name" => $fn . $ln,
"shipping" => 0,
"statement_descriptor" => "BCA Creative.com " . $prod_name,
"metadata[uid]"=>$uid,
"metadata[pid]"=>$pid,
"description" => $prod_name
)
);