Sha256: 5338f5abd0689ea89e65c2f829540334694d5fb400de557ebae2c0731a6ea4aa
Contents?: true
Size: 678 Bytes
Versions: 24
Compression:
Stored size: 678 Bytes
Contents
module SolidusNexio module CreditCardDecorator # CVV stored encrypted till payment is made, after that #clean_nexio_cvv is called def encrypt_nexio_cvv return unless verification_value update_column(:gateway_customer_profile_id, ::SolidusNexio::EncryptionService.encrypt(last_digits, verification_value)) end def nexio_cvv return unless gateway_customer_profile_id.present? ::SolidusNexio::EncryptionService.decrypt(last_digits, gateway_customer_profile_id) end def clean_nexio_cvv update_column(:gateway_customer_profile_id, nil) if gateway_customer_profile_id end ::Spree::CreditCard.prepend self end end
Version data entries
24 entries across 24 versions & 1 rubygems