Ivan Kohler <ivan-interchange@420.am>
+Initial development of this module was sponsored in part by Simply Marketing,
+Inc. <http://www.simplymarketinginc.com/>.
+
+=head1 COPYRIGHT
+
+Copyright 2004 Ivan Kohler. All rights reserved.
+
+This program is free software; you can redistribute it and/or modify it
+under the same terms as Perl itself.
+
=cut
package Vend::Payment;
if ( $transaction->is_success() ) {
$result{MStatus} = 'success';
- $result{'order-id'} = $transaction->order_number || $opt->{'order_id'};
+ $result{'order-id'} =
+ ( $transaction->can('order_number') && $transaction->order_number )
+ || $opt->{'order_id'};
} else {