Skip to content

Commit 9a91924

Browse files
Fixed oAuth signature for WP REST API
1 parent bbc2574 commit 9a91924

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

woocommerce/oauth.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def generate_oauth_signature(self, params, url):
7373
string_to_sign = "%s&%s&%s" % (self.method, base_request_uri, query_string)
7474

7575
consumer_secret = str(self.consumer_secret)
76-
if self.version == "v3":
76+
if self.version not in ["v1", "v2"]:
7777
consumer_secret += "&"
7878

7979
hash_signature = HMAC(

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy