mirror of
https://github.com/internetee/registry.git
synced 2025-08-06 01:35:10 +02:00
Fix timezone problem in tests
This commit is contained in:
parent
f6b1db2cce
commit
e066b1d246
6 changed files with 66 additions and 47 deletions
|
@ -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
|
||||
|
|
|
@ -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: ''
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue