0
我正在使用條紋來存儲客戶卡的人羣資金php腳本。 如果達到閾值,我被困在所有支持者的充電卡點上。在Stripe的api最大執行時間達到120秒後,在php腳本中使用循環會停止。我們如何在條紋上對大容量卡充電
<?php
include('system/stripelib/lib/Stripe.php');
Stripe::setApiKey(API);
//getting saved stripe Customer_id
$result= $this->db->query("select cus_id,amount from pledge where 1");
if($result->num_rows)
{
foreach($result->rows as $cus)
{
Stripe_Charge::create(array(
"amount" => $cus['amount']
"currency" => "usd",
"customer" => $cus['cus_id'],
"description" => "Charge for campaign"
));
}
}
?>
這可能是PHP的執行限制,而不是Stripe的。 – ceejayoz 2014-11-01 23:42:54