/home/techb158/immovalet.com/vendor/laravel/cashier/src/Http/Controllers
Edit: /home/techb158/immovalet.com/vendor/laravel/cashier/src/Http/Controllers/PaymentController.php (1593B)
middleware(VerifyRedirectUrl::class);
}
/**
* Display the form to gather additional payment verification for the given payment.
*
* @param string $id
* @return \Illuminate\Contracts\View\View
*/
public function show($id)
{
$payment = new Payment(Cashier::stripe()->paymentIntents->retrieve(
$id, ['expand' => ['payment_method']])
);
return view('cashier::payment', [
'stripeKey' => config('cashier.key'),
'amount' => $payment->amount(),
'payment' => $payment,
'paymentIntent' => Arr::only($payment->asStripePaymentIntent()->toArray(), [
'id', 'status', 'payment_method_types', 'client_secret',
]),
'paymentMethod' => (string) request('source_type', optional($payment->payment_method)->type),
'errorMessage' => request('redirect_status') === 'failed'
? 'Something went wrong when trying to confirm the payment. Please try again.'
: '',
'customer' => $payment->customer(),
'redirect' => url(request('redirect', '/')),
]);
}
}