@@ -253,6 +253,7 @@ def create_payment_profile(payment_profile, profile, validation_mode = :none)
253
253
transaction = AuthorizeNet ::CIM ::Transaction . new ( api_login , api_key , gateway : :sandbox )
254
254
expect ( transaction ) . to respond_to ( :create_transaction_auth_only )
255
255
response = transaction . create_transaction_auth_only ( @amount , profile , payment_profile , AuthorizeNet ::Order . new )
256
+ expect ( response . message_text ) . to eq 'Successful.'
256
257
expect ( response . success? ) . to eq true
257
258
direct_response = response . direct_response
258
259
expect ( direct_response ) . to be_instance_of ( AuthorizeNet ::AIM ::Response )
@@ -263,6 +264,7 @@ def create_payment_profile(payment_profile, profile, validation_mode = :none)
263
264
# create an auth only transaction
264
265
transaction = AuthorizeNet ::CIM ::Transaction . new ( api_login , api_key , gateway : :sandbox )
265
266
response = transaction . create_transaction_auth_only ( @amount + 10 , profile , payment_profile , AuthorizeNet ::Order . new )
267
+ expect ( response . message_text ) . to eq 'Successful.'
266
268
expect ( response . success? ) . to eq true
267
269
direct_response = response . direct_response
268
270
expect ( direct_response . success? ) . to eq true
@@ -281,6 +283,7 @@ def create_payment_profile(payment_profile, profile, validation_mode = :none)
281
283
# create a transaction
282
284
transaction = AuthorizeNet ::CIM ::Transaction . new ( api_login , api_key , gateway : :sandbox )
283
285
response = transaction . create_transaction_auth_capture ( @amount , profile , payment_profile , AuthorizeNet ::Order . new )
286
+ expect ( response . message_text ) . to eq 'Successful.'
284
287
expect ( response . success? ) . to eq true
285
288
direct_response = response . direct_response
286
289
expect ( direct_response . success? ) . to eq true
@@ -326,6 +329,7 @@ def create_payment_profile(payment_profile, profile, validation_mode = :none)
326
329
it "should support custom fields" do
327
330
transaction = AuthorizeNet ::CIM ::Transaction . new ( api_login , api_key , gateway : :sandbox )
328
331
response = transaction . create_transaction_auth_capture ( @amount , profile , payment_profile , AuthorizeNet ::Order . new , custom_fields : { foo : '123' , bar : '456' } )
332
+ expect ( response . message_text ) . to eq 'Successful.'
329
333
expect ( response . success? ) . to eq true
330
334
direct_response = response . direct_response
331
335
expect ( direct_response . success? ) . to eq true
@@ -341,6 +345,7 @@ def create_payment_profile(payment_profile, profile, validation_mode = :none)
341
345
order . description = 'This order includes invoice num'
342
346
order . po_num = 'PO_12345'
343
347
response = transaction . create_transaction_auth_capture ( @amount , profile , payment_profile , order )
348
+ expect ( response . message_text ) . to eq 'Successful.'
344
349
expect ( response . success? ) . to eq true
345
350
direct_response = response . direct_response
346
351
expect ( direct_response ) . to be_instance_of ( AuthorizeNet ::AIM ::Response )
0 commit comments