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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b55706200b4eaedc861cc58e6af36deb2d41b7bd
4
- data.tar.gz: 0dcb3368a4a6be1b0222869a0d1c634dcabebf86
3
+ metadata.gz: f3ea47e7d32ce4b19ca6cae68f5a60ea9f02bc5f
4
+ data.tar.gz: f9237d82afd7aa50e6178491b2b4aaa6b1fd96c9
5
5
  SHA512:
6
- metadata.gz: 073670f236d5f1a298d7fc85c329a2f765ca795f629b387c0473448922491a07c89b9b0300142defbcfc9896b62a27c1944e9d829c6e0f77c319f0633e0e2140
7
- data.tar.gz: 701f67d9475cdc078d4f0c38f2f1fdd35996184e80ea71141dcf7e6ef7f91c597b96ac041d935f56d71036bf8d9c6ac089f3b219b73e141bcef6760a43197a84
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 = "4444444444444448"
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
@@ -14,7 +14,7 @@ module YandexKassa
14
14
 
15
15
  private
16
16
 
17
- attr_reader :error_url, :success_url, :response_format, :destination_card_number
17
+ attr_reader :error_url, :success_url, :response_format, :destination_card_number, :url
18
18
 
19
19
  def request_params
20
20
  {
@@ -1,3 +1,3 @@
1
1
  module YandexKassa
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yandex_kassa
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Evgeniy Burdaev