From b955b18bdd4c00ef04766d4b0942ed6146261031 Mon Sep 17 00:00:00 2001 From: Michel Moraes Date: Fri, 12 Oct 2018 19:22:47 +0200 Subject: [PATCH] Adding variable to .env and fixing issue --- template-tickets.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/template-tickets.php b/template-tickets.php index 688a7c9..d0d755b 100644 --- a/template-tickets.php +++ b/template-tickets.php @@ -5,8 +5,10 @@ use Automattic\WooCommerce\Client; +$host = getenv('HOST'); + $woocommerce = new Client( - 'http://ticketbrazil.test', + $host, 'ck_8db54871486ec2f920fbc42f646cc865ea3106f4', 'cs_60b1d1958cb781b502983b03875442a8a9ca4006', [