tessitura_rest 2.0.3 → 2.0.4

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: a7aebec05323faf523d6733236fcaaf41cdf308c79957dad8e3d2c7b18d5068e
4
- data.tar.gz: 73ac20f39df98be95f564e97f4deb96bee8c46082bbf0603e4cac7a3dfd863ec
3
+ metadata.gz: 2d1d3e21a921fc09feb4e8d7ec264f473cbe66ad5dc10b51ac4c5b50a6209676
4
+ data.tar.gz: 6c8619a26a15a2e6f4b169aad03f57f4669928dadd180181edadf64771bb3db5
5
5
  SHA512:
6
- metadata.gz: 982cc3e2eeb4a7304d08d276065bd51813407af5d23488b5d1bebcf39248eda3eb8125004a490c03fb654cfbaff060ee125bb91304f8291292d7b3089ec19d0c
7
- data.tar.gz: 7c70b1ecef0700b3e27c9dce9998e21ff03faccf21a483cf5de943b3e0efda064f4c13e9476fee9ccbebdf483fe21f25d5c5e34dd6eeea7ce9b278f66c39523f
6
+ metadata.gz: aec7f91f212942110db4b9dd7738fe8eee6cbf66d59d07c89c7533ba20d76778cc02a9dd3f1610457c1ab21d58a70b31f0cbf4b238004a5c26bc43d0247499da
7
+ data.tar.gz: f2ec563c2a94ce2733a53e4175a25f3c69429d4c3d0d7489b4a9b7b852384339468e3bc5f2a923c2cbc6db95d35f6ad9e6f890a5dbe7baf86764edf70121b647
@@ -1,5 +1,5 @@
1
1
  module PaymentGateway
2
- def authorize_payment(amount, store_card, payload, payment_id, return_url, constituent_id, shopper_ip, address, delivery_date, options = {})
2
+ def authorize_payment(amount, store_card, payload, payment_id, return_url, constituent, shopper_ip, address, delivery_date, options = {})
3
3
  parameters = {
4
4
  'Amount': amount,
5
5
  'StoreAccount': store_card,
@@ -7,12 +7,17 @@ module PaymentGateway
7
7
  'TessituraMerchantServicesData': payload,
8
8
  },
9
9
  'PaymentId': payment_id,
10
- 'ConstituentId': constituent_id,
10
+ 'ConstituentId': constituent.customer_no,
11
11
  'TransactionOrigin': 'webapi',
12
12
  'PaymentMethodId': 606,
13
13
  'ReturnUrl': return_url,
14
14
  'IsECommerce': true,
15
15
  'ShopperIp': shopper_ip,
16
+ 'ShopperEmail': constituent.email,
17
+ 'ShopperName': {
18
+ 'FirstName': constituent.first_name,
19
+ 'LastName': constituent.last_name,
20
+ },
16
21
  'BillingAddress': {
17
22
  'PostalCode': address.postal_code,
18
23
  'Street1': address.street1,
@@ -1,3 +1,3 @@
1
1
  class TessituraRest
2
- VERSION = '2.0.3'.freeze
2
+ VERSION = '2.0.4'.freeze
3
3
  end
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: 2.0.3
4
+ version: 2.0.4
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: 2024-07-02 00:00:00.000000000 Z
11
+ date: 2024-07-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler