2014-10-19 74 views
0

我創建了一個客戶,並使用金額而不是計劃向該客戶收費。我查了他們的文檔,但不知道該怎麼做。誰能幫我下面的代碼,使用計劃和數量添加使用條紋的客戶

// create customer 
$customer = Stripe_Customer::create(array(
    "card" => $_POST['stripeToken'], 
    "description" => "This is testing mode", 
    "email" => "[email protected]", 
)); 


// Charge the Customer 
Stripe_Charge::create(array(
    "amount" => 3000, 
    "currency" => "usd", 
    "customer" => $customer->id) 
); 

回答

相關問題