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

create() public static method

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

Usage Example

 public static function create(CreateThreedsPaymentRequest $request, Options $options)
 {
     $rawResult = parent::httpClient()->post($options->getBaseUrl() . "/payment/3dsecure/auth/basic", parent::getHttpHeaders($request, $options), $request->toJsonString());
     return BasicThreedsPaymentMapper::create($rawResult)->jsonDecode()->mapBasicThreedsPayment(new BasicThreedsPayment());
 }