Skip to content

Commit bc60a5e

Browse files
authored
Update payload format for initialization
1 parent a8260cc commit bc60a5e

1 file changed

Lines changed: 4 additions & 7 deletions

File tree

samples.md

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,16 @@
44
import os
55
from synapse_pay_rest import Client
66

7-
required = {
7+
args = {
88
'client_id': os.environ['TEST_CLIENT_ID'], # your client id
99
'client_secret': os.environ['TEST_CLIENT_SECRET'], # your client secret
1010
'fingerprint': 'user_fingerprint',
1111
'ip_address': '127.0.0.1', # user's IP
12+
'development_mode': True, # (optional) default False
13+
'logging': False # (optional) logs to stdout if True
1214
}
1315

14-
options = {
15-
'development_mode': True, # default False
16-
'logging': False # logs to stdout if True
17-
}
18-
19-
client = Client(**required, **options)
16+
client = Client(**args)
2017
```
2118

2219

0 commit comments

Comments
 (0)