Created
November 13, 2015 17:41
-
-
Save bespalown/567d923db20120891380 to your computer and use it in GitHub Desktop.
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 | |
); | |
Phone = 9196510456; | |
} | |
--- NEW RESPONSE --- | |
<NSHTTPURLResponse: 0x7fd6d546b2f0> { URL: http://wl.dev.walletone.com/1/checkout/invoicingapi/directDebitAccounts } { status code: 202, headers { | |
"Cache-Control" = "no-cache"; | |
Connection = "keep-alive"; | |
"Content-Length" = 210; | |
"Content-Type" = "application/json; charset=utf-8"; | |
Date = "Fri, 13 Nov 2015 17:38:37 GMT"; | |
Expires = "-1"; | |
"Keep-Alive" = "timeout=20"; | |
Pragma = "no-cache"; | |
Server = nginx; | |
"X-Wallet-Signature" = "gYwe9TB18K7PPuRzsNISgQ=="; | |
"X-Wallet-Timestamp" = "2015-11-13T17:38:37"; | |
} } | |
--- RESPONSE JSON --- | |
{ | |
Accounts = ( | |
{ | |
BalanceState = Sufficient; | |
Currency = 643; | |
Description = ""; | |
Id = 9196510456; | |
PaymentMethodId = SberbankNkoRUB; | |
PaymentTypeId = SberOnlineRUB; | |
Title = 9196510456; | |
Type = ""; | |
} | |
); | |
AccountsCount = 1; | |
} | |
--- NEW REQUEST --- | |
POST http://wl.dev.walletone.com/1/checkout/invoicingapi/invoices/ | |
--- HTTP HEADERS --- | |
["X-Wallet-Timestamp": "2015-11-13T17:38:37", "X-Wallet-UserId": "191238281216", "Content-Type": "application/json; charset=utf-8", "X-Wallet-Signature": "mMsXKKRh7d1j/vNxZeHx+A==", "Accept": "application/json; charset=utf-8"] | |
--- BODY --- | |
{ | |
Amount = "12.34"; | |
CurrencyId = 643; | |
InvoiceAdditionalParams = { | |
"WMI_FAIL_URL" = "http://www.myapt.org.uk/wp-content/uploads/2014/04/Participation-Fail.jpg"; | |
"WMI_SUCCESS_URL" = "http://www.video.apivid.com/public/multiple-product-1/images/payment-successful.png"; | |
}; | |
MerchantUserId = 191238281216; | |
OrderId = "iOS_SDK/20151113203821"; | |
PaymentTypeId = SberOnlineRUB; | |
} | |
--- NEW RESPONSE --- | |
<NSHTTPURLResponse: 0x7fd6d5300420> { URL: http://wl.dev.walletone.com/1/checkout/invoicingapi/invoices/ } { status code: 202, headers { | |
"Cache-Control" = "no-cache"; | |
Connection = "keep-alive"; | |
"Content-Length" = 429; | |
"Content-Type" = "application/json; charset=utf-8"; | |
Date = "Fri, 13 Nov 2015 17:38:37 GMT"; | |
Expires = "-1"; | |
"Keep-Alive" = "timeout=20"; | |
Pragma = "no-cache"; | |
Server = nginx; | |
"X-Wallet-Signature" = "FS6uzafqq0V+AuTA15H78w=="; | |
"X-Wallet-Timestamp" = "2015-11-13T17:38:37"; | |
} } | |
--- RESPONSE JSON --- | |
{ | |
CanSaveAsExternalAccount = 0; | |
Invoice = { | |
Amount = "12.34"; | |
CreateDate = "2015-11-13T17:38:37"; | |
CurrencyId = 643; | |
InvoiceId = 345279802343; | |
InvoiceStateId = Created; | |
Payment = { | |
CreateDate = "2015-11-13T17:38:37.49"; | |
PaymentCode = 345279802343; | |
PaymentCodeType = InvoiceId; | |
PaymentId = 65375203; | |
PaymentStateId = Created; | |
PaymentTypeId = SberOnlineRUB; | |
UpdateDate = "2015-11-13T17:38:37.49"; | |
}; | |
UpdateDate = "2015-11-13T17:38:37"; | |
}; | |
} | |
--- NEW REQUEST --- | |
POST http://wl.dev.walletone.com/1/checkout/invoicingapi/payments/65375203/process | |
--- HTTP HEADERS --- | |
["X-Wallet-Timestamp": "2015-11-13T17:38:37", "X-Wallet-UserId": "191238281216", "Content-Type": "application/json; charset=utf-8", "X-Wallet-Signature": "Of97YGdoF02vKckIgO/XQA==", "Accept": "application/json; charset=utf-8"] | |
--- BODY --- | |
{ | |
AuthData = { | |
AccountId = 9196510456; | |
}; | |
} | |
--- NEW RESPONSE --- | |
<NSHTTPURLResponse: 0x7fd6d52ac950> { URL: http://wl.dev.walletone.com/1/checkout/invoicingapi/payments/65375203/process } { status code: 202, headers { | |
"Cache-Control" = "no-cache"; | |
Connection = "keep-alive"; | |
"Content-Length" = 348; | |
"Content-Type" = "application/json; charset=utf-8"; | |
Date = "Fri, 13 Nov 2015 17:38:39 GMT"; | |
Expires = "-1"; | |
"Keep-Alive" = "timeout=20"; | |
Pragma = "no-cache"; | |
Server = nginx; | |
"X-Wallet-Signature" = "C1tpSQOznY2cz8UL1r/5lg=="; | |
"X-Wallet-Timestamp" = "2015-11-13T17:38:39"; | |
} } | |
--- RESPONSE JSON --- | |
{ | |
Authorization = { | |
AuthType = PayerConfirmation; | |
PayerConfirmationType = SmsUssd; | |
}; | |
Payment = { | |
Amount = "12.34"; | |
CreateDate = "2015-11-13T17:38:37.49"; | |
CurrencyId = 643; | |
PaymentCode = 345279802343; | |
PaymentCodeType = InvoiceId; | |
PaymentId = 65375203; | |
PaymentStateId = Processing; | |
PaymentTypeId = SberOnlineRUB; | |
UpdateDate = "2015-11-13T17:38:37.49"; | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment