yandex_kassa 0.3.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +8 -8
- data/lib/yandex_kassa/store_card.rb +1 -1
- data/lib/yandex_kassa/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f3ea47e7d32ce4b19ca6cae68f5a60ea9f02bc5f
|
|
4
|
+
data.tar.gz: f9237d82afd7aa50e6178491b2b4aaa6b1fd96c9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 082b517f5dd8e46233e9caa8b1f79f3c3430412026e5fa105f73726393346dc1599089b65b4eb36b7ffeb8b3f5c56f545e135a27c7c2bee568d8e9f1a97a2629
|
|
7
|
+
data.tar.gz: b1cc55bbf7cb662595876d91a7886f100b4982ee225b384a5c118e699bc93bf1bdfed926c96f0a64fac1b6c6ab2f97a1b62a7692a590c7bf514326e2c94d1bd4
|
data/README.md
CHANGED
|
@@ -38,6 +38,7 @@ YandexKassa.configure do |config|
|
|
|
38
38
|
config.passphrase = "passphrase"
|
|
39
39
|
end
|
|
40
40
|
```
|
|
41
|
+
Doc for [Deposition requests](https://tech.yandex.ru/money/doc/payment-solution/payout/payments-docpage/)
|
|
41
42
|
|
|
42
43
|
**testDeposition:**
|
|
43
44
|
|
|
@@ -114,7 +115,7 @@ data = api.make_deposition do |request|
|
|
|
114
115
|
# => "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n<makeDepositionResponse clientOrderId=\"1\" status=\"3\" error=\"41\" processedDT=\"2016-03-23T12:52:53.087+03:00\" identification=\"anonymous\" />\r\n"
|
|
115
116
|
```
|
|
116
117
|
|
|
117
|
-
**Balance:**
|
|
118
|
+
[**Balance:**](https://tech.yandex.ru/money/doc/payment-solution/payout/balance-request-docpage/)
|
|
118
119
|
|
|
119
120
|
```ruby
|
|
120
121
|
balance_params = { dst_account: "410011234567", agent_id: "123123",client_order_id: 1 }
|
|
@@ -125,22 +126,21 @@ api.balance(balance_params)
|
|
|
125
126
|
Getting [card_synonym](https://tech.yandex.ru/money/doc/payment-solution/payout/bank-card-synonym-docpage/):
|
|
126
127
|
|
|
127
128
|
```ruby
|
|
128
|
-
url = https://demo-scrat.yamoney.ru/gates/card/storeCard
|
|
129
|
-
error_url = https://example.com/error_url
|
|
130
|
-
success_url = https://example.com/success_url
|
|
129
|
+
url = "https://demo-scrat.yamoney.ru/gates/card/storeCard"
|
|
130
|
+
error_url = "https://example.com/error_url"
|
|
131
|
+
success_url = "https://example.com/success_url"
|
|
131
132
|
demo_card_number = "4444444444444448"
|
|
132
133
|
|
|
133
|
-
store_card = StoreCard.new(
|
|
134
|
+
store_card = YandexKassa::StoreCard.new(
|
|
134
135
|
url: url,
|
|
135
136
|
error_url: error_url,
|
|
136
137
|
sucess_url: success_url,
|
|
137
138
|
response_format: "json",
|
|
138
|
-
demo_card_number
|
|
139
|
+
destination_card_number: demo_card_number
|
|
139
140
|
)
|
|
140
141
|
|
|
141
142
|
response = store_card.request
|
|
142
|
-
|
|
143
|
-
#=> "{\"storeCard\":{\"reason\":\"success\",\"skr_destinationCardCountryCode\":\"616\",\"skr_destinationCardSynonim\":\"mob64asbX5okWsURXB8QoYwYSwwZ.SC.201603\",\"skr_destinationCardType\":\"Visa\",\"skr_destinationCardPanmask\":\"444444******4448\"}}"
|
|
143
|
+
# => "{\"storeCard\":{\"reason\":\"success\",\"skr_destinationCardCountryCode\":\"616\",\"skr_destinationCardSynonim\":\"mob64asbX5okWsURXB8QoYwYSwwZ.SC.201603\",\"skr_destinationCardType\":\"Visa\",\"skr_destinationCardPanmask\":\"444444******4448\"}}"
|
|
144
144
|
```
|
|
145
145
|
|
|
146
146
|
## License
|
data/lib/yandex_kassa/version.rb
CHANGED