tessitura_rest 1.3.8 → 1.3.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4a125a762d634760ed2191b5cea19603050e4d10a2c2cfb0c1e287771571ea91
|
4
|
+
data.tar.gz: 11639267f65e003f5e80719560e358fb24e95748fd6c5dae5fe98a06d07ccd88
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 100071827ac1b6221637ac024c0a8306175d661a8079efe5a1e8713810524651929ec2d896383f1f9b95b773dade2fc148c3b21b776e54a157025ff0132dbd5f
|
7
|
+
data.tar.gz: 9002067540e0cf6870951716ffa3f08e3d41476a53efbc055bd8441aac25b1738c926d3333eb4dcef2d8e7aadb5832b28aa276712faeb7d3dd3d5694ef22f94b
|
@@ -1,5 +1,5 @@
|
|
1
1
|
module PaymentGateway
|
2
|
-
def authorize_payment(amount, store_card, payload, payment_id, return_url, constituent_id, options = {})
|
2
|
+
def authorize_payment(amount, store_card, payload, payment_id, return_url, constituent_id, shopper_ip, options = {})
|
3
3
|
parameters = {
|
4
4
|
'Amount': amount,
|
5
5
|
'StoreAccount': store_card,
|
@@ -12,6 +12,7 @@ module PaymentGateway
|
|
12
12
|
'PaymentMethodId': 606,
|
13
13
|
'ReturnUrl': return_url,
|
14
14
|
'IsECommerce': true,
|
15
|
+
'ShopperIp': shopper_ip
|
15
16
|
}
|
16
17
|
options.merge!(basic_auth: @auth, headers: @headers)
|
17
18
|
options.merge!(:body => parameters)
|
@@ -297,7 +297,7 @@ module Cart
|
|
297
297
|
self.class.post(base_api_endpoint("Web/Cart/#{session_key}/Checkout"), options)
|
298
298
|
end
|
299
299
|
|
300
|
-
def checkout_with_tms(session_key, order_authorization_code, order_amount, allow_under_payment, payment_method_id, payment_reference, authorize,
|
300
|
+
def checkout_with_tms(session_key, order_authorization_code, order_amount, allow_under_payment, payment_method_id, payment_reference, authorize, options = {})
|
301
301
|
parameters =
|
302
302
|
{
|
303
303
|
'CreditCardType': payment_method_id,
|
@@ -306,8 +306,7 @@ module Cart
|
|
306
306
|
'Authorize': authorize,
|
307
307
|
'ECommerce': true,
|
308
308
|
'AuthorizationCode': order_authorization_code,
|
309
|
-
'PaymentReference': payment_reference
|
310
|
-
'ShopperIp': shopper_ip,
|
309
|
+
'PaymentReference': payment_reference
|
311
310
|
}
|
312
311
|
options.merge!(basic_auth: @auth, headers: @headers)
|
313
312
|
options.merge!(:body => parameters.to_json, :headers => { 'Content-Type' => 'application/json' })
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tessitura_rest
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brittany Martin, Danielle Greaves, Craig Donavin, Patrick FitzGerald
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-07-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|