modulr-api 0.0.3 → 0.0.5

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
  SHA256:
3
- metadata.gz: 62f4c9622aed4f57d5b469fb16c88d821785d62397f65fb1b463c251db55d542
4
- data.tar.gz: ccd6c96c38344b47f5b91ccdc02183bb7ca42a3b0cea1f9fdf5b3a34bb963526
3
+ metadata.gz: da666a42d86736ca6e0931a62e30672d57a7ab332de197e0bc83bf9a8e5bc175
4
+ data.tar.gz: 3b956f72365027d8990693d8e071d825e7a940f103c00eaacd0db68d4edaf433
5
5
  SHA512:
6
- metadata.gz: d60a1368a3e583d738fdf805c25f7a3dd9027f5a51fe2536204bea7e7b3938dc87da5546e6db4a1ed9f1a3702ec5288d004240ab9e7ca8637b08003b005d564c
7
- data.tar.gz: 68b8fefa554d331713d0ef5c85d12d1b78f76cd58d1e7e5f7ef9e6d70408a5417be58162f6e29f230b60b6e59e306ef798a6a8cdc064afbd171392ffbb467291
6
+ metadata.gz: 37c00f76260c63cd0e2b6035161a61324c65b53497e60c580e46f253982435f9c0825480c3945a5e7ccf86fadc674cee17dae46ccb6dc4d5e9e1d5fd5316c06f
7
+ data.tar.gz: 3adf0008186b638ddd479c4d0ec281f40393a492238c5eae022594c99f0d8c047ac87ce0c225deeb7db13fff893f0d1c983bf612679f3944c2469f47a6eb96ef
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- modulr-api (0.0.3)
4
+ modulr-api (0.0.5)
5
5
  faraday (~> 1.0)
6
6
  faraday_middleware (~> 1.0)
7
7
 
@@ -82,6 +82,7 @@ GEM
82
82
  unicode-display_width (2.2.0)
83
83
 
84
84
  PLATFORMS
85
+ arm64-darwin-20
85
86
  x86_64-darwin-20
86
87
  x86_64-linux
87
88
 
@@ -25,7 +25,7 @@ module Modulr
25
25
  data[:externalReference] = options[:external_reference] if options[:external_reference]
26
26
 
27
27
  response = client.post("/payments", data, options)
28
- Resources::Payments::Payment.new(response, response.body[:data])
28
+ Resources::Payments::Payment.new(response, response.body)
29
29
  end
30
30
  end
31
31
  end
@@ -27,8 +27,8 @@ module Modulr
27
27
  signature_string = "date: #{timestamp}\nx-mod-nonce: #{nonce}"
28
28
  digest = OpenSSL::HMAC.digest(
29
29
  "SHA1",
30
- apisecret.force_encoding("UTF-8"),
31
- signature_string.force_encoding("UTF-8")
30
+ apisecret.dup.force_encoding("UTF-8"),
31
+ signature_string.dup.force_encoding("UTF-8")
32
32
  )
33
33
  b64 = Base64.encode64(digest)
34
34
  url_safe_code = ERB::Util.url_encode(b64.strip)
data/lib/modulr/client.rb CHANGED
@@ -11,7 +11,7 @@ module Modulr
11
11
  class Client
12
12
  include Modulr::API::Services
13
13
 
14
- SANDBOX_URL = "https://api-sandbox.modulrfinance.com/api-sandbox"
14
+ SANDBOX_URL = "https://api-sandbox.modulrfinance.com/api-sandbox-token"
15
15
  BASE_URL = SANDBOX_URL
16
16
 
17
17
  attr_reader :base_url, :origin, :proxy, :username, :logger_enabled
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Modulr
4
- VERSION = "0.0.3"
4
+ VERSION = "0.0.5"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: modulr-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aitor García Rey
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-07-28 00:00:00.000000000 Z
11
+ date: 2022-07-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday