Commit 9ed23334 by Angel MAS

redirect correct oxxo payments

parent 0c5685ff
...@@ -458,6 +458,7 @@ public function shipping() ...@@ -458,6 +458,7 @@ public function shipping()
$user->notify(new ResumenOrder($sale, $products, $client, $addres)); $user->notify(new ResumenOrder($sale, $products, $client, $addres));
$client->notify(new ResumenOrder($sale, $products, $client, $addres)); $client->notify(new ResumenOrder($sale, $products, $client, $addres));
//eturn $url_ficha;
return redirect() return redirect()
->route('main.shop') ->route('main.shop')
......
...@@ -94,7 +94,8 @@ $util = new Onestartup\Shop\Libs\Util(); ...@@ -94,7 +94,8 @@ $util = new Onestartup\Shop\Libs\Util();
var url = "{{Session::get('url_ficha')}}"; var url = "{{Session::get('url_ficha')}}";
swal("Pago pendiente", "Descarga tu ficha y llevala a pagar al lugar correspodiente", "warning") swal("Pago pendiente", "Descarga tu ficha y llevala a pagar al lugar correspodiente", "warning")
console.log(url); console.log(url);
window.open(url, '_blank'); var biper = url.replace(/amp;/g , "");
window.open(biper, '_blank');
}) })
</script> </script>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment