You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
4. Gradually migrate over to the new SDK by importing it from the `'square'` import.
107
107
108
+
## Environments
109
+
110
+
This SDK allows you to configure different environments or custom URLs for API requests. You can either use the predefined environments or specify your own custom URL.
111
+
112
+
### Environments
113
+
```ruby
114
+
require"square"
115
+
116
+
client =Square::Client.new(
117
+
base_url:Square::Environment::PRODUCTION
118
+
)
119
+
```
120
+
121
+
### Custom URL
122
+
```ruby
123
+
require"square"
124
+
125
+
client =Square::Client.new(
126
+
base_url:"https://custom-staging.com"
127
+
)
128
+
```
129
+
108
130
## Request And Response Types
109
131
110
132
The SDK exports all request and response types as Ruby classes. Simply require them with the
0 commit comments