@@ -157,39 +157,39 @@ def validate_response(response= nil)
157
157
it "should be able to run all Payment Transaction sample code" do
158
158
puts "START - Payment Transactions"
159
159
160
- # response = authorize_credit_card()
161
- # validate_response(response)
160
+ response = authorize_credit_card ( )
161
+ validate_response ( response )
162
162
163
- # response = capture_funds_authorized_through_another_channel()
164
- # validate_response(response)
163
+ response = capture_funds_authorized_through_another_channel ( )
164
+ validate_response ( response )
165
165
166
166
# response = capture_only()
167
167
# validate_response(response)
168
168
169
- # response = capture_funds_authorized_through_another_channel()
170
- # validate_response(response)
169
+ response = capture_funds_authorized_through_another_channel ( )
170
+ validate_response ( response )
171
171
172
- # response = capture_previously_authorized_amount()
173
- # validate_response(response)
172
+ response = capture_previously_authorized_amount ( )
173
+ validate_response ( response )
174
174
175
- # response = charge_credit_card()
176
- # validate_response(response)
175
+ response = charge_credit_card ( )
176
+ validate_response ( response )
177
177
178
178
#create customer profile
179
- # response = create_customer_profile()
180
- # validate_response(response)
181
- # customerProfileId = response.customerProfileId
179
+ response = create_customer_profile ( )
180
+ validate_response ( response )
181
+ customerProfileId = response . customerProfileId
182
182
183
183
#create customer payment profile
184
- # response = create_customer_payment_profile(customerProfileId)
185
- # validate_response(response)
186
- # customerPaymentProfileId = response.customerPaymentProfileId
184
+ response = create_customer_payment_profile ( customerProfileId )
185
+ validate_response ( response )
186
+ customerPaymentProfileId = response . customerPaymentProfileId
187
187
188
- # response = charge_customer_profile(customerProfileId, customerPaymentProfileId)
189
- # validate_response(response)
188
+ response = charge_customer_profile ( customerProfileId , customerPaymentProfileId )
189
+ validate_response ( response )
190
190
191
- # response = charge_tokenized_credit_card()
192
- # validate_response(response)
191
+ response = charge_tokenized_credit_card ( )
192
+ validate_response ( response )
193
193
194
194
response = credit_bank_account ( )
195
195
validate_response ( response )
@@ -200,11 +200,11 @@ def validate_response(response= nil)
200
200
# response = refund_transaction()
201
201
# validate_response(response)
202
202
203
- # response = update_split_tender_group()
204
- # validate_response(response)
203
+ response = update_split_tender_group ( )
204
+ validate_response ( response )
205
205
206
- # response = void_transaction()
207
- # validate_response(response)
206
+ response = void_transaction ( )
207
+ validate_response ( response )
208
208
end
209
209
210
210
0 commit comments