We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cccb826 commit f4dfe4cCopy full SHA for f4dfe4c
src/Concerns/ManagesInvoices.php
@@ -152,7 +152,7 @@ public function invoice(array $options = []): Invoice
152
return $invoice->chargesAutomatically() ? $invoice->pay($payOptions) : $invoice->send();
153
} catch (StripeCardException $exception) {
154
// Get the latest payment from the invoice payments...
155
- $stripeInvoice = $invoice->asStripeInvoice()->refresh(['expand' => ['payments']]);
+ $stripeInvoice = $invoice->refresh(['payments'])->asStripeInvoice();
156
157
$invoicePayments = $stripeInvoice->payments->data;
158
0 commit comments