Content cvv2 is optional
authorMitch Jackson <mitch@freeside.biz>
Tue, 23 Apr 2019 02:43:36 +0000 (22:43 -0400)
committerMitch Jackson <mitch@freeside.biz>
Tue, 23 Apr 2019 02:43:36 +0000 (22:43 -0400)
lib/Business/OnlinePayment/Bambora.pm

index 21039f1..0095665 100755 (executable)
@@ -552,7 +552,6 @@ sub jhref_card {
     owner
     expiry_month
     expiry_year
-    cvv2
   /) {
     next if $content->{$f};
 
@@ -576,7 +575,8 @@ sub jhref_card {
     name         => $self->truncate( $content->{owner}, 64 ),
     expiry_month => sprintf( '%02d', $content->{expiry_month} ),
     expiry_year  => sprintf( '%02d', $content->{expiry_year} ),
-    cvd          => $content->{cvv2},
+
+    $content->{cvv2} ? ( cvd => $content->{cvv2} ) : (),
   }
 }