Fix timezone problem in tests

This commit is contained in:
Maciej Szlosarczyk 2018-04-20 14:29:17 +03:00
parent f6b1db2cce
commit e066b1d246
No known key found for this signature in database
GPG key ID: 41D62D42D3B0D765
6 changed files with 66 additions and 47 deletions

View file

@ -36,8 +36,6 @@ module Payments
private
SUCCESS_FIELDS =
def validate_success
pars = %w(VK_SERVICE VK_VERSION VK_SND_ID VK_REC_ID VK_STAMP VK_T_NO VK_AMOUNT VK_CURR
VK_REC_ACC VK_REC_NAME VK_SND_ACC VK_SND_NAME VK_REF VK_MSG VK_T_DATETIME).freeze

View file

@ -56,7 +56,7 @@ module Payments
timestamp: Time.now.to_i.to_s,
callback_url: response_url,
customer_url: return_url,
amount: invoice.total,
amount: number_with_precision(invoice.total, precision: 2),
order_reference: SecureRandom.hex(15),
transaction_type: 'charge',
hmac_fields: ''