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

create() public static method

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

Usage Example

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 ThreedsPaymentMapper::create($rawResult)->jsonDecode()->mapThreedsPayment(new ThreedsPayment());
 }