Hello friends, I am trying to upload the certificates to bring the payments to production. I'm fine until I have to upload SERVER CERTIFICATE and it only allows me a .pem extension while the certificate delivered by Transbank is .crt. What can I do to test in production and start selling. I appreciate your fast response. @feliguez
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | upload-production-certificate-3132315-5.patch | 827 bytes | mnico |
Comments
Comment #2
mnico commentedHi, have you tried changing the file extension from .crt to .pem and uploading it?
If not working try to change the file src/Form/WebpayConfigForm.php from
to
Regards
Comment #3
Feliguez commentedThanks mnico, I changed it and it works!
I'm afraid with this solution introduced a bug into my certification environment because transbank uses two different extensions per environment. And also break my module on future updates. Thanks again, regards.
Comment #4
mnico commentedSo the best solution might be to allow both extensions. Solution that should come in the new version of the module.
I will try to upload a patch soon and I will ask you for help so you can test it, to see if it works in both environments.
Comment #5
mnico commentedHello, I attach the patch. Please tell me if with this you could continue using both environments.
Comment #6
Feliguez commentedHi, I'm trying to apply that patch but it's been skipped. I'm running the following code from Webpay root directory:
git apply -v upload-production-certificate-3132315-5.patchMy Terminal returns
Skipped patch 'src/Form/WebpayConfigForm.php'.when I execute that commandComment #7
mnico commentedWhat version of the module are you using? 8.x-2.0-beta1?
I have been able to apply the patch in version 8.x-2.0-beta1 and 8.x-2.0-dev, is it possible that you have other modifications applied?
Well, the patch only adds the ability to attach files with .pem and .crt extensions.
To the variable "client_certificate" also just in case.
Comment #9
mnico commentedWell the patch was applied so I will close this issue. I think you failed to apply the patch because you had already changed the code by my suggestions from the first comment.