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

create() public static method

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

Usage Example

Example #1
0
 public static function create(CreatePaymentPostAuthRequest $request, Options $options)
 {
     $rawResult = parent::httpClient()->post($options->getBaseUrl() . "/payment/postauth", parent::getHttpHeaders($request, $options), $request->toJsonString());
     return PaymentPostAuthMapper::create($rawResult)->jsonDecode()->mapPaymentPostAuth(new PaymentPostAuth());
 }