authorizenetsample 1.1.8 → 1.1.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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 78151bf69d37cbf19f535dd356cd378e51f2f81a
|
4
|
+
data.tar.gz: 4a83a9b9d2671a338ac255d87d6ebe03b328a99f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d2e5a8061fc6faf1684dcc4a0a14a2634555b0c418182c058328d5cee49d949f3780e44bc6f106a960c823be126a33a6f51ec5e222c167e23b282c5a0be5368c
|
7
|
+
data.tar.gz: 163ebdebb88445eaf5600566936b9cbdd38bad657d67fa78771a9374f1bd2694a2052817cd839a873d6d11a95bc158ea56c8a5d2d83e98e0aeb9ccf59efaf450
|
@@ -14,17 +14,17 @@ require 'securerandom'
|
|
14
14
|
|
15
15
|
request = CreateTransactionRequest.new
|
16
16
|
|
17
|
-
billTo = CustomerAddressType.new
|
18
|
-
billTo.firstName = "John"
|
19
|
-
billTo.lastName = "Doe"
|
20
|
-
billTo.address = "123 My St"
|
21
|
-
billTo.city = "OurTown"
|
22
|
-
billTo.zip = "98004"
|
17
|
+
# billTo = CustomerAddressType.new
|
18
|
+
# billTo.firstName = "John"
|
19
|
+
# billTo.lastName = "Doe"
|
20
|
+
# billTo.address = "123 My St"
|
21
|
+
# billTo.city = "OurTown"
|
22
|
+
# billTo.zip = "98004"
|
23
23
|
|
24
24
|
request.transactionRequest = TransactionRequestType.new()
|
25
25
|
# request.transactionRequest.amount = ((SecureRandom.random_number + 1 ) * 150 ).round(2)
|
26
26
|
request.transactionRequest.amount = 99
|
27
|
-
request.transactionRequest.billTo = billTo
|
27
|
+
# request.transactionRequest.billTo = billTo
|
28
28
|
request.transactionRequest.payment = PaymentType.new
|
29
29
|
# request.transactionRequest.payment.opaqueData = OpaqueDataType.new('COMMON.ACCEPT.INAPP.PAYMENT','eyJjb2RlIjoiNTBfMl8wNjAwMDUzQTczNERGMDY0MUMyMzUxMkIyQTM2MUE3QTBFQUQ4NTIxQ0EzQjM3MUU1REMyMjlEQkYwMjRERjI5QzdFOTJBMDIzNzJGRDVDQkI0ODRDMTQ2NDYyQ0U4NkFCRjA0Q0Y3IiwidG9rZW4iOiI5NTM5MzYyNzY1NjM2NTgyODA0NjA0IiwidiI6IjEuMSJ9')
|
30
30
|
request.transactionRequest.payment.opaqueData = OpaqueDataType.new('COMMON.ACCEPT.INAPP.PAYMENT',token)
|
@@ -16,7 +16,7 @@ require 'securerandom'
|
|
16
16
|
custProfile.customerProfileId = customerId
|
17
17
|
|
18
18
|
transactionRequest = TransactionRequestType.new
|
19
|
-
transactionRequest.amount = 99
|
19
|
+
transactionRequest.amount = 99
|
20
20
|
transactionRequest.transactionType = TransactionTypeEnum::AuthCaptureTransaction
|
21
21
|
transactionRequest.profile = custProfile
|
22
22
|
|