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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 709ef2738d1e012bfd5e99b0865251589916201699666502b5e41b71cdc2e14f
4
- data.tar.gz: 30955e4b2a48aea5ef471d71e4d4cdeef13c547a259808f3c0f0b075a7e589b3
3
+ metadata.gz: 549ba54de35ce291dd1e3dd71f6351ba300957474ca0886ecf6032fa41aaa991
4
+ data.tar.gz: 686d351cd9644adf2a9ec042404a5466319534ba263c2013692032973b94f33f
5
5
  SHA512:
6
- metadata.gz: a6e9a484f6e7bc6bb6a704814bf38fced3d0685a98b4351bd643a29374fdcac9b31f525098d22150e4624b004efd3dec69ced44a707b44d1c7157a55ed016435
7
- data.tar.gz: f5b0cb8ef2e375ec8ef0705c233c4a1b84462a9f9df967b84538064a8390e442b7b2650cb75ca797aa2321dbd5eeaee35c5486894ec75332d1281b18937e2e18
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 = api_password
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Paykassa
4
- VERSION = "0.1.6"
4
+ VERSION = "0.1.9"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: paykassa
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - nottewae