area3studio
Forum Replies Created
-
To report that the problem has been found.
.
The problem :
At checkout SSL site was not getting the response NASP MoIP . With that request was pending at the store.
.
I wish to thank Claudio Sanches for help . He helped me in much of the analysis. Proving that the problem was not in the module.
.
If anyone is having the same problem with SSL in sandbox .
Claudio gave me these procedures to verify that the NASP POST is coming in the Store :1 ) In wp-config.php :
define (' WP_DEBUG ', true ) ; define (' WP_DEBUG_LOG ', true ) ; define (' WP_DEBUG_DISPLAY ' , false) ; @ ini_set ( ' display_errors ' , 0 ) ;2 ) In the functions.php of your theme , enter this function / action :
test_post_and_get function () { if ( isset ( $ _GET [' wc- api '] ) ) { error_log ( print_r ( array ( $ _GET , $ _POST ) , true) ) ; } }add_action ( ‘ init ‘, ‘ test_post_and_get ‘ ) ;
3 ) Make a checkout simulation order . And after check in wp-content/debug.log
If arrived this Array , mean MoIP sent the NASP. In my case in SSL was not getting this Array.[ 16 - Dec - 2013 00:45:22 ] Array ( [0] => Array ( [ wc- api ] = > WC_Moip_Gateway ) [1] = > Array ( [ id_transacao ] = > MD -134 [ value ] = > 10480 [ status_pagamento ] = > 6 [ cod_moip ] = > 190152 [ forma_pagamento ] = > 37 [ tipo_pagamento ] = > CartaoDeCredito [ plots ] = > 1 [ recebedor_login ] = > teste@gmail.com [ email_consumidor ] = > teste@gmail.com [ cartao_bin ] = > 400481 [ cartao_final ] = > 6448 [ cartao_bandeira ] = > Visa [ safe ] = > 350b7d98 - 712D - 4484 - 9e48 - 0ee13165b822 ) )Also check on your server if the NASP is coming. Again in my case, was not reaching the POST return.
209.134.54.213 – [ 15/Dec/2013 : 22:45:20 -0200 ] ” ? POST / wc- api = WC_Moip_Gateway HTTP/1.1 ” 200 1 ” – ” “Jakarta Commons-HttpClient/3.1 “.
conclusion :
MoIP said the sandbox environment using SSL is intermittent and does not occur in production this type of problem.Thanks !