File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 33 "description" : " Mock of Stripe's HttpClient which can be used in testing purposes in order to test your code and not to perform actual HTTP requests" ,
44 "type" : " library" ,
55 "license" : " MIT" ,
6- "version" : " 1.2.1 " ,
6+ "version" : " 1.2.2 " ,
77 "php" : " >=7.4" ,
88 "autoload" : {
99 "psr-4" : {
Original file line number Diff line number Diff line change @@ -203,7 +203,9 @@ public function getUpcomingInvoice(array $params): Invoice
203203 $ invoice = self ::create ('' , ['customer ' => $ params ['customer ' ]]);
204204 $ lines = new Collection ();
205205
206- foreach ($ params ['invoice_items ' ] ?? [] as $ invoiceItemData ) {
206+ $ items = $ params ['invoice_items ' ] ?? $ params ['subscription_items ' ] ?? [];
207+
208+ foreach ($ items as $ invoiceItemData ) {
207209 if (array_key_exists ('price ' , $ invoiceItemData )) {
208210 $ invoiceItemData ['price ' ] = EntityManager::retrieveEntity ('price ' , $ invoiceItemData ['price ' ]);
209211 }
You can’t perform that action at this time.
0 commit comments