I am having a problem adding invoice item on subscription and currently banging my head on the wall.
I've created an Invoice Item on stripe and I’d like the Invoice Item to be included on the recurring payment
Here’s my code, it adds an invoice item on first invoice but not on the next invoice.
$new_customer = Stripe_Customer::create(array(
'card' => $card,
'email' => $email,)
);
Stripe_InvoiceItem::create(array(
'customer' => $new_customer['id'],
'amount' => $additiona_charges,
'currency' => 'gbp',
'description' => 'Addtional Cities'
));
$new_customer->updateSubscription(array('plan' => $selected_plan, 'prorate' => true));
On my current set-up. I have additional custom charges based on customer selection upon subscription thats way I need to add additional charges on recurring payment.
Its something like this
Plan
1 Cookie - 99GBP / Per month
2 Cookies - 199GBP / Per month
3 Cookies - 300GBP / Per month
Additional Charges - Invoice Items
-With Candle - +20GBP // must be included on recurring payment.
-With Icecream - +26GBP // must be included on recurring payment.
-With Cheese - +28GBP // must be included on recurring payment.
-With Ketchup - +30 // must be included on recurring payment.
-With Poison (for your X) - +50 // must be included on recurring payment.
I hope someone could help. Thanks so much
Cheers Kenn