Module: Yaka

Extended by:
Dry::Configurable, ClassMethods
Defined in:
lib/yaka.rb,
lib/yaka/payment.rb,
lib/yaka/version.rb,
lib/yaka/basic_struct.rb,
lib/yaka/class_methods.rb,
lib/yaka/payment_response.rb

Defined Under Namespace

Modules: ClassMethods, Types Classes: BasicStruct, Error, Payment, PaymentResponse

Constant Summary collapse

HOST_URL =
'https://payment.yandex.net'
PAYMENTS_URL =
'/api/v3/payments'
ALLOWED_YANDEX_V4_MASKS =
{
  '185.71.76.0' => 27,
  '185.71.77.0' => 27,
  '77.75.153.0' => 25,
  '77.75.154.128' => 25
}.freeze
ALLOWED_YANDEX_V6_MASKS =
{
  '2a02:5180:0:1509::' => 64,
  '2a02:5180:0:2655::' => 64,
  '2a02:5180:0:1533::' => 64,
  '2a02:5180:0:2669::' => 64
}.freeze
VERSION =
'1.0.2'

Method Summary

Methods included from ClassMethods

publish_payment, yandex_ip?