Answer the question
In order to leave comments, you need to log in
How to use idma/robokassa library in laravel?
Hello! Many who use laravel to work with Robokassa advised this library: https://github.com/idma/robokassa
I'm a little confused about how to use this library. Let's say the readme file on Github provides this example:
$payment = new \Idma\Robokassa\Payment(
'john_doe', 'password1', 'password2', true
);
$payment
->setInvoiceId($order->id)
->setSum($order->amount)
->setDescription('Payment for some goods');
// redirect to payment url
$user->redirect($payment->getPaymentUrl());
$user->redirect($payment->getPaymentUrl());
with return Redirect::to($payment->getPaymentUrl());
, but when redirecting, it redirects me to the main page of the robokassa with the specified parameters in the URL, but nothing happens. Answer the question
In order to leave comments, you need to log in
don't understand where the $order variable came from
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question