Method: ActiveMerchant::Billing::VposGateway#one_time_public_key

Defined in:
lib/active_merchant/billing/gateways/vpos.rb

#one_time_public_keyObject

Required to encrypt PAN data.



129
130
131
132
133
# File 'lib/active_merchant/billing/gateways/vpos.rb', line 129

def one_time_public_key
  token = generate_token('get_encription_public_key', @public_key)
  response = commit(:pci_encryption_key, token:)
  response.params['encryption_key']
end