Skip to content

Commit

Permalink
Update OmiseSDKClient.send callback with enum response (#55)
Browse files Browse the repository at this point in the history
  • Loading branch information
Wasith Theerapattrathamrong authored and pitiphong-p committed Oct 31, 2017
1 parent f418081 commit ff20027
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -184,10 +184,10 @@ Then initialize an `OmiseSDKClient` with your public key and send the request:

```swift
let client = OmiseSDKClient(publicKey: publicKey)
client.send(request) { [weak self] (token, error) in
client.send(request) { [weak self] (result) in
guard let s = self else { return }

// check `error` or send `token` to your server.
// switch result { }
}
```

Expand Down

0 comments on commit ff20027

Please sign in to comment.