paykassa 0.1.6 → 0.1.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/paykassa/pay.rb +4 -3
- data/lib/paykassa/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 549ba54de35ce291dd1e3dd71f6351ba300957474ca0886ecf6032fa41aaa991
|
4
|
+
data.tar.gz: 686d351cd9644adf2a9ec042404a5466319534ba263c2013692032973b94f33f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 68d1a068554da02bb2b70ef7ce5a73d885f5f57131094b06b104b61dd165d2c21175fc5317ea28fa846223adf437f1b3f9169281be54b556f302fe3766b98a9d
|
7
|
+
data.tar.gz: 8bd5aae30b84c14a7b748338f58e31a38e3155b04b029bbbd00c6d675731a52cc8372b7fddb6a307ab13d857ed952d94c63b307c76cb482038a0709a5c2dd086
|
data/lib/paykassa/pay.rb
CHANGED
@@ -3,6 +3,7 @@ require 'net/http'
|
|
3
3
|
class PaykassaPay
|
4
4
|
BASE_URL = "https://paykassa.app/api/0.5/index.php"
|
5
5
|
RATE_URL = "https://currency.paykassa.pro/index.php"
|
6
|
+
BASE_SCI_URI = 'https://paykassa.pro/sci/0.3/index.php'
|
6
7
|
CURRENCIES=[
|
7
8
|
"USD", "RUB", "BTC", "ETH", "LTC", "DOGE", "DASH", "BCH", "ZEC",
|
8
9
|
"XRP", "TRX", "XLM", "BNB", "USDT", "ADA", "EOS", "GBP", "EUR",
|
@@ -27,7 +28,7 @@ class PaykassaPay
|
|
27
28
|
ethereum_erc20: 32
|
28
29
|
}
|
29
30
|
def initialize(domain:, api_id:, api_key:, test: false)
|
30
|
-
@token =
|
31
|
+
@token = api_key
|
31
32
|
@_auth = {domain: domain, api_id: api_id, api_key: api_key, test: test}
|
32
33
|
end
|
33
34
|
def pay(amount: , shop: , currency: , system_name: , paid_commission: "shop", number:, tag:, priority:)
|
@@ -46,8 +47,8 @@ class PaykassaPay
|
|
46
47
|
def balance(shop: )
|
47
48
|
data = {
|
48
49
|
shop: shop,
|
49
|
-
pi_id: api_id,
|
50
|
-
api_key: api_key
|
50
|
+
pi_id: @_auth[:api_id],
|
51
|
+
api_key: @_auth[:api_key]
|
51
52
|
}
|
52
53
|
make_request("api_get_shop_balance", data, false)
|
53
54
|
end
|
data/lib/paykassa/version.rb
CHANGED