-
Notifications
You must be signed in to change notification settings - Fork 18
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
Problem with repeat of payments #19
Comments
I have exactly the same problem |
In the
Should be unique instead, not deterministic as above:
Because PayU's order != Sylius payment id To everybody, to fix this you have to decorate this service and remove this unnecessary <?php
declare(strict_types=1);
namespace App\Payment\PayU;
use BitBag\SyliusPayUPlugin\Action\ConvertPaymentAction;
use Payum\Core\Action\ActionInterface;
use Payum\Core\GatewayAwareInterface;
use Payum\Core\GatewayAwareTrait;
use Payum\Core\Request\Convert;
final class ConvertPaymentActionDecorator implements ActionInterface, GatewayAwareInterface
{
use GatewayAwareTrait;
private $action;
public function __construct(ConvertPaymentAction $action)
{
$this->action = $action;
}
/**
* @param Convert $request
*/
public function execute($request): void
{
$this->action->execute($request);
$details = $request->getResult();
unset($details['extOrderId']);
$request->setResult($details);
}
public function supports($request): bool
{
return $this->action->supports($request);
}
} and register this as a service to decorate the original action:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have a problem with payments. If I've been redirect to PayU and left this page (for example closing browser tab) and then try repeat payment in user panel I get error 500 with this message:
Has anyone had this problem or knows how to fix it?
The text was updated successfully, but these errors were encountered: