lib/active_merchant/billing/gateways/qvalent.rb in activemerchant-1.103.0 vs lib/active_merchant/billing/gateways/qvalent.rb in activemerchant-1.104.0

- old
+ new

@@ -145,10 +145,11 @@ end end def stored_credential_usage(post, payment_method, options) return unless payment_method.brand == 'visa' + stored_credential = options[:stored_credential] if stored_credential[:initial_transaction] post['card.storedCredentialUsage'] = 'INITIAL_STORAGE' elsif stored_credential[:reason_type] == ('recurring' || 'installment') post['card.storedCredentialUsage'] = 'RECURRING' @@ -220,9 +221,10 @@ ) end def cvv_result(succeeded, raw) return unless succeeded + code = CVV_CODE_MAPPING[raw['response.cvnResponse']] || raw['response.cvnResponse'] CVVResult.new(code) end def headers