Y
Y
Yuriy2019-11-29 10:03:31
1C-Bitrix
Yuriy, 2019-11-29 10:03:31

Bitrix\Sale\PaySystem\Service how to get extraParams from a private object?

How to get [extraParams":protected] from a private object?

object(Bitrix\Sale\PaySystem\Service)#696 (3) {
  ["handler":"Bitrix\Sale\PaySystem\Service":private]=>
  object(Sale\Handlers\PaySystem\sberbank_ecom2Handler)#461 (5) {
    ["handlerType":protected]=>
    string(6) "CUSTOM"
    ["service":protected]=>
    *RECURSION*
    ["extraParams":protected]=>
    array(3) {
      ["sberbank_result"]=>
      array(16) {
        ["errorCode"]=>
        string(1) "0"
        ["errorMessage"]=>
        string(14) "Успешно"
        ["orderNumber"]=>
        string(6) "1128_3"
        ["orderStatus"]=>
        int(0)
        ["actionCode"]=>
        int(-100)
        ["actionCodeDescription"]=>
        string(0) ""
        ["amount"]=>
        int(164710)
        ["currency"]=>
        string(3) "643"
        ["date"]=>
        float(1575010526340)
        ["orderDescription"]=>
        string(0) ""
        ["merchantOrderParams"]=>

From the D7 BaseServiceHandler documentation, getExtraParams() method
https://budagov.ru/dev/doc/class_bitrix_1_1_sale_1...
no method ((
Call to undefined method Bitrix\Sale\PaySystem\Service::getExtraParams() (0)

and this one is getParamsBusValue(Payment $payment = null)
>array(15) {
  ["SBERBANK_GATE_LOGIN"]=>
  string(23) "test-api"
  ["SBERBANK_GATE_PASSWORD"]=>
  string(19) "test"
  ["SBERBANK_GATE_TEST_MODE"]=>
  string(1) "Y"
  ["SBERBANK_HANDLER_AUTO_REDIRECT"]=>
  string(1) "Y"
  ["SBERBANK_HANDLER_LOGGING"]=>
  string(1) "Y"
  ["SBERBANK_HANDLER_TWO_STAGE"]=>
  string(1) "N"
  ["SBERBANK_HANDLER_SHIPMENT"]=>
  string(1) "N"
  ["SBERBANK_FFD_VERSION"]=>
  string(4) "1.05"
  ["SBERBANK_FFD_PAYMENT_METHOD"]=>
  string(1) "4"
  ["SBERBANK_FFD_PAYMENT_OBJECT"]=>
  string(1) "1"
  ["SBERBANK_OFD_RECIEPT"]=>
  string(1) "Y"
  ["SBERBANK_OFD_TAX_SYSTEM"]=>
  NULL
  ["SBERBANK_ORDER_NUMBER"]=>
  string(4) "1128"
  ["SBERBANK_ORDER_AMOUNT"]=>
  float(1647.1)
  ["SBERBANK_ORDER_DESCRIPTION"]=>
  NULL

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question