Comments (2)
Hola @cyberespia, lo que debes hacer es lo siguiente en el archivo wc-bac-payment.php irte a la linea de código #111, luego buscar el contenido de $payload agregar esta linea luego de cualquier asignación de payload:
"redirect" => "http://cpymes.com.aa/ruddy/paymentvalidator.php",
Me confirmas si te funciona.
Saludos
from bac-woocommerce-plugin.
Estimado, agregue el parametro en $payload
:
"redirect" => "http://testsite.com/paymentvalidator.php",
Con ello ya me funciona en BROWSER REDIRECT como el banco quiere, el body del $response
me devuelve correctamente los parámetros de respuesta del banco:
[body] => https://testsite.com/paymentvalidator.php?response=1&responsetext=SUCCESS&authcode=123456&transactionid=5062787706&avsresponse=&cvvresponse=N&orderid=9142&type=sale&response_code=100&username=13783068&time=1576096273&amount=11.00&hash=a5d8276d11041ead7ec3f390d1df6707
Pero en type="sale"
y con una tarjeta real, no me funciona el body del $response
me devuelve un código HTML, aqui dejo lo que el contenido de $response
:
Array
(
[headers] => Requests_Utility_CaseInsensitiveDictionary Object
(
[data:protected] => Array
(
[date] => Fri, 13 Dec 2019 16:38:02 GMT
[server] => Apache
[x-gw-session-id] => 8d4bbf45eabe4a5edac4aeba06cb8753
[content-length] => 1175
[content-type] => text/html; charset=UTF-8
)
)
[body] => <HTML><HEAD><SCRIPT Language="Javascript">function onLoadHandler(){document.frmLaunchACS.submit();}</SCRIPT></HEAD><body onLoad="onLoadHandler();"><br><br><br><br><center><FORM name="frmLaunchACS" method="Post" action="https://0eaf.cardinalcommerce.com/EAFService/jsp/v1/redirect"><input type=hidden name="PaReq" value="P.02c473b41ce5b88887fc8936601d76171ef6ef34e10d1f0472e21e0c4a725c3d10b4d051fb***"><input type=hidden name="TermUrl" value="https://credomatic.compassmerchantsolutions.com/api/transact.php?username=user11&APISID=8d4bbf45eabe4a5edac8753¢inel_transaction_id=mURX2oj4BDd977pRFP30&cardholder_auth_key=745701d7f2f1b3ffedddc72d16c1x"><input type=hidden name="MD" value="none"><noscript> <br><br> <center> <font color="red"> <h1>Processing your Payer Authentication Transaction</h1> <h2>JavaScript is currently disabled or is not supported by your browser.<br></h2> <h3>Please click Submit to continue the processing of your transaction.</h3> </font> <input type="submit" value="Submit"> </center> </noscript> </FORM></center></BODY></HTML>
[response] => Array
(
[code] => 200
[message] => OK
)
.
.
.
[status_code] => 200
[protocol_version] => 1.1
[success] => 1
[redirects] => 0
[url] => https://credomatic.compassmerchantsolutions.com/api/transact.php
[history] => Array
.
.
.
Entonces en modo producción me devuelve eso y no puedo obtener los parámetros. (El $response en vez de contener los parámetros, contienen código HTML
Algunas sugerencia de lo que puede estar pasando?
from bac-woocommerce-plugin.
Related Issues (6)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bac-woocommerce-plugin.