X-Git-Url: http://git.freeside.biz/gitweb/?p=Business-OnlinePayment-Skipjack.git;a=blobdiff_plain;f=t%2Freturn_card_visa.t;h=354257e55a7b572ca87afbcc4a06752066842946;hp=c717d792fbfe634efd10d11affaf14f44f61c746;hb=5aedd8b05907cc42933165dae3d0ff5917043a8a;hpb=fc86c68c3af2bc3e5fcf870f3fc026e0b6069f93;ds=sidebyside diff --git a/t/return_card_visa.t b/t/return_card_visa.t index c717d79..354257e 100644 --- a/t/return_card_visa.t +++ b/t/return_card_visa.t @@ -14,9 +14,13 @@ my $tx = new Business::OnlinePayment("Skipjack"); #$Business::OnlinePayment::Skipjack::DEBUG = 1; #$Business::OnlinePayment::Skipjack::DEBUG = 1; +my $login = $ENV{'sj_html_serial_number'} || '000944785470'; +my $password = $ENV{'sj_devel_serial_number'} || '100594217288'; + $tx->content( type => 'VISA', - login => '000368452762', # "HTML serial number" + login => $login, # "HTML serial number" + password => $password, # "Developer serial number" action => 'Normal Authorization', description => 'Business::OnlinePayment::Skipjack test', amount => '32', @@ -48,8 +52,8 @@ my $pa_tx = new Business::OnlinePayment("Skipjack"); $pa_tx->content( type => 'VISA', - login => '000368452762', # "HTML serial number" - password => '100594217288', # "developer serial number" + login => $login, # "HTML serial number" + password => $password, # "Developer serial number" action => 'Post Authorization', description => 'Business::OnlinePayment::Skipjack test', order_number => $tx->order_number(), @@ -76,8 +80,8 @@ my $st_tx = new Business::OnlinePayment("Skipjack"); $st_tx->content( type => 'VISA', - login => '000368452762', # "HTML serial number" - password => '100594217288', # "developer serial number" + login => $login, # "HTML serial number" + password => $password, # "Developer serial number" action => 'Status', description => 'Business::OnlinePayment::Skipjack test', order_number => $tx->order_number(), @@ -106,8 +110,8 @@ my $cr_tx = new Business::OnlinePayment("Skipjack"); $cr_tx->content( type => 'VISA', - login => '000368452762', # "HTML serial number" - password => '100594217288', # "developer serial number" + login => $login, # "HTML serial number" + password => $password, # "Developer serial number" action => 'Credit', description => 'Business::OnlinePayment::Skipjack test', amount => 11,