Module: BuckarooClient::Gateway::NVP
- Extended by:
- Signature
- Defined in:
- lib/buckaroo_client/gateway/nvp.rb,
lib/buckaroo_client/gateway/nvp/response.rb,
lib/buckaroo_client/gateway/nvp/signature.rb,
lib/buckaroo_client/gateway/nvp/invoice_info_response.rb
Defined Under Namespace
Modules: Signature
Classes: InvoiceInfoResponse, Response
Class Method Summary
collapse
Methods included from Signature
secret_key, signature
Class Method Details
.environment ⇒ Object
11
12
13
|
# File 'lib/buckaroo_client/gateway/nvp.rb', line 11
def self.environment
ENV['BUCKAROO_CLIENT_ENVIRONMENT'] || 'test'
end
|
.invoice_info(buckaroo_variables, custom: {}, additional: {}) ⇒ Object
38
39
40
|
# File 'lib/buckaroo_client/gateway/nvp.rb', line 38
def self.invoice_info(buckaroo_variables, custom: {}, additional: {})
do_request('invoiceinfo', buckaroo_variables, custom, additional)
end
|
.transaction_request(buckaroo_variables, custom: {}, additional: {}) ⇒ Object
30
31
32
|
# File 'lib/buckaroo_client/gateway/nvp.rb', line 30
def self.transaction_request(buckaroo_variables, custom: {}, additional: {})
do_request('transactionrequest', buckaroo_variables, custom, additional)
end
|
.transaction_request_specification(buckaroo_variables, custom: {}, additional: {}) ⇒ Object
42
43
44
|
# File 'lib/buckaroo_client/gateway/nvp.rb', line 42
def self.transaction_request_specification(buckaroo_variables, custom: {}, additional: {})
do_request('transactionrequestspecification', buckaroo_variables, custom, additional)
end
|
.transaction_status(buckaroo_variables, custom: {}, additional: {}) ⇒ Object
34
35
36
|
# File 'lib/buckaroo_client/gateway/nvp.rb', line 34
def self.transaction_status(buckaroo_variables, custom: {}, additional: {})
do_request('transactionstatus', buckaroo_variables, custom, additional)
end
|
.url(action: nil) ⇒ Object
19
20
21
22
23
24
25
26
27
28
|
# File 'lib/buckaroo_client/gateway/nvp.rb', line 19
def self.url(action: nil)
path = case environment
when 'production'
'https://checkout.buckaroo.nl/nvp/'
else
'https://testcheckout.buckaroo.nl/nvp/'
end
path += "?op=#{action}" unless action.nil?
URI.parse(path)
end
|
.websitekey ⇒ Object
15
16
17
|
# File 'lib/buckaroo_client/gateway/nvp.rb', line 15
def self.websitekey
ENV['BUCKAROO_CLIENT_WEBSITEKEY'] || raise("BUCKAROO_CLIENT_WEBSITEKEY not set")
end
|