Module: PayjpMock::Util
- Included in:
- RequestBuilder, Response::Resource::Base
- Defined in:
- lib/payjp_mock/util.rb
Instance Method Summary collapse
Instance Method Details
#generate_fingerprint ⇒ Object
8 9 10 |
# File 'lib/payjp_mock/util.rb', line 8 def generate_fingerprint SecureRandom.hex(16) end |
#generate_resource_id(prefix) ⇒ Object
4 5 6 |
# File 'lib/payjp_mock/util.rb', line 4 def generate_resource_id(prefix) "#{prefix}_#{SecureRandom.hex(14)}" end |