We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 08c00f2 commit 73cc25eCopy full SHA for 73cc25e
README.rst
@@ -169,9 +169,12 @@ Create
169
170
.. code:: python
171
172
+ import hashlib
173
from pybutton import Client
174
175
client = Client('sk-XXX')
176
+
177
+ hashed_email = hashlib.sha256('user@example.com'.lower().strip()).hexdigest()
178
179
response = client.orders.create({
180
'total': 50,
@@ -181,8 +184,8 @@ Create
181
184
'btn_ref': 'srctok-XXX',
182
185
'customer': {
183
186
'id': 'mycustomer-1234',
- 'email_sha256': hashlib.sha256("user@example.com".lower().strip()).hexdigest()
- }
187
+ 'email_sha256': hashed_email,
188
+ },
189
})
190
191
print(response)
0 commit comments