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

[Redsys - Bundle] Send parameters #58

Closed
jmartos89 opened this issue Mar 14, 2016 · 1 comment
Closed

[Redsys - Bundle] Send parameters #58

jmartos89 opened this issue Mar 14, 2016 · 1 comment

Comments

@jmartos89
Copy link

Good morning everyone,

I have the system Redsys riding but I wonder if there is any way to send data to the request "payment/redsys/execute" and then to pick them up at the listener:

 public function onPaymentOrderLoad(PaymentOrderLoadEvent $paymentOrderLoadEvent)
 {
         $order = new Order();
         $order-> setAmount($amount);
  }

Where $amount would send as parameter to "payment/redsys/execute".

I think it's basic to send the amount on each request as well as an ID to identify which product is selling.

A greeting and thanks a lot.

@sangarbe
Copy link
Member

sangarbe commented May 8, 2019

It is not thought to work that way, you should use your own PaymentBridgeInterface implementation to provide payment transaction's details. Indeed, if you want to go on with your idea, you could use the RequestStack service to get the current request and get some query string parameters from it (not very safe in my opinion).

In any case, sorry becasue we haven't provided good documentation yet.

@sangarbe sangarbe closed this as completed May 8, 2019
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

2 participants