Sha256: 87e76bab0bca5ac75d34778e55d425f1224e7b3a3c701b90242c2f2661831acd

Contents?: true

Size: 1.25 KB

Versions: 1

Compression:

Stored size: 1.25 KB

Contents

# frozen_string_literal: true

require 'sberbank/acquiring/version'
require 'sberbank/acquiring/response'
require 'sberbank/acquiring/request'
require 'sberbank/acquiring/command_parameters_convertor'
require 'sberbank/acquiring/command_response_decorator'
require 'sberbank/acquiring/client'
require 'sberbank/acquiring/symmetric_key_checksum_validator'

module Sberbank
  module Acquiring
    # Order statuses according to https://securepayments.sberbank.ru/wiki/doku.php/integration:api:rest:requests:getorderstatusextended
    ORDER_NOT_PAID =   0 # order is registered but not paid
    ORDER_HOLDED =     1 # pre-auth amount is holded (for 2-step payments)
    ORDER_AUTHORIZED = 2 # order amount is fully authorized
    ORDER_CANCELLED =  3 # authorization is cancelled
    ORDER_REFUNDED =   4 # transaction amount was refunded
    ORDER_PENDING =    5 # authorization pending
    ORDER_REJECTED =   6 # authorization rejected

    OPERATION_SUCCEEDED = 1
    OPERATION_FAILED    = 0

    OPERATION_APPROVED  = 'approved'.freeze  # amount holded
    OPERATION_DEPOSITED = 'deposited'.freeze # oparation finished
    OPERATION_REVERSED  = 'reversed'.freeze  # operation cancelled
    OPERATION_REFUNDED  = 'refunded'.freeze  # amount refunded
  end
end

SBRF = Sberbank

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sberbank-acquiring-0.1.0 lib/sberbank/acquiring.rb