radge Posted March 21, 2018 Share Posted March 21, 2018 Buenas , estoy intentando integrar el método de pago BIZUM en una tienda prestashop y para ello he instalado el addon de métodos de pago "redsys" y lo estoy modificando , para ello lo que he hecho es cojer el archivo redsys.php del módulo y lo he modificado por este código /* * HOOK V1.7 */ public function hookPaymentOptions($params) { if (! $this->active) { return; } if (! $this->checkCurrency ( $params ['cart'] )) { return; } $this->createParameter($params); $urlBizum = 'https://sis-t.redsys.es:25443/sis/realizarPago'; $newOption2 = new \PrestaShop\PrestaShop\Core\Payment\PaymentOption(); $newOption2->setCallToActionText ($this->l('Pago con Bizum' )) ->setAction ($urlBizum) ->setInputs([ 'Ds_SignatureVersion' => [ 'name' =>'Ds_SignatureVersion', 'type' =>'hidden', 'value' =>$this->version2, ], 'Ds_MerchantParameters' => [ 'name' =>'Ds_MerchantParameters', 'type' =>'hidden', 'value' =>$this->paramsBase64, ], 'Ds_Signature' => [ 'name' =>'Ds_Signature', 'type' =>'hidden', 'value' => $this->signatureMac, ], 'Ds_Merchant_PayMethods' => [ 'name' =>'Ds_Merchant_PayMethods', 'type' =>'hidden', 'value' => 'z', ], ]); $payment_options = [$newOption2]; return $payment_options; } El problema que tengo es que me sale la pantalla del TVP de redsys... y no la de bizum que espero. Gracias Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now