Skip to content

Баг в подтверждении холдированного платежа #47

Description

@hexman84

Добрый день,

При подтверждении холдированного (двухстадийного) платежа, в котором используется вознаграждение platform_fee_amount , происходит ошибка:

{
	"type": "error",
	"id": "****-****-***-****-******",
	"code": "invalid_request",
	"description": "invalid_request.marketplace.marketplace_fee_is_missing_on_capture",
	"parameter": "transfers.platform_fee_amount"
}

Ошибка происходит из-за отсутствия в методе serializeTransfers файла CreateCaptureRequestSerializer.php проверки на вознаграждение:

$item = array(
    'account_id' => $transfer->getAccountId(),
    'amount' => $this->serializeAmount($transfer->getAmount()),
);
if ($transfer->hasPlatformFeeAmount()) {
    $item['platform_fee_amount'] = $this->serializeAmount($transfer->getPlatformFeeAmount());
}
$result[] = $item;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions