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
Copy file name to clipboardExpand all lines: docs/getting-started.mdx
+7-10Lines changed: 7 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -82,25 +82,22 @@ Please note that this example uses the `SERVICES_API_URL` environment variable.
82
82
83
83
As a test initial request, you can use a request to the location service by IP address. It does not require authorization.
84
84
85
-
To begin with, you should download the generated client for this service, unpack it and copy it to the `src/services` folder.
86
-
87
-
// link to file that can be downloaded
88
-
Client for location service
85
+
To begin with, you should install or download the [generated client](https://buf.build/linq/linq/sdks) for this service.
89
86
90
87
Below is an example of using a client to call the necessary methods on the service, in this case to obtain information about the current location and a flag that indicates whether access is allowed or not.
Copy file name to clipboardExpand all lines: docs/modules/location-checks.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,7 @@ Checking the location using the user's coordinates is carried out to ensure the
15
15
16
16
## IP verification
17
17
18
-
To check access over IP, the `RestrictionsService` service is used, which provides the `isAccessAllowed` method
18
+
To check access over IP, the [RestrictionsService](https://buf.build/linq/linq/docs/main:linq.geo.restrictions.v2#linq.geo.restrictions.v2.RestrictionsService) service is used, which provides the [IsAccessAllowed](https://buf.build/linq/linq/docs/main:linq.geo.restrictions.v2#linq.geo.restrictions.v2.RestrictionsService.IsAccessAllowed) method
19
19
20
20
<!-- ### List of countries and regions where transactions are restricted
To check access to operations based on user coordinates, the LocationService service and the isOperationAllowed method are used.
47
+
To check access to operations based on user coordinates, the [LocationService](https://buf.build/linq/linq/docs/main:linq.geo.operations.v1#linq.geo.operations.v1.LocationService) service and the [IsOperationAllowed](https://buf.build/linq/linq/docs/main:linq.geo.operations.v1#linq.geo.operations.v1.LocationService.isOperationAllowed) method are used.
To add money to user game account use [AccountsService#PutMoney](https://buf.build/linq/linq/docs/main:linq.money.accounts.v1#linq.money.accounts.v1.AccountsService.PutMoney) method
To withdraw money from user game account use [AccountsService#GetMoney](https://buf.build/linq/linq/docs/main:linq.money.accounts.v1#linq.money.accounts.v1.AccountsService.GetMoney) method
Withdrawal of funds from the account is carried out using a separate method, but in fact this operation generates an order, which is subsequently available in the transaction history.
46
79
@@ -54,7 +87,7 @@ Similar to the process of withdrawing funds, funds are also credited to a specif
54
87
55
88
```
56
89
// Some code
57
-
```
90
+
```-->
58
91
59
92
## Payment Transactions
60
93
@@ -156,7 +189,7 @@ To get updated with the lates usage examples, please check relevant documentatio
156
189
### Brazil Pix payment
157
190
To make the payment Pix code should be generated and displayed to the user.
158
191
159
-
To generate Pix code user's full name and email are required. They should be passed to us with help of [AuthUserService#SaveGameUser](https://buf.build/linq/linq/docs/main:linq.auth.user.v1#linq.auth.user.v1.AuthUserService.SaveGameUser) method. If the data won't be passed [NativePaymentsService#GetPixPaymentData](https://buf.build/linq/linq/docs/main:linq.money.payments.v1#linq.money.payments.v1.NativePaymentsService.GetPixPaymentData) request will be failed.
192
+
For anonymous users to generate Pix code user's full name and email are required. They should be passed to us with help of [AuthUserService#SaveGameUser](https://buf.build/linq/linq/docs/main:linq.auth.user.v1#linq.auth.user.v1.AuthUserService.SaveGameUser) method if not passed previously.
160
193
161
194
To create Pix order call [PaymentsService#CreatePixOrder](https://buf.build/linq/linq/docs/main:linq.money.payments.v1#linq.money.payments.v1.PaymentsService.CreatePixOrder). It accepts optional [params](https://buf.build/linq/linq/docs/main:linq.money.payments.v1#linq.money.payments.v1.PixRequest) - tax_id and address. Tax id is Brazilian CPF number (ask if validation rules are required). Address - country is 2-letter code of Brazil (BR), region is 2-letter code of Brazilian state (ask if list of states with their full names are required).
0 commit comments