Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
database:
  name: localhost.dev1
  user: AIS_PAYMENTS
  password: q123
  max_pool_size: 5

hydra:
  user: 'hpd'
  password: 'q123'

pid_path: /var/run/${mode}/${appname}/hpd.pid

plugins:
  default:
    currency: RUB
    account_lookup_field: "account_no"
    bank_account: "CloudPayments"
    account_lookup_pattern: ^\w+$
    pay_type: RMM_KIND_PaySys

    cloud_payments_sbp:
      main:
        bank_code: CloudPayments
        bank_account_lookup_field: "account_no": CP_SBP
        pay_type: RMM_KIND_CP_SBP
      bank_code: "CloudPayments"  currency: RUB
        currency_number: 643
        public_id: id 
          description: ''
          # A base HUPO URL for automatically redirecting the payer from the bank_account: "CloudPayments"'s app to its account page. Must be HTTPS! Optional
          redirect_url: hupo_url
          secret_key: "some_secret_key"

secret
          test_mode: false
          api:
            url: https://api.cloudpayments.ru
            secret: secret

listeners:
  http:
    plain:
      host: 0.0.0.0
      port: 9080
      plugins:
[cloud_payments/main]       timeout: 30

- cloud_payments_sbp/main

workers:
  - listeners: [http/plain]

...

Code Block
payments:
  enabled: true
  use_hpay: false
  verify_ssl: false  # при проблемах с самоподписанным сертификатом

  gateways:
    cloud_payments_sbp:
      default:
        hpd_url: http://192.168.14.20hpd-hydra:9080
        hpd_plugin_name: cloud_payments_sbp
        hpd_plugin_instance: main
        hpd_secret: hpd_secret_key
        hpd_login: hpd
        hpd_password: q123
        public_id: pk_000000000000000000000000
        currency: RUB

  available_payment_gateways:
    - cloud_payments_sbp

public_id нужно взять в личном кабинете CloudPayments.