#manal_37518

1 messages ยท Page 1 of 1 (latest)

static inletBOT
#

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.

cunning token
#

๐Ÿ‘‹ happy to help

lilac patrol
#

hi thank you

#

i m not sure why i have this error it is the same code i used before

cunning token
#

would you mind sharing your code please?

lilac patrol
cunning token
#

not all of it

#

just the part that is failing

lilac patrol
#

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(
cunning token
#

this means that the $request->payment_intent is null

#

or whitespace

#

you need to debug in your code to see why this is happening

lilac patrol
#

thank you

static inletBOT