date
card_type
avs_response cvv2_response
- total_amount
+ total_amount tax_amounts
);
use constant RESULTS => (
avs_response => undef,
cvv2_response => undef,
total_amount => 3.88,
+ tax_amounts => { GST => 0.25 },
uuid => 'f81d4fae-7dec-11d0-a765-00a0c91e6bf6',
guid => 'f81d4fae-7dec-11d0-a765-00a0c91e6bf6',
},
avs_response => undef,
cvv2_response => undef,
total_amount => 3.88,
+ tax_amounts => { GST => 0.25,
+ PST => 0.27 },
uuid => undef,
guid => undef,
},
foreach (FIELDS) {
no strict 'refs';
- is($txn->$_, $results->{$_}, $_);
+ is_deeply($txn->$_, $results->{$_}, $_);
}
}
<flags>
<flag>{USD}</flag>
<flag>{GST}</flag>
+ <flag>{PST}</flag>
</flags>
</product>
<product>
<subtotal>0.20</subtotal>
<flags>
<flag>{GST}</flag>
+ <flag>{PST}</flag>
</flags>
</product>
<product>
<subtotal>0.33</subtotal>
<flags>
<flag>{GST}</flag>
+ <flag>{PST}</flag>
</flags>
</product>
<product>
<flag>{CALCULATED}</flag>
</flags>
</product>
+ <product>
+ <code>PST</code>
+ <description>PST Charged</description>
+ <quantity>1</quantity>
+ <price>0.27</price>
+ <subtotal>0.27</subtotal>
+ <flags>
+ <flag>{TAX}</flag>
+ <flag>{CALCULATED}</flag>
+ </flags>
+ </product>
</Products>
- <DoubleColonProducts>3.10::1::001::Test Product 1::{USD}{GST}|0.20::1::010::Test Product 2::{GST}|0.33::1::020::Test Product 3::{GST}|0.25::1::GST::Canadian GST Charged::{TAX}{CALCULATED}</DoubleColonProducts>
+ <DoubleColonProducts>3.10::1::001::Test Product 1::{USD}{GST}{PST}|0.20::1::010::Test Product 2::{GST}{PST}|0.33::1::020::Test Product 3::{GST}{PST}|0.25::1::GST::Canadian GST Charged::{TAX}{CALCULATED}|0.27::1::PST::PST Charged::{TAX}{CALCULATED}</DoubleColonProducts>
<AVSResponseCode />
<CVV2ResponseCode />
</TranxResponse>