Skip to content

Commit 7266e5f

Browse files
committed
Testing everything except refund
1 parent c77e637 commit 7266e5f

File tree

1 file changed

+24
-24
lines changed

1 file changed

+24
-24
lines changed

spec/sample_code_spec.rb

+24-24
Original file line numberDiff line numberDiff line change
@@ -157,39 +157,39 @@ def validate_response(response= nil)
157157
it "should be able to run all Payment Transaction sample code" do
158158
puts "START - Payment Transactions"
159159

160-
#response = authorize_credit_card()
161-
#validate_response(response)
160+
response = authorize_credit_card()
161+
validate_response(response)
162162

163-
#response = capture_funds_authorized_through_another_channel()
164-
#validate_response(response)
163+
response = capture_funds_authorized_through_another_channel()
164+
validate_response(response)
165165

166166
# response = capture_only()
167167
# validate_response(response)
168168

169-
#response = capture_funds_authorized_through_another_channel()
170-
#validate_response(response)
169+
response = capture_funds_authorized_through_another_channel()
170+
validate_response(response)
171171

172-
#response = capture_previously_authorized_amount()
173-
#validate_response(response)
172+
response = capture_previously_authorized_amount()
173+
validate_response(response)
174174

175-
#response = charge_credit_card()
176-
#validate_response(response)
175+
response = charge_credit_card()
176+
validate_response(response)
177177

178178
#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
182182

183183
#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
187187

188-
#response = charge_customer_profile(customerProfileId, customerPaymentProfileId)
189-
#validate_response(response)
188+
response = charge_customer_profile(customerProfileId, customerPaymentProfileId)
189+
validate_response(response)
190190

191-
#response = charge_tokenized_credit_card()
192-
#validate_response(response)
191+
response = charge_tokenized_credit_card()
192+
validate_response(response)
193193

194194
response = credit_bank_account()
195195
validate_response(response)
@@ -200,11 +200,11 @@ def validate_response(response= nil)
200200
# response = refund_transaction()
201201
# validate_response(response)
202202

203-
#response = update_split_tender_group()
204-
#validate_response(response)
203+
response = update_split_tender_group()
204+
validate_response(response)
205205

206-
#response = void_transaction()
207-
#validate_response(response)
206+
response = void_transaction()
207+
validate_response(response)
208208
end
209209

210210

0 commit comments

Comments
 (0)