Class: YaKassa::V3::PaymentRequest

Inherits:
BaseRequest show all
Defined in:
lib/ya_kassa/v3/payment_request.rb

Constant Summary

Constants included from Concerns::Validatable

Concerns::Validatable::VALIDATORS

Instance Attribute Summary

Attributes inherited from BaseRequest

#response

Instance Method Summary collapse

Methods inherited from BaseRequest

#create, #initialize

Methods included from Concerns::Attributable

#attributable

Methods included from Concerns::Validatable

#errors, included, #valid?

Constructor Details

This class inherits a constructor from YaKassa::V3::BaseRequest

Instance Method Details

#bodyObject

amount_value and return_url are required



19
20
21
22
23
24
25
26
27
28
29
30
31
32
# File 'lib/ya_kassa/v3/payment_request.rb', line 19

def body
  {
    amount: {
      value: amount_value,
      currency: amount_currency
    },
    capture: capture,
    confirmation: {
      type: confirmation_type,
      return_url: return_url
    },
    description: description
  }
end