Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typos in README.md #45

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 10 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -194,8 +194,8 @@ To set it up, add the following line of code somewhere in your project and make
*Swift*:

```swift
let secretKey = SecretKey(sanbox: "YOUR_SANDBOX_SECRET_KEY", production: "YOUR_PRODUCTION_SECRET_KEY") // (format of the key: "sk_XXXXXXXXXXXXXXXXXXXXXXXX")
goSellSDK.secretKey = secretKey // Secret key (format: "sk_XXXXXXXXXXXXXXXXXXXXXXXX")
let secretKey = SecretKey(sandbox: "YOUR_SANDBOX_SECRET_KEY", production: "YOUR_PRODUCTION_SECRET_KEY") // (format of the key: "sk_XXXXXXXXXXXXXXXXXXXXXXXX")
GoSellSDK.secretKey = secretKey // Secret key (format: "sk_XXXXXXXXXXXXXXXXXXXXXXXX")
```

*Objective-C*:
Expand Down Expand Up @@ -231,7 +231,9 @@ or
### Mode

SDK mode is a mode SDK is operating in, either **sandbox** or **production**.

```swift
GoSellSDK.mode = .sandbox
```
Use this property to test your integration with the sandbox transactions.

**WARNING:** Default value of this property is *production* which means your transaction are real transactions. Switch to *sandbox* while in development.
Expand All @@ -241,7 +243,11 @@ Use this property to test your integration with the sandbox transactions.
### Language

Localization language of the UI part of the SDK. This is locale identifier.

```swift
if let languageCode = Locale.current.languageCode, GoSellSDK.availableLanguages.contains(languageCode) {
GoSellSDK.language = languageCode
}
```
Make sure it consists only from 2 lowercased letters and is presented in the list of **availableLanguages** property of *goSellSDK* class.

**Notice:** Starting from *iOS 9* SDK user interface layout direction is based on the language you select, which means that if you would like to have it in Arabic language, the UI will be switched to RTL (right-to-left).
Expand Down