tessitura_rest 1.3.1 → 1.3.2
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: 3061c6a12b547dd995452b956f3e23a0460bd9052b76a6090c8b91e16b7d8147
|
4
|
+
data.tar.gz: '04098a87fc60f2312dd4a98b2d0d2a7c41bfcc7877a76243a6e8a50708fcf8c5'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f786ac622d9ddf3244a0e910762053b55e8fc174deebcbc705501cef3899e09d357efb0b2d4af37803c0e89cfbb91119ec52652fa4b316b635a5dda6ecd6f694
|
7
|
+
data.tar.gz: de37b257d2c9bf6e188beb8c3962f4cee795e63b16e5255cbe5897757f650496abd3eb98d89b5a4c9129f960e4e2d1c37b04df15258369432d4e31915112e514
|
@@ -1,13 +1,14 @@
|
|
1
1
|
module PaymentComponent
|
2
2
|
def fetch_payment_component(amount, constituent = 0, options = {})
|
3
|
+
card_brands = ['amex', 'mc', 'visa', 'discover']
|
3
4
|
parameters =
|
4
5
|
{
|
5
6
|
'Amount': amount,
|
6
7
|
'ConstituentId': constituent,
|
7
|
-
'CardBrandsToInclude':
|
8
|
+
'CardBrandsToInclude': card_brands,
|
8
9
|
}
|
9
10
|
options.merge!(basic_auth: @auth, headers: @headers)
|
10
|
-
options.merge!(:body => parameters)
|
11
|
+
options.merge!(:body => parameters.to_json, :headers => { 'Content-Type' => 'application/json' })
|
11
12
|
self.class.post(base_api_endpoint('PaymentGateway/PaymentComponent'), options)
|
12
13
|
end
|
13
14
|
end
|