Commit b8e33522 authored by Noe Nieto's avatar Noe Nieto 💬

Add timeout parameter for WooCommenrce API

parent c4a4fff7
Pipeline #8496 canceled with stage
......@@ -45,6 +45,7 @@ WOO_CART_5000 = True
WOO_CART_5999 = True
WOO_CART_BILLING_PATH = add_to_cart
WOO_CART_THANKS_PATH = get-started
WOO_API_TIMEOUT = 30
OVPN_HOSTNAME=ssh.example.com
OVPN_PORT=22
......
......@@ -171,6 +171,7 @@ WOO_VERSION = config("WOO_VERSION")
WOO_QUERY_STRING_AUTH = config("WOO_QUERY_STRING_AUTH", cast=bool) # required for OAuth over HTTPS
WOO_CONSUMER_KEY = secret_config("WOO_CONSUMER_KEY")
WOO_CONSUMER_SECRET = secret_config("WOO_CONSUMER_SECRET")
WOO_API_TIMEOUT = config("WOO_API_TIMEOUT", 5)
#
# WOOCOMMERCE CART
......
......@@ -39,6 +39,7 @@ def get_woo_connection():
wp_api=settings.WOO_WP_API,
version=settings.WOO_VERSION,
query_string_auth=settings.WOO_QUERY_STRING_AUTH,
timeout=settings.WOO_API_TIMEOUT
)
......
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