Replies: 3 comments
-
@Alicia-ls can you post the request values you receive on the $_GET variable? This exception is thrown when required data is missing from the bank response. |
Beta Was this translation helpful? Give feedback.
-
Estas son mis dos funciones, la primera para el form: public function bizum($id)
Y la segunda que comprueba los datos:
AQUÍ TODO OK
SE PARA JUSTO EN ESTE PUNTO, NUNCA LLEGO A RECIBIR NADA POR GET, ME SALTA EL ERROR
|
Beta Was this translation helpful? Give feedback.
-
On Redsys official docs, you'll find that notification is sent as a Maybe this could be the issue? Take a look at the official docs, the notification is a I haven't had a change to try Bizum yet, so I tested it to check everything is working fine and it worked for me. Take a look at this example: https://gist.github.com/dtorras/1b7bb59c7aafba50c60b5d41ac83aa6b Also, if you are using this on Laravel, remember to disable CSRF verification on the
|
Beta Was this translation helpful? Give feedback.
-
Hola buenas,
he usado el código para vincular con la pasarela de pago de redsys y todo genial sin problemas. Quiero también integrar bizum y quería saber si esta biblioteca está preparada para tratar los datos, de momento he modificado el código de esta forma para que aparezca la ventana de bizum:
$redsysRequest->createPaymentRequest(
amount: 2,
orderNumber: rand(1000, 1000000),
currency: Currency::EUR,
transactionType: TransactionType::Autorizacion,
requestParameters: new RequestParameters(
merchantUrl: route('comprobar', $user_id),
merchantName : $enterprise_name,
urlOk: route('comprobar', $user_id),
urlKo: route('comprobar', $user_id),
consumerLanguage: ConsumerLanguage::Auto->value,
payMethods: PayMethod::Bizum->value,
productDescription: $course_name,
),
);
Pero a la hora de comprobar el pago, me da error en este punto:
$redsysNotification->setParametersFromResponse($_GET);
y el error que me aparece en el navegador es este:
Creagia\Redsys\Exceptions\InvalidRedsysNotification
Redsys: invalid response from bank.
Espero puedan ayudarme, gracias.
Beta Was this translation helpful? Give feedback.
All reactions