Iyzipay\Model\Mapper\PaymentPreAuthMapper::create PHP Метод

create() публичный статический Метод

public static create ( $rawResult = null )
    public static function create($rawResult = null)
    {
        return new PaymentPreAuthMapper($rawResult);
    }

Usage Example

Пример #1
0
 public static function retrieve(RetrievePaymentRequest $request, Options $options)
 {
     $rawResult = parent::httpClient()->post($options->getBaseUrl() . "/payment/detail", parent::getHttpHeaders($request, $options), $request->toJsonString());
     return PaymentPreAuthMapper::create($rawResult)->jsonDecode()->mapPaymentPreAuth(new PaymentPreAuth());
 }