mirror of
https://github.com/yawaflua/spworlds-csharp-library.git
synced 2026-02-04 02:34:13 +02:00
@@ -67,8 +67,11 @@ const url = await sp.InitPayment(
|
|||||||
```
|
```
|
||||||
ИЛИ
|
ИЛИ
|
||||||
```cs
|
```cs
|
||||||
PaymentData paymentData = JsonNode.Parse(Request.GetBody());
|
public async Task<IActionResult> GetCreatePaymentFunction([FromBody] PaymentData paymentData)
|
||||||
const url = await sp.InitPayment(paymentData);
|
{
|
||||||
|
const url = await sp.InitPayment(paymentData);
|
||||||
|
// Ваша логика
|
||||||
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
### Перевод АРов на другую карту
|
### Перевод АРов на другую карту
|
||||||
@@ -92,7 +95,7 @@ int balance = await sp.GetCardBalance();
|
|||||||
```cs
|
```cs
|
||||||
User user = await sp.GetUser("111111111111111111");
|
User user = await sp.GetUser("111111111111111111");
|
||||||
|
|
||||||
if (user.GetName() == "Mih4n")
|
if (user.Name == "Mih4n")
|
||||||
{
|
{
|
||||||
// ваша логика дааа
|
// ваша логика дааа
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user