Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Given payload caused a 422 error. #30

Open
ehsanwwe opened this issue Jan 24, 2024 · 1 comment
Open

Given payload caused a 422 error. #30

ehsanwwe opened this issue Jan 24, 2024 · 1 comment

Comments

@ehsanwwe
Copy link

on this code

Route::get('/initiate-payment', function(Request $request) {

// Amounts are in IRR

$payment = Payment::create(['amount' => 10000]);

return redirect($payment->url);

});

Route::get('/panel/paymentResult ', function(Request $request){

if(Payment::verifyFromRequest($request)){

    return $request->all();

    return 'Success!';

}

else {

    return 'Failed!';

}

});

@ehsanwwe
Copy link
Author

کشف کردم ایراتون تو file رید می هست

  • تو انوایرون منت یادتون رفت VANDAR_CALLBACK_URL رو بنویسید

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant