public static function create($alias = null)
    {
        $card = new static();

        $response = (new AuthorizationBuilder(TransactionType::ALIAS, $card))
            ->withAlias(AliasAction::CREATE, $alias)
            ->execute();

        if ($response->responseCode === '00') {
            return $response->giftCard;
        }

        throw new ApiException($response->responseMessage);
    }
public static function create($alias = null)
    {
        $card = new static();

        $response = (new AuthorizationBuilder(TransactionType::ALIAS, $card))
            ->withAlias(AliasAction::CREATE, $alias)
            ->execute();

        if ($response->responseCode === '00') {
            return $response->giftCard;
        }

        throw new ApiException($response->responseMessage);
    }
public static function create ( $ alias = null ) { $ card = new static ( ) ; $ response = ( new AuthorizationBuilder ( TransactionType :: ALIAS , $ card ) ) -> withAlias ( AliasAction :: CREATE , $ alias ) -> execute ( ) ; if ( $ response -> responseCode === '00' ) { return $ response -> giftCard ; } throw new ApiException ( $ response -> responseMessage ) ; }
Creates a new payment method

@param string $alias Alias to use

@return GiftCard
Creates a new payment method