for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Korobovn\CloudPayments\Message\Strategy\Specification;
/**
* @see https://developers.cloudpayments.ru/#vozvrat-deneg
*/
class RefundPaymentSpecification implements SpecificationInterface
{
* {@inheritdoc}
public function isSatisfiedBy(array $response): bool
return ! empty($response['Model']['TransactionId']) &&
(new IsSuccessSpecification)->isSatisfiedBy($response);
}