nps_sdk 1.0.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/nps/sdk.rb +4 -0
- data/lib/nps/services.rb +1 -0
- data/lib/nps/soap_client.rb +3 -3
- data/lib/nps/utils.rb +1 -1
- data/lib/nps/wsdl/development.wsdl +195 -117
- data/lib/nps/wsdl/sandbox.wsdl +2629 -2161
- 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: 10f5c27167c34b4325c3ee096404ea2dbaea96e0
|
4
|
+
data.tar.gz: 83b4db5e36165e6a8f1f6166a755dbd7014f2cfd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 460196163b3f16c77404c219467b9f7fe6fd8be3170440679b584afd106360a4a3a0fbedd69b542385776ad9146bf977093ac1904d2deadc6ee3c9a7cd1419b2
|
7
|
+
data.tar.gz: b04ae34f091946211370089310d59b4f2813b59c4eb87a62cd04358136c32e0f8bbcc87685fa62831c253cbc6548857dc1fc65643c4852dc451e321e6cb17e5f
|
data/lib/nps/sdk.rb
CHANGED
data/lib/nps/services.rb
CHANGED
@@ -17,6 +17,7 @@ class Services
|
|
17
17
|
NOTIFY_FRAUD_SCREENING_REVIEW=:notify_fraud_screening_review
|
18
18
|
GET_IIN_DETAILS=:get_iin_details
|
19
19
|
QUERY_CARD_NUMBER=:query_card_number
|
20
|
+
QUERY_CARD_DETAILS=:query_card_details
|
20
21
|
CREATE_PAYMENT_METHOD = :create_payment_method
|
21
22
|
CREATE_PAYMENT_METHOD_FROM_PAYMENT =:create_payment_method_from_payment
|
22
23
|
RETRIEVE_PAYMENT_METHOD =:retrieve_payment_method
|
data/lib/nps/soap_client.rb
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
require 'certifi'
|
1
2
|
module Nps
|
2
3
|
class SoapClient
|
3
4
|
|
@@ -19,8 +20,8 @@ module Nps
|
|
19
20
|
@wsdl = conf.environment
|
20
21
|
@open_timeout = conf.o_timeout.nil? ? 5 : conf.o_timeout
|
21
22
|
@read_timeout = conf.r_timeout.nil? ? 60 : conf.r_timeout
|
23
|
+
@verify_ssl = conf.verify_ssl.nil? ? true : conf.verify_ssl
|
22
24
|
@sanitize = conf.sanitize.nil? ? true : conf.sanitize
|
23
|
-
@verify_ssl = conf.verify_ssl
|
24
25
|
@log_level = conf.log_level ? conf.log_level : nil
|
25
26
|
@proxy = conf.proxy_url ? conf.proxy_url : nil
|
26
27
|
@proxy_username = conf.proxy_username ? @proxy_username : nil
|
@@ -49,8 +50,7 @@ module Nps
|
|
49
50
|
if @verify_ssl
|
50
51
|
ssl_config = {
|
51
52
|
ssl_verify_mode: :peer,
|
52
|
-
|
53
|
-
ssl_cert_key_file: @cert_key
|
53
|
+
ssl_ca_cert_file: Certifi.where
|
54
54
|
}
|
55
55
|
client_config.merge!(ssl_config)
|
56
56
|
end
|