1 # vim:set syntax=perl encoding=utf-8:
3 # get_remap_fields() used to be destructive (via remap_fields), and thus
4 # to_xml couldn't be called by itself.
6 use Test::More tests => 1 + 1;
8 BEGIN { use_ok('Business::OnlinePayment') };
10 use constant TRANSACTION =>
12 action => 'Normal Authorization',
14 card_number => '5111-1111-1111-1111',
17 name => "Fr\x{e9}d\x{e9}ric Bri\x{e8}re",
23 my $txn = new Business::OnlinePayment 'InternetSecure', merchant_id => '0000';
25 $txn->content(TRANSACTION);
27 is($txn->to_xml, $txn->to_xml, 'idempotence');