#manal_37518
1 messages ยท Page 1 of 1 (latest)
Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- manal-error, 18 hours ago, 7 messages
- manal_37518, 2 days ago, 4 messages
๐ happy to help
would you mind sharing your code please?
public function registerSuccessPage(RegisterSuccessPageRequest $request): Factory|View
{
$stripe = new StripeClient(config('services.stripe.secret'));
$payment = $stripe->paymentIntents->retrieve(
$request->payment_intent, ['expand' => ['payment_method']]
);
// $user = User::where('stripe_id',$payment->customer)->whereNull('payment_completed_at')->firstOrFail();
if($payment->status === StripePaymentIntent::STATUS_SUCCEEDED){
return view('auth.success',compact('payment'));
} the part where we have $payment = $stripe->paymentIntents->retrieve(
this means that the $request->payment_intent is null
or whitespace
you need to debug in your code to see why this is happening
thank you