Iyzipay\Model\Mapper\InstallmentHtmlMapper::create PHP Method

create() public static method

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

Usage Example

Example #1
0
 public static function retrieve(RetrieveInstallmentInfoRequest $request, Options $options)
 {
     $rawResult = parent::httpClient()->post($options->getBaseUrl() . "/payment/iyzipos/installment/html/horizontal", parent::getHttpHeaders($request, $options), $request->toJsonString());
     return InstallmentHtmlMapper::create($rawResult)->jsonDecode()->mapInstallmentHtml(new InstallmentHtml());
 }