samples.md in synapse_payments-0.6.4 vs samples.md in synapse_payments-0.7.0
- old
+ new
@@ -136,10 +136,13 @@
```
#### Attach photo ID or another file type
```ruby
-response = user_client.attach_file(full_file_path)
+file_contents = File.read('image.png')
+encoded_file = "data:image/png;base64,#{Base64.encode64(file_contents).gsub(/\n/, '')}"
+
+user_client.update(doc: { attachment: encoded_file })
```
#### Add a bank account
```ruby