I upgrade sharetribe version to 7.3.1 and trying to configure stripe its fine for admin setting. Got enabled for admin but when I try to go to /settings/payments this page to enable for it for an individual person I am getting issue related cipher.final
In this method:
def decrypt_value(value)
cipher = OpenSSL::Cipher.new(‘AES-256-CBC’)
cipher.decrypt
cipher.key = Digest::SHA256.digest(APP_CONFIG.app_encryption_key)
cipher.padding = 0
plain = Base64.decode64(value)
cipher.iv = plain.slice!(0,16)
cipher.update(plain) + cipher.final
end
Issue:
OpenSSL::Cipher::CipherError - data not multiple of block length:
app/services/transaction_service/store/payment_settings.rb:178:in decrypt_value’ app/services/stripe_service/api/stripe_api_wrapper.rb:13:inconfigure_payment_for’
The issue is in the last line at cipher.final please let me know what is the issue?
and if possible its solution.
Thanks in advance