This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| Items = ( | |
| { | |
| Amount = 0; | |
| CurrencyId = 643; | |
| DenyManualExecution = 0; | |
| HasSchedule = 0; | |
| IsReadonly = 0; | |
| IsVerified = 0; | |
| MasterField = 4307119468; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| enum NetworkManagerError: String { | |
| case Unknown = "UNKNOWN" | |
| case AgentExternalIdError = "AGENT_EXTERNAL_ID_ERROR" | |
| case AgentIdNotFound = "AGENT_ID_NOT_FOUND" | |
| case AgentIsNotActive = "AGENT_IS_NOT_ACTIVE" | |
| case AgentKeyExpired = "AGENT_KEY_EXPIRED" | |
| case AgentPaymentCodeError = "AGENT_PAYMENT_CODE_ERROR" | |
| case AgentPaymentCodeTypeError = "AGENT_PAYMENT_CODE_TYPE_ERROR" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| "Проверьте соединение с интернет" = "Check your internet connection"; | |
| "Неизвестная ошибка: %d" = "Unknown error: %d"; | |
| "Ошибка" = "Error"; | |
| "Дэшборд" = "Dashboard"; | |
| "Счета" = "Invoices"; | |
| "Выписка" = "Statement"; | |
| "Вывод" = "Withdrawal"; | |
| "Настройки" = "Settings"; | |
| "В разработке" = "Under development"; | |
| "Для магазинов" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| var messageToSign = string.Format("{0}{1}{2}{3}", urlToSign,merchantId, timestamp, body); | |
| public static string CreateMerchantSign(string message) | |
| { | |
| byte[] data = Encoding.UTF8.GetBytes(message); | |
| byte[] binaryKey = Encoding.UTF8.GetBytes(MerchantSignatire); | |
| return Convert.ToBase64String(MD5.Create().ComputeHash(Union(data, binaryKey))); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //задаю все значения | |
| let merchantId = 191238281216 | |
| let timestamp: String = "2015-06-22T16:10:08" | |
| let merchantKeyForMD5 = "6d306b6375724d664e556b4774397070626752354434753955617c" | |
| let sign = Signature(urlToSign: "https://wl.walletone.com/w1/invoicingapi/invoices/", | |
| jsonString: "{\"MerchantUserId\":191238281216,\"Amount\":2.91,\"CurrencyId\":643,\"PaymentTypeId\":\"YandexMoneyRUB\",\"OrderId\":\"GQYOE-MJNPO-49623\"}", | |
| merchantKey: "6d306b6375724d664e556b4774397070626752354434753955617c", | |
| signatureAlgorithm: .MD5) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- NEW REQUEST --- | |
| POST https://wl.walletone.com/w1/invoicingapi/payments/54857384/process | |
| --- HTTP HEADERS --- | |
| [X-Wallet-UserId: 129213545437, Content-Type: application/json, X-Wallet-Signature: RnhA8+QWc4iLIi2jnX8Gjw==, X-Wallet-Timestamp: 2015-07-06T15:04:23, Accept: application/json] | |
| --- BODY --- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- NEW REQUEST --- | |
| POST https://wl.walletone.com/w1/invoicingapi/payments/55116057/process | |
| --- HTTP HEADERS --- | |
| [X-Wallet-UserId: 129213545437, Content-Type: application/json, X-Wallet-Signature: OHx5+HoyCQIPAIlEqOKFmw==, X-Wallet-Timestamp: 2015-07-10T09:14:41, Accept: application/json] | |
| --- BODY --- | |
| { | |
| Amount = 1; | |
| CurrencyId = 643; | |
| InvoiceAdditionalParams = { | |
| "WMI_FAIL_URL" = "http://bespalown.ru/fail"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| typedef NS_ENUM(NSInteger, UserAttributeTypeId) | |
| { | |
| UserAttributeTypeIdNone, | |
| UserAttributeTypeIdAbsMainBankAccountId, // Основной счет в АБС клиента | |
| UserAttributeTypeIdAccountantEmail, // AccountantEmail | |
| UserAttributeTypeIdAccountantPhoneNumber, // Номер телефона бухгалтера | |
| UserAttributeTypeIdAllowWithdrawForBusiness,// Разрешен ли вывод для юридического лица | |
| UserAttributeTypeIdAvatar, // URL аватара | |
| UserAttributeTypeIdBirthDate, // Дата рождения |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $(function () { | |
| var checkoutWindow; | |
| var statusInterval; | |
| var timeoutInterval; | |
| var expired = false; | |
| var sec = 5; | |
| var intervalId = setInterval(function () { | |
| sec = sec - 1; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- NEW REQUEST --- | |
| POST http://wl.dev.walletone.com/1/checkout/invoicingapi/directDebitAccounts | |
| --- HTTP HEADERS --- | |
| ["X-Wallet-Timestamp": "2015-11-13T17:38:36", "X-Wallet-UserId": "191238281216", "Content-Type": "application/json; charset=utf-8", "X-Wallet-Signature": "IH8gqIhGLQvnpnPDM7B8dg==", "Accept": "application/json; charset=utf-8"] | |
| --- BODY --- | |
| { | |
| PaymentTypes = ( | |
| SberbankRUB, | |
| SberOnlineRUB | |
| ); |