|  | @@ -40,9 +40,9 @@ | 
                                                    
                                                        |  |  |  block discarded – undo | 
                                                                                                                                                                                                                    
                                                            | 40 | 40 |   | 
                                                                                                            
                                                            | 41 | 41 |              try { | 
                                                                                                            
                                                            | 42 | 42 |                  $invoice = $sub->latest_invoice; | 
                                                                                                            
                                                            | 43 |  | -                $invoice->pay([ 'expand' => [ 'payment_intent' ] ]); | 
                                                                                                            
                                                            |  | 43 | +                $invoice->pay(['expand' => ['payment_intent']]); | 
                                                                                                            
                                                            | 44 | 44 |              } catch (\Stripe\Exception\CardException $e) { | 
                                                                                                            
                                                            | 45 |  | -                $invoice = $subscription->api->client->invoices->retrieve($sub->latest_invoice, ['expand' => [ 'payment_intent'] ]); | 
                                                                                                            
                                                            |  | 45 | +                $invoice = $subscription->api->client->invoices->retrieve($sub->latest_invoice, ['expand' => ['payment_intent']]); | 
                                                                                                            
                                                            | 46 | 46 |              } | 
                                                                                                            
                                                            | 47 | 47 |          } else { | 
                                                                                                            
                                                            | 48 | 48 |              $invoice = $sub->latest_invoice; | 
                                                                                                                                                
                                         
                                        
                                            
                                                                                                    Please login to merge, or discard this patch.